Swim Simple (script): Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(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...")
 
m (ISHARON moved page Swim Simple (Script) to Swim Simple (script))
(No difference)

Revision as of 17:22, 5 May 2016

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