GemStone IV
·
Scripting and Macros
Previous Thread
Mark as Read
Next Thread
New Thread
Expand All
Collapse All
RELVAR
Ignore Author
Question on using IF statements
on 01/31/2011 08:50 PM CST
1
Reply
Are IF statements in StormFront only able to determine variables %1-%9? Is there a way to use them like in other programming languages? For instance.
If %s = down then
goto Continue
else
goto Start
Player of
Relvar
Reply
GREMINTY
Ignore Author
Re: Question on using IF statements
on 01/31/2011 09:13 PM CST
2
Reply
>Is there a way to use them like in other programming languages? For instance.
Unfortunately not, but there are someways to perform the same function.
For instance, I think this should have the same function as your example:
setvariable RETURN label_else
goto label_%s
label_down:
goto Continue
label_else:
goto Start
labelError:
goto %RETURN%
It's not pretty, but it can work.
- Greminty
Reply
New Thread
Expand All
Collapse All
Previous Thread
Mark as Read
Next Thread
GemStone IV
·
Scripting and Macros