power
New Member
- Reaction score
- 3
Alrightio!
Heres my problem, I wanna know if there is an easier way to make a unit type drop an item... This is my trigger, works fine, I just wanna know if I have to make a million triggers for each unit.
Heres my problem, I wanna know if there is an easier way to make a unit type drop an item... This is my trigger, works fine, I just wanna know if I have to make a million triggers for each unit.
Code:
Forest Troll Drop 1
Events
Unit - A unit owned by Player 12 (Brown) Dies
Conditions
(Unit-type of (Dying unit)) Equal to Forest Troll
Actions
Set Trollinteger = (Random integer number between 1 and 1)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Random integer number between 1 and 4) Equal to 1
Then - Actions
Item - Create Potion of Healing at (Position of (Dying unit))
Else - Actions