Swim Simple (script)

From Elanthipedia
Revision as of 19:54, 9 August 2013 by Maintenance script (talk | contribs) (Created page with "{{Script |cat=training |fe=Genie |auth=[Lethan] }} Simple swimming script that loop back and forth between two points. <pre> #Change the directions as desired. Must be oppos...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Swim Simple (script)
Category training
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