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?
_________________ Harkov
Silently exploring the galaxy one sector at a time.
Wed Jul 01, 2009 12:36 am
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1838 Location: Guam USA
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
Users browsing this forum: No registered users and 42 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum