Swim Simple (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (ISHARON moved page Swim Simple (Script) to Swim Simple (script))
m (Survival)
 
Line 1: Line 1:
{{Script
{{Script
|cat=training
|cat=training, Survival
|fe=Genie
|fe=Genie
|auth=[Lethan]
|auth=[Lethan]

Latest revision as of 12:44, 23 May 2016

Swim Simple (script)
Category training,Survival
Front-end Genie
Author [Lethan]


Simple swimming script that loop back and forth between two points.

#Change the directions as desired. Must be opposit or the script will likely fail.
var firstDir n
var secondDir s

save %firstDir

Loop:
put %s
match SwitchDir You can't
match Loop Obvious
match Pause ...wait
matchwait

SwitchDir:
if %s = %firstDir then save %secondDir
else save %firstDir
goto Loop

Pause:
pause 1
goto Loop