Skip to content

Instantly share code, notes, and snippets.

@tawanda-profuse
Created July 23, 2017 10:49
Show Gist options
  • Save tawanda-profuse/955d677a8d72ca0153d8d80ecbcc4004 to your computer and use it in GitHub Desktop.
Save tawanda-profuse/955d677a8d72ca0153d8d80ecbcc4004 to your computer and use it in GitHub Desktop.
permat = 0
katasandi = "Abracadabra"
while true:
hero.moveRight()
hero.moveUp(2)
enemy = hero.findNearestEnemy()
if enemy: hero.attack (enemy)
if enemy: hero.attack (enemy)
hero.moveLeft()
hero.moveUp(2)
hero.moveRight(2)
hero.moveUp()
permat = permat + 1
hero.moveDown()
hero.moveRight()
hero.moveDown(2)
hero.say(permat)
hero.moveDown(2)
hero.say(katasandi)
hero.moveRight(2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment