imported>Cipscis |
imported>JT |
Line 1: |
Line 1: |
| {{Function
| | #REDIRECT [[goto]] |
| |origin = FOSE1
| |
| |summary = Continues processing the current script from a previously indicated label ID.
| |
| |name = GoTo
| |
| |arguments =
| |
| {{FunctionArgument
| |
| |Name = ID
| |
| |Type = int
| |
| |Value = 0 to 255
| |
| }}
| |
| |example = GoTo 1
| |
| }}
| |
| ==Notes==
| |
| ===The Label/GoTo Loop===
| |
| This function can be used to create a loop when combined with [[Label]]. The following script loops the script instructions ''iterations'' times:
| |
| ScriptName LoopScript
| |
|
| |
| int count
| |
| int iterations
| |
|
| |
| Begin GameMode
| |
| Label 1
| |
| ;Script instructions to loop
| |
| set count to count + 1
| |
| if count < iterations
| |
| GoTo 1
| |
| endif
| |
| End
| |
| | |
| ==See Also==
| |
| *[[Label]]
| |
| | |
| ==External Links==
| |
| *[http://www.cipscis.com/fallout/tutorials/loops.aspx Loops]
| |
| *[http://fose.silverlock.org/fose_command_doc.html#Goto FOSE Documentation]
| |
| | |
| [[Category:Functions]]
| |
| [[Category:Functions (FOSE)]] | |