D
danhel
Guest
I tried to make something simular to Age of Myths' system. For a player, it looks like this:
It doesnt do anything.
I had an other one before, there were 2 wait functions after each other - was messy, thats why i separated them. That one worked... ...sometimes.
It really doesnt do shit, whats the problem? :banghead:
Code:
Die Blue
Events
Unit - A unit Dies
Conditions
(Owner of (Dying unit)) Equal to Player 2 (Blue)
((Dying unit) is A Hero) Equal to True
Actions
Set Dead_Mortal_Hero[1] = (Dying unit)
Set Mortal_Die_Point[1] = (Position of (Dying unit))
Unit - Create 1 Spirit (Mortal) for Player 1 (Red) at Mortal_Die_Point[1] facing Default building facing (270.0) degrees
Unit - Order (Last created unit) to Move To Mortal_Revive_Point
Wait (((Distance between Mortal_Die_Point[1] and Mortal_Revive_Point) / 375.00) + ((Real((Hero level of Dead_Mortal_Hero[1]))) / 2.00)) seconds
Hero - Instantly revive Dead_Mortal_Hero[1] at Mortal_Revive_Point, Show revival graphics
Custom script: call RemoveLocation (udg_Mortal_Die_Point[1])
It doesnt do anything.
I had an other one before, there were 2 wait functions after each other - was messy, thats why i separated them. That one worked... ...sometimes.
It really doesnt do shit, whats the problem? :banghead: