Lets discuss troops

● ARCHIVED · READ-ONLY
Started by Eviticous 5 posts View original ↗
  1. So consider the following image:
    2017-07-07 10_34_20-Database.png

    Notice here how I say, if hp <= 25% and not confused (which he never becomes, in this particular test) then on moment he should force and action to heal (which would heal him for 90% of his current health)


    Problem?

    This works .... ONCE. And only ONCE. He gets below 25% health, he instantly heals. It's then your turn, you attack dealing damage that would kill him, battle over.

    How do I fix this to say: As long as you not confused if your health is ever 0 - 25% FORCE YOUR SELF TO HEAL

    Thoughts?
  2. Easiest way I do this is with action commands under the enemy settings. Set the heal command to high priority, and if <=25% HP. Then, you should not have to do anything else either, as confusion just attacks at random by default, so it will ignore the action priorities in those cases.
  3. This would only happen on his turn right? Like if I set the action to a rating of 9 and set it between 0 ~ 25% is the game engine smart enough to know: Bob Dealt a killing blow, wait, heal and continue?
  4. If you set it under the enemy (in the database) it can only happen on his turn.
  5. I was hoping that I could make it happen basically any time his health is 25% or below. Basically it would almost make him immortal, but as you saw from my image there was a way to negate this affect.