Reincarnation affects?

Don

Rise with the Fallens!
Reaction score
52
Is it possible to make it so reincarnation (When a unit dies, it waits X seconds and revives it) won't affect the current order an unit is assigned? Like when it revives, this units continue to ''walk to a point''?

Also didn't find out how but is it also possible to have their Hp reduced when they revive? Ex. 50% of HP upon reincarnation.

+ rep to useful helpers :thup:
 

hgkjfhfdsj

Active Member
Reaction score
55
not sure if you can do this directly..
you can try combining AutoEvent and LastOrder. (both requires vjass)
same with the 2nd question, autoevent has events for both beginning and finishing reincarnation, so you can catch the on finish event and set its life. (not sure if there is an 'initial amout' hp field and like mana in the object data, but i doubt that will work anyway..)
 

Bogrim

y hello thar
Reaction score
154
This is also possible to do in GUI. Since Reincarnation is not registered by any event (such as "a unit dies"), use a damage event and check when the damage dealt exceeds the unit's life, then run a 0.00 timer and check the unit's death state on the timer's expiration. This will allow you to check for Reincarnation even without an event response.

Then simply run a secondary timer correcsponding to reincarnation's length and reissue the order upon revival. You should use a hashtable to make it MUI.
 

Don

Rise with the Fallens!
Reaction score
52
This is also possible to do in GUI. Since Reincarnation is not registered by any event (such as "a unit dies"), use a damage event and check when the damage dealt exceeds the unit's life, then run a 0.00 timer and check the unit's death state on the timer's expiration. This will allow you to check for Reincarnation even without an event response.

Then simply run a secondary timer correcsponding to reincarnation's length and reissue the order upon revival. You should use a hashtable to make it MUI.

Exactly what I needed :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top