Kelvintaph Defiler Feedback

Thanks for the help @BlueConsole, you suggestion is apt and it works. I would like to add that “Gror” is prompted by the game as the name as opposed to gror… for future players. Nice to know that finding all enemies is a more time taking computational process (? am I correct?) than just a particular enemy? I always though finding all enemies and storing their name in arrays was instantaneous.

2 Likes

Hi,

A strange observation while trying to command each unit separately. Can’t figure out the reason for one such code to not work. Facing problems with commanding “Scott” the first free soldier as well.

This code does work, trying to find paladin by friend type, i.e. "paladin"
if friend.type == "paladin":    #getting paladin to shield and heal mode
    if friend.canCast("heal") and friend.health < friend.maxHealth-150:
        self.command(friend, "cast", "heal", friend)
This code doesn't work, trying to find paladin by name (Antary)
if friend == "Antary":    #getting paladin to shield and heal mode
    if friend.canCast("heal") and friend.health < friend.maxHealth-150:
        self.command(friend, "cast", "heal", friend)
2 Likes

Use if(friend.id === 'Antary')

3 Likes

@BlueConsole - Thanks. Your suggestion worked. Guess I have been wrongly using the name id code.

Also, does self.now doesn’t work in this level? Adding these in if statements of code (to say execute a command only when time is in first 4 seconds or self.now <= 4) is not working for me. If it works for any one else, then surely I am again making a syntax error again. Anyone??

1 Like

It’s self.now() <= 4.
You forgot the parentheses.

2 Likes

@BlueConsole - Noted, thanks. Its working now.

1 Like

I need help for the robot plasma ball dodging part. Could you guys advise me where I should hide my hero?

Thank you

1 Like

@csd Run as fast as you can to the ceremony room and stay in a corner, the robots will shoot each other.

1 Like

Thank you very much for telling me.

1 Like

Just asking but how many lines of code did you guys use?

My solution for this level, including the bonus goal, had 55 lines of code (not counting comments and blank lines).

Note that I did it in a very early version of this level, which had a bug that would not allow using your hero even after the ceremony ended. This solution also included code to kill the Yeti, which I later found out to be unnecessary. With these two points in mind, maybe I could write a new solution in the 30~40 LoC range.

On the ice, collision physics apply. Pool anyone?

I found an alternate solution to the level. But after reading these posts, I think its still a valid solution. If we are just applying oddities of the game engine then I just got one to work well.

I am not sure if I liked this level as it wasn’t really about programming as much as trying to find oddities with the code base.

I do have a few questions though.

  1. How does one tell if they have been caught in the “fear” spell? I kept thinking that a programatic attribute should be checked to validate this state.
  2. How does one know that the “ritual” is over with? My hero kept getting brought into the center and floated around. Was this intentional? I kept wondering if I was suppose to avoid the “grab” radius of the warlocks.
  3. I am able to finish the level without killing or even encountering Nalfar, should it be required to fight with him?
2 Likes

I think we used the same solution. Although it seems like the level was designed with the fling exploit in mind, the ice rink was more obvious IMO.

Hi. I free kill all the shamans using the archers but the brawler always kills all my soldiers. The hero gets stuck in the middle of the warlocks’ ritual. How do I get him to move somewhere else? Thanks for your help (the level is very challenging :slight_smile:).

I completed it! :checkered_flag: (Please ignore the comment above.) I figured it out. I probably spent a combined total of more than 24 hours on it! :fearful:

I don’t know why, but robots shoot my butt immediately
I write 2 line code for example

1…2…DEAD

SomeHOW my hero moving by default when level started.

1 Like

1 Like

You moved it say on 0.00.1 second of a level!
I can not do ANYTHING to stop it

1 Like

well, I manage it to the hanging over the altar))