[SOLVED] Help plz hunting party

@Leonardo_White any errors tho?

1 Like

yes it says your parentheses must match

1 Like

Did you put a comma between the x and y values for the move command?

2 Likes

try this

hero.command(friend, “move”, ( friend.pos.x , friend.pos.y))
1 Like

i did that but now it shows this

1 Like

You need to put “x”: before your x-coordinate and “y”: before your y-coordinate like you had it before.

The code should look like this:

hero.command(friend, “move”, ({"x":friend.pos.x , "y":friend.pos.y})
2 Likes

like this

1 Like

Yes, that should work. If it does not, just put friend.pos in the position argument for the move command.

2 Likes

it now shows this

1 Like

I can’t see it sorry can’t help

1 Like

You never defined what friend was.

try hero.FindFriends

Your code is not checking to see if there is an enemy. Try putting if enemy in your if-statement

Like this:

if enemy:
    # Insert code here
1 Like
1 Like

Nooooo, he is right

friends = hero.findFriends()
1 Like

1 Like

Yes, like that. It should work now.

2 Likes

I just tested it and it worked. But I may have different gear than him. Not to mention I use Ned.

my character is standing still

1 Like

What is your gear?

Your character does not necessarily need to move to complete the level, you just need to move your friends.

1 Like