View unanswered posts | View active topics It is currently Sun Apr 26, 2026 4:40 am



Reply to topic  [ 6 posts ] 
 more twx scripting 
Author Message
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
Ok I decided to finally learn how to do this stuff I may be asking alot of questions wherever I can find answers.

ive used the getText command to grab a sector number to be used, but now the script wants to just keep using that same sector number that it needed the first time around...it doesn't adapt to changing numbers.
Is there a command to clear the cache or variable or whatever you call it so that it can get new data?


Sat Mar 13, 2004 11:25 pm
Profile ICQ YIM WWW
Chief Warrant Officer
User avatar

Joined: Sun Mar 30, 2003 3:00 am
Posts: 186
Location: USA
Unread post 
not that i know of
but
if you run a getText with that same variable
(getText $line $sector "blabla" blabla")
when you're in a new sector, it will overwrite the old variable


Sun Mar 14, 2004 1:08 am
Profile
Lieutenant

Joined: Sat Mar 03, 2001 3:00 am
Posts: 592
Location: USA
Unread post 
There is no reference the the "end" command for twx scripting listed on the TWX site. Yet I have seen it an many scripts. What does this do specifically.


Sun Mar 14, 2004 11:02 pm
Profile ICQ YIM WWW
Chief Warrant Officer

Joined: Sat Feb 09, 2002 3:00 am
Posts: 127
Location: USA
Unread post 
Have you tried posting in the twx support forum? That's where the experts will check and answer what you need. There is also some tutorials, that I beleive explains the end command. If not someone there will answer you. I'm afraid I'm not able to answer your questions to your or my satisfaction.


Mon Mar 15, 2004 12:39 am
Profile
Chief Warrant Officer
User avatar

Joined: Sun Mar 30, 2003 3:00 am
Posts: 186
Location: USA
Unread post 
basically
every if and while statement needs a corresponding end statement


Mon Mar 15, 2004 1:17 am
Profile
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 
End is used to close an If or While statement.

If ($a > 1)
echo "$a is greater than 1"
end

while ($a > 1)
subtract $a 1
end

Understand?

To update a variable, you just assign the new value to it. No need to reset it first. If $sector is "334" and you getWord CURRENTLINE $sector 3, then $sector is now word 3.

+EP+

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Mon Mar 15, 2004 2:28 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

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