- Joined
- May 1, 2009
- Messages
- 215
-
Events
-
A Unit Sells A Unit
-
-
Conditions
-
Unit Type of Sold Unit Equal to Item Cache
-
-
Actions
-
Set RandomNumber Equal to Random Integer between 0 and 100
-
If (All Conditions Are True) then do Then Actions else do Else Actions
-
If - Conditions
-
RandomNumber Greater than 96
-
RandomNumber Less than or Equal to 100
-
-
-
Then - Actions
-
Create Random Level 8 Miscellaneous item type and give it to buying unit
-
-
Else - Do Nothing
-
The trigger runs (returns some text as I've told it to) but no item is created no matter how many times I buy the sold unit.
Why? I've wasted an hour trying to figure it out, changing the system around (to spawn item in a region, spawn at position of unit, etc.) and it won't work at all. I think it has to do with the RandomNumber integer, perhaps the and condition isn't working but I'd rather ask before I redo this thing again for the third time.