
Re: Has anyone ever seen.......
Simple method for getting planet numbers. I am sure there are better methods but for me this made it easy for me to piece though and understand when I first started. I am sure others can explain it better but I hope this helps a little. Best thing is take a simple script like figs and start looking at it and changing a few lines and you will start seeing what things do.
Cut the CODE and paste in a text editor and name it "something.ts" then run the script that use just made in TWX.
then type $sv then type planet and hit enter ... that will show the planet numbers I have used an echo so you can see the numbers.
Also when testing scripts it is best not to have MoMbot loaded or any other scripts because if you accidently hit $sv <enter> you will be sitting there for a while

$parm1 - $parm8 and $command <-- these are just variables that are being used in the script somewhere.
loadvar "$bot_name" <-- that loads the variable from Mombot into your script so that you could use like so.
send "'" $bot_name citcap on*" <-- and mombot citcap will startup.
Code:
setvar $i 1
send "l"
waitfor "----"
:triggers
settexttrigger end :end "Land"
settexttrigger planet :planet "<"
pause
pause
:planet
killalltriggers
getwordpos CURRENTLINE $pos "<"
add $pos 1
cuttext CURRENTLINE $planet[$i] $pos 4
striptext $planet[$i] " "
add $i 1
goto :triggers
:end
killalltriggers
send "q*"
setvar $k 1
gosub :list
halt
:list
if ($k < $i)
echo ANSI_15 "*" $k ". " $planet[$k]
add $k 1
goto :list
end
return