| Author |
Message |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 ship tow issue
The script Im working on is giving me issues when trying to XPORT to a 3 digit ship number but works fine with a 2 digit. I know its something REALLY simple, but after lookin at it for so long everything is lost. Quote: :ship killalltriggers getword currentline $line 1 isnumber $test $line if ($test) setvar $ship $line end send "w* " waitfor "Choose which ship" send $ship send "*" halt
The triggers I have set up are correct, when I check the current variables in TWX the ship number there is correct. When trying to send $ship, for example instead of 755 it will send 75.. Thanks
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
Last edited by mob on Thu Aug 27, 2009 9:21 am, edited 1 time in total.
|
| Thu Aug 27, 2009 7:17 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: ship tow issue
Why not save yourself the headache and use a macro? Code: send " w * " & $ship & "* "
_________________ 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
|
| Thu Aug 27, 2009 7:24 am |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: ship tow issue
Thanks Sing, headache gone:)
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Thu Aug 27, 2009 7:37 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: ship tow issue
Heh, neither of those are going to help you export to a 3-digit ship number  Just messing with you, since you said xport, but meant tow. Regarding the script, echo the variable before you send it if you are having a problem. I would add this: echo "*Sending " $ship " for the ship number." I would put that line just before $ship is actually sent, and make sure nothing strange is happening.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Thu Aug 27, 2009 9:00 am |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: ship tow issue
LOL yes, I realized I said xport...and meant tow. It was really early and I was working on my first cup of coffee:) EP will definitly point out the obvious huh??  Ok cool EP Ill throw that in there, I did say though that I through a pause in a checked my variables and triggers in TWX step by step and $ship was correct just the output was one short. Thanks! **Edit EP I just looked back at my original post, everything looks right...no mention of xport there. Weird...EP...you might want to get that noggin checked bud! Possibly some glasses....is it time for bi-focals yet??...HEHE *duck* *run*
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Thu Aug 27, 2009 9:21 am |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: ship tow issue
Haha, unfortunately it keeps track of post edits, eh mob? 
_________________ 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
|
| Thu Aug 27, 2009 1:48 pm |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: ship tow issue
Sing?? What in TW2002 are you talking about?? *grin*
SHHH...I dun think EP knows about that...
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Thu Aug 27, 2009 7:46 pm |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
 Re: ship tow issue
Ah ha ha, the power of the provoked moderator. Clearly, it says xport.
I wanted you to put the echo in there so that you could see if your triggers were firing more often than you think. That might not be obvious, depending on when you pause and check the variables.
_________________ Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.
|
| Thu Aug 27, 2009 10:04 pm |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: ship tow issue
ABUSE ABUSE ABUSE:P......SOUND the alarms!!
lol
EP you sly devil you!!
I call for an official investigation!! Pointing out my errors, then putting my errors back...
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Thu Aug 27, 2009 11:30 pm |
|
 |
|
Admin 1
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 1432 Location: USA
|
 Re: ship tow issue
mob wrote: ABUSE ABUSE ABUSE:P......SOUND the alarms!!
lol
EP you sly devil you!!
I call for an official investigation!! Pointing out my errors, then putting my errors back... shhhh Zentock could STILL be lurking ...Would send Zilla on a conspiary investigation.
|
| Fri Aug 28, 2009 9:59 am |
|
 |
|
mob
Boo! inc.
Joined: Sat Oct 09, 2004 2:00 am Posts: 865 Location: USA
|
 Re: ship tow issue
hahahahaha!!!!
Gotta love the drama! Unfortunately your serious:P
_________________ “The object of war is not to die for your corp but to make the other bastard die for his.”
Boo! inc.
|
| Fri Aug 28, 2009 6:51 pm |
|
 |
|
Singularity
Veteran Op
Joined: Thu Jun 02, 2005 2:00 am Posts: 5558 Location: USA
|
 Re: ship tow issue
I'm sure it's a joke, mob. 
_________________ 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
|
| Fri Aug 28, 2009 7:36 pm |
|
 |
|