• 0

    posted a message on Unit expiration timer

    Hello, I`m having trouble giving a unit an expiration timer. It was possible in war3 with a trigger action called Unit - Add Expiration Timer, but I can`t find an equivalent in sc2.

    I want it possible to add variable expiration timer to units, not sure if this is possible by creating behaviours in data editor. I`m hoping there is a way to do it from triggers, maybe I just didn`t find it?

    Posted in: Triggers
  • 0

    posted a message on Event for unit decay?

    Reaperguyver, your solution would just create a unit when another dies.

    I tried to come up with solutions to my problem in the past days, the most elegant one I can think of is the following:

    First create for each unit a 'corpse unit' equivalent. One trigger will create the corresponding 'corpse unit' at the location of dying unit, and give it an expiration timer. Another trigger will fire whenever 'corpse units' die with corresponding actions (create another unit of that type for example).

    Maybe this solution is helpful to someone with the same problem.

    Posted in: Triggers
  • 0

    posted a message on Event for unit decay?

    Helloes, I worked with war3editor before, and there was an event called: Unit - Unit decays ... or something approximate. It launched a trigger in execution every time a unit`s corpse would transition from 'fleshy' to 'bones' if I remember correctly. It was a very important event for a map I wish to transition but I can`t find an equivalent in sc2.

    I would like to not use timers, since I need to check almost all units, this would create a huge number of timers.

    Data editor behaviors would require too much work also for the scope of things I wish to do, I`m not even sure if it would be possible but I`m not very experienced using data editor. (For example I want units to 'revive' as a different unit once it decays, based on an integer assigned to it. Certain abilities will be able to manipulate that integer, making it even possible for a unit to not revive at all. - This is how I done it in w3, but there was the decay event to handle revive and check the decaying units integer to decide what to revive .. )

    Would appreciate if anyone can help out

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