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

[SOLVED] Sarven Savior Level Help

Hi, I’ve done everything correctly but I cant build the fence at the end I dont why, can someone tell me if theres any part wrong?

# An ARRAY is a list of items.

# This array is a list of your friends' names.
friendNames = ['Joan', 'Ronan', 'Nikita', 'Augustus']

# Array indices start at 0, not 1!
friendIndex = 0

# Loop over each name in the array.
# The len() function gets the length of the list.
while friendIndex < len(friendNames):
    # Use square brackets to get a name from the array.
    friendName = friendNames[friendIndex]
    
    # Tell your friend to go home.
    # Use + to connect two strings.
    hero.say(friendName + ', go home!')
    
    # Increment friendIndex to get the next name.
    friendIndex += 1
    
# Retreat to the oasis and build a "fence" on the X.
hero.moveXY(26, 30)
hero.buildXY("fence", 30, 30)


Thanks

1 Like

You are not using a good hammer, only the other two hammers can build fences but not the one that you have equpied.

Andrei

1 Like

This is the hammer I’ve equipped, isnt that the best hammer?

1 Like

Well, yes. But it can not build fences. Try to equip another hammer.

Andrei

2 Likes

Thanks it works but whats the point of a good hammer if it cant build a fence

2 Likes

To can be used in the multiplayer levels and in some of the replayable levels.

Andrei

1 Like

And extra question I moved to the next level safety blanket but my hero is missing the target when the code is correct

1 Like

Try to use a warrior because they can not miss their attacks.

Andrei

2 Likes

You are absolutely amazing tysm for the help.

2 Likes

No problem! :grin: But next time try to message me or someone else or create a new topic for the problems from another levels, ok @Ufy?

Andrei

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.