What are you supposed to do in the siege of stonehold?

Wow, that code is implementing a pretty advanced strategy! One thing I noticed was that the shield may not be doing what you want it to do. It only absorbs damage while you are shielding, so unless you want to shield before every bash or cleave because you think you might want to block extra damage at that exact moment for a split second, it’s only going to slow you down.

We’ll be adding ways to earn more gems with more levels, and we just came up with a great idea for repeatable levels, but it’ll take us a while to implement those, so they won’t be available for a while (the next two weeks’ levels are in the desert).

How much health does your son have?

2 Likes

He has 372 health.

This morning he is switching to a Hammer and place Trap Strategy to see if he can get through it.

Does “shield” still reduce damage while you are moving towards an enemy or item? Apparently his thought was to reduce damage while he tried to close the distance to get off a hit.

Repeatable levels and challenges would be wonderful. At the moment he is getting convinced he can only beat it if he gets a wizard and fully equips it.

2 Likes

@mikelburk I had code that was able to win with 110 HP, the hammer, and Amara (she is a bit faster than the warriors) I’m sure with the warriors and a bit more health you could do it as well.

2 Likes

Okay both my son and I were able to do it (though we each took slightly different paths).

We both ended up switching to Trap based solutions. He went with straight forward bomb placing and handling ogres along the way. I went with queuing up a list of trap locations.

I figured I should at least post here with advice for other players who may find the thread later based on our experiences:

  • Building a trap and getting out of the way seems to let you deal the most damage without taking injury if you don’t have extra gems. Along that line: Don’t try to place a trap if an enemy is real close. We both ended up with checks on distanceTo the nearestEnemy before building a trap.
  • Play the level - knowing where the bad guys are coming from helps a lot.
  • Two bombs can help clear groups where they all move at different speeds (munchkins with ogres)
  • The Spiked Shield gives you a ton of health and a good bash attack to use with your hammer. Also seems like the best shield. If you have been saving gems - seems worth it.
  • pickUpFlag calls end if you place a new flag - make sure your guy isn’t then trying to build or attack something far away. Being able to respond to battle conditions is really important.
  • Still unsure if “shield” protects you while moving or not.

Not sure if the community is big on sharing code after the fact or not. Happy to help someone if they get stuck.

4 Likes

Nice solutions! Like it or not, everyone is sharing code, but it’d be nice especially for challenge levels like this not to give away the answer. Shield makes you stop moving and shield, but only for a split second, so it doesn’t grant protection moving forward. We are soon to hook up more shield animations for the other heroes besides Tharin so you can see when you’re doing it.

6 Likes

Thanks!
I finally passed the siege of stonehold after trying some of your guys’ sode and adding some of my own. I just built a lot of fire-traps to block off the entrances to the screen. :smile:

3 Likes

Having a lot of difficulty beating this level as the samurai with 183 health (not enough gems to buy better gear). Making it about 2/3 of the way before dying.

Tried using flags but the game runs smoother without flags.

Haven’t tried using the hammer yet.

Edit: Was able to beat it (using sword and no flags) with some minor modifications to my code!

2 Likes

Just a thought, I beat the level in just 5 tries so I’m trying to understand the guidelines for this level:

I did the following:

flag = this.findFlag("green");

if (flag){
    position = flag.pos;
    x = position.x;
    y = position.y;
    this.moveXY(x,y);
    this.pickUpFlag(flag);
    this.buildXY("fire-trap",x,y);
}

}

Then I just ran. Beat the level with 111/145 health. Had them run into the traps (place at forest openings) and my troops killed most of them after the archers and the melee combined forces (they always chase after the nearest enemy so you can “guide” them to form a single unit xD It took 1:35.2. So far I have not spent any on new equipment. I got all the equipment from quest rewards.

So, I guess my question is what is the coding aim for this and how much of it is expected progmatically vs flag manual?

3 Likes

I didn’t design the level, but I assume the only expectation was for it to be challenging.

There aren’t as many restrictions placed on what you can do or what you’re expected to do which gives you a lot of freedom and allows you to be creative. How you play the level is left up to the player.

Well done by the way!

4 Likes

Kannon, did this work well? What was your health?

2 Likes

I’m trying the fire-trap method. Anyone else been looking into how to build fire-traps further away from oneself? Nick said you can build them out by a bit, but I used a modifier to control it a bit more. Any other ideas?

Level: Drop the Flag.

2 Likes

You move into build range and then build; it’s only a few meters. You can’t build any further by adding to the x- or y-values that you’re building at. Otherwise your solution would be great!

3 Likes

Ach,
thought I’d try! Thanks again, Nick.

2 Likes

Yeah I passed the level, Health was about 1000 i think,

2 Likes

I used fire-traps, with flags to control where I put them. It was (very) chaotic, but by putting traps on all the entrances (and making sure you don’t blow yourself up), it’s quite easy to eliminate Thotkar’s Army.

2 Likes

I’ve done it with different strategies, I think the joy of this level is the ability to try different things:

  1. build fences and lob charges over the top (need the twilight glasses to see through the fence)
  2. build fire-traps at entrances and run away
  3. follow my friends around healing them and staying away from enemies (no extra armor, but I did need the Codec of Life III)
  4. my son did it using the warrior and flags to move and attack

My methods I didn’t use flags at all, just preprogrammed where I wanted to build the fences and fire-traps.

2 Likes

I use a ranged char and lightning stick and about 300 hp and past the level
by going to the entrance of the fort and shooting everything

2 Likes

HELP! I can’t move, I have tried different browsers, placing flags to go to, moveXY, etc. but nothing works!!! Am on the verge of ragequitting because I am out of gems and can neither move or attack so when the troops die I just get pummeled.

2 Likes

Oh and by the way here is my code.

enemy = self.findNearestEnemy()
flag = self.flag
loop:
    if enemy:
        if self.isReady("cleave"):
            self.cleave(enemy)
        else:
            self.attack(enemy)
    elif flag:
        flagpos = flag.pos
        fx = flagpos.x
        fy = flagpos.y
        self.moveXY(fx, fy)
    else:
        self.shield()

Thank you @sotonin for the code help!

2 Likes

Unrelated to your problem. but to get indention to work put on a new line both above and below your code three of these characters `

2 Likes