View unanswered posts | View active topics It is currently Sat Apr 18, 2026 5:00 pm



Reply to topic  [ 12 posts ] 
 ship tow issue 
Author Message
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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
Image


Thu Aug 27, 2009 7:24 am
Profile ICQ WWW
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post Re: ship tow issue
Heh, neither of those are going to help you export to a 3-digit ship number :P

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
Profile WWW
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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?? :P

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
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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
Image


Thu Aug 27, 2009 1:48 pm
Profile ICQ WWW
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 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
Profile WWW
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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
Profile
Site Admin
User avatar

Joined: Sun Dec 24, 2000 3:00 am
Posts: 1432
Location: USA
Unread post 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
Profile
Boo! inc.
User avatar

Joined: Sat Oct 09, 2004 2:00 am
Posts: 865
Location: USA
Unread post 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
Profile
Veteran Op
User avatar

Joined: Thu Jun 02, 2005 2:00 am
Posts: 5558
Location: USA
Unread post 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
Image


Fri Aug 28, 2009 7:36 pm
Profile ICQ WWW
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

Who is online

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