so how do i make the allies move by flag
can you send like a sample of how to move alies by flag
It makes it easier. You can try for the ally:
hero.command(friend,"move",flag.pos);
can you help me with the yak part
how do I send it can you help me with erors
It says un expected token but when I removed it, it says token un matched, but if I remove the command/ move part it doesnt have erors
@AnSeDra what is wrong please answer
i really need help(20 chars)
What is your code ??
in order for us to help you we need you to post your code correctly @Jeremy_Yu
-Zax
// What eldritch artifacts are these? Don't let them blast you!
// The ice gate will open when both ogres are defeated.
var friend = hero.findFriends();
hero.buildXY("fence", 23, 13);
while (true) {
var enemy = friend.findNearestEnemy();
if (enemy) {
hero.command(friend, "attack", enemy);
hero.command(friend,"move",{"x":42,"y":30};
}
}
This should not be in the if but in a else
are you on a chromebook and are you using javascript
-Zax
yes @ZAX155 i am on a chromebook and i am useing javascript
try to do it python and give me the link so i can help you out
-Zax
Ok I will but I haven’t finished learning python yet
okay @Jeremy_Yu
-Zax
ok @ZAX155 I will try to finish this level