Play Home Contribute Github Join Us! Discourse Staff Members Github Contribution Guides Team

Alpine rally help!

can i get help on alpine rally??

Post your code and armor please

ok ima post it in a second

lemme post my code now

Are you going to post your code.

oops wrong lvl lemme do the alpine rally pender one i just bought pender yesterday and yes

invis = -5
while True:
if (hero.now() - invis > 4):
if (hero.canCast(‘haste’, self)):
hero.cast(‘haste’, self)
if (hero.canCast(‘invisibility’, self)):
hero.cast(‘invisibility’, self)
invis = hero.now()
direction = Vector(hero.pos.x + 30, hero.pos.y)
enemy = hero.findNearest(hero.findByType(‘scout’))
hero.move(direction)

type or paste code here

could you actually put it in by pasting it where the type or paste code here part is?

invis = -5
while True:
    if (hero.now() - invis > 4):
        if (hero.canCast('haste', self)):
            hero.cast('haste', self)
    if (hero.canCast('invisibility', self)):
        hero.cast('invisibility', self)
        invis = hero.now()
    direction = Vector(hero.pos.x + 30, hero.pos.y)
    enemy = hero.findNearest(hero.findByType('scout'))
    hero.move(direction)

hmmmi see that you are using only one singular ’ because in codecombat im pretty sure it only uses "

? i dont get wut u mean

remove all the 's and replace them with "s

No you can use ’ as well.

hm ill try it rn and wut if it doesn’t work

my only error is line 3 it says “type error”

ive been tyring to do alpine rally for so long now

remove the brackets inside the ifs

still type error :frowning: idk wut to put now

ok i still dont get wut u mean can u pleae clarify?