Level:storming-the-towers-of-areth(pls help)


#1

Hi, don’t know how to do Leave it to storming-the-towers-of-areth

the game addres is http://cn.codecombat.com/play/level/storming-the-towers-of-areth

the last goal is 【Escape back to the rally point】

and at last I return to the first position, it not work,and what should I move ? pls help me.

my code is :

<%= enemy_defenses %>

<%= break_the_defense %

newX = hero.pos.x
newY = hero.pos.y

hero.moveXY(94, 19)
hero.buildTypes
hero.buildXY(hero.buildTypes[1], 94, 19)
hero.moveXY(88, 10)
hero.wait(8)
hero.moveXY(101, 52)
hero.buildXY(hero.buildTypes[1], 60,62)
hero.buildXY(hero.buildTypes[1], 90, 53)
hero.wait(20)
hero.moveXY(76, 35)
hero.moveXY(79, 6)
hero.moveXY(newX,newY )


#2

[redacted foul language],it must code hero.say(“Retreat”), but the game has no tip!!