CysticCraze
New Member
- Reaction score
- 12
Code:
ItemSet1
Events
Unit - A unit Dies
Conditions
Actions
Set RandomInteger1 = (Random integer number between 1 and 100)
Unit - Create 1 Loot for Player 1 (Red) at ((Position of (Dying unit)) offset by (0.00, 0.00)) facing Default building facing degrees
Unit - Add a 45.00 second Generic expiration timer to (Last created unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
RandomInteger1 Less than or equal to 5
Then - Actions
Hero - Create Worn Sword and give it to (Last created unit)
Else - Actions
Hero - Create Copper and give it to (Last created unit)
So why exactly does this make it so...
1. Whe you kill a unit the generic time resets on all the units.
2. When one of the units expires all the others reset.
And heres an offtopic question.
3. How do I make it so the items in these units inventory's are destroyed after there time is up?
.... no one?