- Joined
- Jun 4, 2007
- Messages
- 206
Hey there, I made a simple trigger that gives a 70% chance to create a Iron Ore(item) when a Iron Rock(destructible) dies, but, don't matter how many times I try to get a Iron Ore, it never appears, please help with this trigger!
What's wrong with my trigger?Ahhh and 'Random' is a integer variable.
Code:
Iron Rock
Events
Destructible - A destructible within (Entire map) dies
Conditions
(Destructible-type of (Dying destructible)) Equal to Iron Rock
Actions
Set Random = (Random integer number between 1 and 10)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Random Less than or equal to 7
Then - Actions
Item - Create Iron Ore at (Position of (Dying destructible))
Else - Actions
Do nothing
What's wrong with my trigger?Ahhh and 'Random' is a integer variable.