View unanswered posts | View active topics It is currently Thu Apr 23, 2026 4:22 am



Reply to topic  [ 2 posts ] 
 Scripting- Twarp Safety Method 
Author Message
1st Sergeant
User avatar

Joined: Thu May 15, 2008 3:13 pm
Posts: 33
Unread post 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?

_________________
Harkov

Silently exploring the galaxy one sector at a time.


Wed Jul 01, 2009 12:36 am
Profile
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post 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

_________________
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

Image
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


Wed Jul 01, 2009 1:24 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 35 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

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.