www.ClassicTW.com
https://mail.black-squirrel.com/

more twx scripting
https://mail.black-squirrel.com/viewtopic.php?f=15&t=13005
Page 1 of 1

Author:  PHX [ Sat Mar 13, 2004 11:25 pm ]
Post subject: 

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?

Author:  typh00n [ Sun Mar 14, 2004 1:08 am ]
Post subject: 

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

Author:  PHX [ Sun Mar 14, 2004 11:02 pm ]
Post subject: 

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.

Author:  Gravedigr [ Mon Mar 15, 2004 12:39 am ]
Post subject: 

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.

Author:  typh00n [ Mon Mar 15, 2004 1:17 am ]
Post subject: 

basically
every if and while statement needs a corresponding end statement

Author:  ElderProphet [ Mon Mar 15, 2004 2:28 am ]
Post subject: 

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+

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/