| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| Scripting- Twarp Safety Method https://mail.black-squirrel.com/viewtopic.php?f=15&t=22436 |
Page 1 of 1 |
| Author: | Harkov [ Wed Jul 01, 2009 12:36 am ] |
| Post subject: | Scripting- Twarp Safety Method |
I'm working on a script and have had issues with twarping blind and getting #sd#. I've written the script where the sector I want to go to is stored in variable $cm1. When the script is started, it sends the sector (via: send $cm1 & "*") and I see the "Do you want to engage the TransWarp Drive?" prompt and the script sends the "y", but I forgot about going to sectors that do not have my fig(s) in them. Could someone share with me what is the best way to put in a safety so when the script enters the sector specified to warp to and I don't have a fig, it will shutdown, but if I do have a fig then it will twarp and continue on? |
|
| Author: | Vid Kid [ Wed Jul 01, 2009 1:24 am ] |
| Post subject: | Re: Scripting- Twarp Safety Method |
:ToJump SetTextLineTrigger locked :lockedend "TransWarp Locked" SetTextLineTrigger blind :blindend "You do not have any fighters in Sector" SetTextTrigger outoffuel :blindend "You do not have enough" SetTextTrigger outofjumps :nojumps "Invalid Sector number," Send $cm1 & "*" Pause :blindend Send "*" Halt :nojumps Halt :lockedend KillAllTriggers Send "y" WaitOn "]:["&$cm1&"] (" # script continues from here |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|