| 09-03-2003, 02:35 PM | #1 |
I'm having trouble reviving a hero for the comp. I have an altar, food, and money for the revival. This is the code I used. Trigger 1 (event) Unit - Dalvengyr 0044 <gen> Dies (action) Unit - Order Altar of Darkness 0011 <gen> to Revive Hero Dreadlord (Dreadlord is a variable of type 'unit' equaling Dalvengyr 0044 <gen>) Trigger 2 (event) Unit - Altar of Darkness 0011 <gen> Finishes reviving (action) Unit Group - Add Dreadlord to Wave1 (wave1 is unitgroup) If ((Number of units in Wave4) Equal to 2) then do (Unit Group - Order Wave4 to Attack-Move To (Player 4 (Purple) start location)) else do (Do nothing) (this assumes I have another unit added on to wave1) |
| 09-03-2003, 02:42 PM | #2 |
Does the altar revive the dreadlord successfully? If not you need a little 5 secs wait before the order, cause you can't order an altar to revive a here just after he dies , there is a small time that the altar takes to react. |
