i already put the flag on the ogre and the purple cow but still hit the ice cow.
while True: flag = hero.findFlag() blackflag = hero.findFlag("black") if flag: hero.throwPos(flag.pos) hero.move(blackflag.pos) hero.removeFlag(flag) else: hero.say("Wait")
help pls
code repost
while True:
flag = hero.findFlag()
blackflag = hero.findFlag("black")
if flag:
hero.throwPos(flag.pos)
hero.move(blackflag.pos)
hero.removeFlag(flag)
else:
hero.say("Wait")
You should specify the color, like you did in the black flag variable. So just specify the color, and fix the variable in the if statement i guess.
use if for hero.move(blackflag.pos)
because if you place a flag but didn’t place a blackflag(unless your flag is black), your code will break down.
so i must do`
if flagblack:
hero.move(flagblack.pos)
no the code just fine. i need help with where do i place flag
i already place flag at the purple cow and ogres but the disk keep hitting the ice-yak
(edit)
here i change the code
while True:
flag = hero.findFlag()
blackflag = hero.findFlag("black")
if flag:
hero.throwPos(flag.pos)
hero.move(blackflag.pos)
hero.removeFlag(flag)
elif blackflag:
hero.move(blakflag.pos)
else:
hero.say("aaa i need more memes")
there is a cheese to this level by strait up attacking the enemy but…
but what? (20chars)ss
just its…
would you rather learn the code or get more gems…
wdym (20chars)(20chars)
code for cheese:
while True:
enemy=hero.findNearestEnemy()
if enemy:
hero.attack(enemy)
so its your choice
get gems or learn.
You will attack the ice-yak if you use that code, exclude all ice yaks and it will be fine except you will need twilight glasses for that.
oh sorry my mistake dont attack the enemy strait up use flags with green to throw. and remove flag after throwing
i already own twilight glasses
almost completed but run out of time
nvm i completed tyvm for helping
This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.