| Author |
Message |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Interactive Subprompts
Is there an easy way to test to see if interactive subprompts are active from within a script? I'm working on a Planet Drop script and want to provide a Prelock option if interactive subprompts are active.
|
| Sun Nov 09, 2008 11:39 am |
|
 |
|
Big D
Veteran Op
Joined: Tue Nov 28, 2006 4:04 pm Posts: 5025
|
 Re: Interactive Subprompts
No way to tell with the script itself that I know of. You can always use the lock decaying message to trigger the jump although it's a bit slower, sometimes with the delay it actually allows the trader to hit the fig and return before the jump is actually made. Of course it could give them time to call-save-me and have their planet there also.
|
| Sun Nov 09, 2008 1:58 pm |
|
 |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Re: Interactive Subprompts
OK I figured this one out on my own but I'll post it here in case anyone else needs to test whether or not interactive subprompts are on. If you activate the Ship Catalog - FedComm, Subspace, and Hailing Frequecies are available only if interactive subprompts are on. So you can test for interactive subprompts by sending `, ', or = and waiting for the corresponding message.
|
| Mon Nov 10, 2008 1:05 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: Interactive Subprompts
Very nicely done... quick block of code based on that concept... Code: # Get to the catalog send " qqqqza99999*cc" waitFor "<Examine Ship Stats>" waitFor "Which ship are you interested in "
# Set the triggers for the check setVar $ISP FALSE killtrigger qqprompt killtrigger ssprompt setTextLineTrigger ssprompt :ssprompt "Sub-space radio (" setTextLineTrigger qqprompt :qqprompt "<Quit>"
# Send the check send "'**qqqqqq*" pause
# Got the SS prompt! :ssprompt setVar $ISP TRUE pause
# Done... :qqprompt killtrigger qqprompt killtrigger ssprompt if ($ISP = TRUE) echo "*Interactive Sub-prompts are ON!**" else echo "*Interactive Sub-prompts are OFF!**" end halt
_________________ May the unholy fires of corbomite ignite deep within the depths of your soul...
1. TWGS server @ twgs.navhaz.com 2. The NavHaz Junction - Tradewars 2002 Scripts, Resources and Downloads 3. Open IRC chat @ irc.freenode.net:6667 #twchan 4. Parrothead wrote: Jesus wouldn't Subspace Crawl.
*** SG memorial donations via paypal to: dpocky68@booinc.com
|
| Mon Nov 10, 2008 1:58 am |
|
 |
|
LoneStar
Commander
Joined: Fri Jun 09, 2006 2:00 am Posts: 1401 Location: Canada
|
 Re: Interactive Subprompts
Or you can make the lock, then send ' Or ` Or = if nothing happens then you'll know. Code: setVar $TARGET 1 setTextLineTrigger NOPWARP :NOPWARP "This Citadel does not have a Planetary TransWarp Drive system" setTextLineTrigger NOLOCK :NOLOCK "You cannot " & #34 & "Blind Jump" & #34 & " a planet." setTextLineTrigger LOCK :LOCK "Locating beam pinpointed, TransWarp Locked." send "p"&$TARGET&"*" pause :NOPWARP killalltriggers halt :NOLOCK killalltriggers halt :LOCK killAllTriggers setTextLineTrigger SPrompt :SPrompt "Sub-space radio" setDelayTrigger NPrompt :NPrompt 500 send "'" pause :NPrompt killAllTriggers send "n" waiton "Citadel" halt :SPrompt killAllTriggers send "Locked On!*" waiton "Message sent on sub-space channel"
_________________ ---------------------------- -= QUANTUM Computing 101: 15 = 3 x 5 ... 48% of the time.
|
| Mon Nov 10, 2008 9:25 am |
|
 |
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
|
 Re: Interactive Subprompts
Anther way , I port and try to send a sub-space message. So if you cont or cant .. then sub prompts are off.
But thanks to those other ideas on detection .. I didn't know about the ship catalog was another area (saving a turn too) .
Knowledge is power !
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
 Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
| Tue Nov 11, 2008 2:56 am |
|
 |
|
Scrat
Chief Warrant Officer
Joined: Sun Jan 20, 2008 5:15 am Posts: 142
|
 Re: Interactive Subprompts
One more tip on this is that if you send a backspace after `, ', or = it saves you from having to send an extra enter as results in a cleaner display.
|
| Tue Nov 11, 2008 10:12 am |
|
 |
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
|
 Re: Interactive Subprompts
Thank you for the script challenge .. and all the ideas ... This will help everyone who ever wanted to check. Code: Send "' Starting InActive SubPrompt Check*" WaitOn "Message sent on sub-space channel" :LOCK KillAllTriggers SetTextLineTrigger SPrompt :SPrompt "ub-space" SetDelayTrigger NPrompt :NPrompt 1000 Send "='" Pause :NPrompt KillAllTriggers Send #8 #8 Send "' Check completed & Inactive SubPrompts are OFF*" WaitOn "ub-space" Halt
:SPrompt KillAllTriggers Send "" Send "' Check completed & Inactive SubPrompts are On*" WaitOn "ub-space" WaitOn "ommand"
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
 Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
| Tue Nov 11, 2008 10:49 am |
|
 |
|