• 0

    posted a message on How to make a "Lives" system?

    Hi guys,

    I need to make a system to manage 3 lives for each heroes.

    The gameplay is : Heroes have 100 Hp and 3 Lives

    When a hero's Health <= 0

    -if the hero's Lives >= 1 then the hero is knock out and wait few seconds before getting up with few Hp. He looses 1 Life.

    -if the hero's Lives == 0 then the hero dies.

    For the moment i'm using the behavior "Valerian 02a - Prevent hero death" (or something like that "Valérian 02a - Prévention de la mort du héros" in french) to prevent hero from dying and to make him gets up after a few seconds with a few life.

    I havn't find a way to link this behaviour to a trigger (in order to manage my Lives variables) because the unit don't dies and isn't reanimated: the Unit's Hp don't fall under 1Hp...

    Can someone help me? May be i should not use the Valerian's behavior..

    Posted in: Triggers
  • To post a comment, please or register a new account.