Did something change


#1

Today I logged on to codecombat and wanted to re look at medical attention that I had previously completed and when I run it my code fails if anyone knows why this is happening pls tell me

1-12-15


#2

Medical Attention is a bit of a tricky level. Your alies are pretty stupid, and will happily walk in a straight line to the healer, ignoring any enemy they pass by. Sadly, said enemies won’t ignore your allies, killing them when they are low on health (which they usually are when they retreat). There is not much you can do about this without a huge increase in complexety of your code, so simply try to submit a few times.

There are however some simple tricks to help you a bit, one including to move not directly on the marked spot but close to it, so you don’t block or get blocked by your allies. Simply search for ‘Medical Attention’ in the forum to get an impression


#3

I did all these thing before hand


#4

I usually need three to four times to pass that level, because my allies think that enlarged ogres are no real threat after all. Didn’t found a way to guarantee a success.

Didn’t try escorting the soldiers to the healer, that’s an idea I investigate into.


#5

If you’re considering escorting soldiers to the healer, are you intending to add in manual control via flags, so you can pull your hero away if necessary? Or how do you sense ally health?

If you do use flags, then that could be another (more hands-on) solution to the puzzle - Have 1 flag which your hero walks to, 1 flag which makes the hero say “Heal Me” and 1 flag that gives the ‘attack’ command.

hmm…


#6

Didn’t thought of Flags either, that’s plan 2. No, I have the best galsses, I can simply find all friends and check their stats. As for winning the level with a better chance, I would argue for the flag-solution, as the other requires a lot of logic to decide which enemy to attack (the one that targets the weakest ally), where to position ect. Flags are way easier.


#7

I am a bit confused about this. Why do you check your friends health?

Quick tip:
Every hit you took from an ogre, is one hit less for your allies.

To stay in combat as long as you can, you can buy better armor or modify your healingTreshold.

Your allies are running toward the healer, the moment their health is below 100 HP. Why do you run away crying at (this.maxHealth / 2)?


#8

You can beat this level with only Painted Steel Breastplate, the shield that you get from Forest, and the sword that you get from Forest, and the fur hat. No other armour is required. (yes, I like being a minimalist, and seeing what the absolute LEAST items/effort a person can use to complete a level :wink: )


#9

You would make a good level tester. hah :slight_smile: for balancing them


#10

Not always true, though. If there was no ally to be hit and you happen to be there to be hit, then that’s just sub optimal design.

Just sayin’… :open_hands:


#11

Are you sure that it’s suboptimal design, Cawas?

If you’re a pissed off ogre, and there’s only 1 person to hit, because everyone else has run off, logic (pissed off ogre logic) would say, “I WANT TO HIT SOMETHING!!” and the hero’s face would be the closest thing to hit… pissed off ogre logic would zero in on the hero’s face being a very hittable face.

Unless the pissed off ogre’s speed and internal calculations would give it the necessary boost to be able to outpace the frustration and pain of someone hitting it with a sword & escape the possibility of death by that person who is hitting the pissed off ogre with a sword… and be able to go after & catch up to the wounded person running away & kill them… pissed off ogre logic would make it want to punch the crap out of the closest person hitting it with a sword. Especially if the pissed off ogre’s life would depend upon making the sword-ed person turn into a pile of mush.

TL;DR - Hero’s face = smashable and close by. Wounded person = requires running and possible death to sword that’s hitting the ogre. Thus… hero with smashable & close by face = gets smashed by ogre fist/weapons.

Sotonin: :wink: I think I cleared all the way up till Lurkers (haven’t finished that one) without buying anything beyond the Painted Steel Breastplate & any ‘required’ items (such as the upgraded hammer, glasses, etc). So it’s 100% possible to do. It just takes a touch of finesse at times (and crossed fingers lol)


#12

I’m still quite sure. Given the ogre will always be hitting something at all times, then your logic makes all the sense. But that’s never the case. Pissed Ogre can also be chasing or blocked. So there are better ways to deal with them other than being a semi-alive decoy…


#13

I see where you’re coming from. I suppose I’m going off the pissed ogre logic that has been pervasive through most games, since ogre (save for ogre magi) are not the most intelligent of creatures, and a pissed ogre even less so (think Hulk)… and since it doesn’t look like enemies have collision among themselves… blocked would be ‘squishy enemy blocking = smashable’, from what I’ve noticed.

Thus pissed ogre = smash.

Also, consider putting yourself in Pissed Ogre’s shoes. if you are a pissed ogre that is chasing someone, and there was a dude (or dudeette) who is hitting you with a sword, how long will you keep chasing the far away squishy thing, before you turn to the sword-ed person hitting you, and smash their face?

Think like a pissed off ogre :wink:

WWPOD - What Would Pissed Ogre Do?


#14

I meant blocked by a hammer.

It would be cool if we could see ogre getting more and more pissed as it fails to smash. :slight_smile:


#15

Ah!! I’ve noticed that blocked pissed off ogres, those ogres who are blocked by hammers/fences, still have the same focused & pissed off rage towards their targets, even though they cannot reach them to smash them. The level Sarven Savior shows this to be true! Put up some fences, and the ogres will STILL do whatever they can to get through & smash face.

That said, I think it’d make for some VERY interesting levels if a pissed off ogre would get more pissed off if it fails to smash. I could see some 1 hit KO’s in the future, if the ogre would become more empowered as it becomes more pissed off… :stuck_out_tongue:


#16

Or, perhaps, even taking the “Pissed off ogre w/ increasing rage” a step further, and require that the hero builds some form of maze, in order to increase the time that an ogre has not, in fact, smashed, and lead it along a journey. At the end of this journey, there’s a creature or wall or something which the enraged ogre smashes through, and maybe you need to bomb or decoy the ogre… so that you can then zip in and grab some treasure.

@nick :stuck_out_tongue:


#17

This reminds me the first kinds of tower defense, which could also be a nice level to have! :tokyo_tower:


Other worlds or stories, and other features
#18

Maybe a level where you have archers on towers and there are two paths but only one path has archers the other has peasants and you need to lure the ogres to the archers


#19

Powered up archers, who will get face smashed by pissed off ogre


#20

There is already an archer-tower in the Level-Editor, just saying. And enraging an ogre should not be that hard to script…
If I find the time I’ll see what I can do.