|
|
Register •
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 6 posts ] |
|
| Author |
Message |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|
typh00n
Chief Warrant Officer
Joined: Sun Mar 30, 2003 3:00 am Posts: 186 Location: USA
|
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 |
|
 |
|
PHX
Lieutenant
Joined: Sat Mar 03, 2001 3:00 am Posts: 592 Location: USA
|
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 |
|
 |
|
Gravedigr
Chief Warrant Officer
Joined: Sat Feb 09, 2002 3:00 am Posts: 127 Location: USA
|
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 |
|
 |
|
typh00n
Chief Warrant Officer
Joined: Sun Mar 30, 2003 3:00 am Posts: 186 Location: USA
|
basically
every if and while statement needs a corresponding end statement
|
| Mon Mar 15, 2004 1:17 am |
|
 |
|
ElderProphet
Commander
Joined: Tue Oct 07, 2003 2:00 am Posts: 1134 Location: Augusta, GA
|
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 |
|
 |
|
|
Page 1 of 1
|
[ 6 posts ] |
|
Who is online |
Users browsing this forum: Google [Bot] and 15 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
|
|