| 07-23-2004, 08:47 PM | #1 |
i was making a hero seige type map, where the attacking units are spawned. i was wondering if i could make them have a item table or something of the same effect, where the units drops items x% of the time. any one know how? |
| 07-23-2004, 09:33 PM | #2 |
if you want a random drop create an Integer variable. Event: Unit dies Conditions: Unit-type of dying unit equal to [last created unit] (or whatever) Actions Set DropRandomizerVariable = Random number between 1 and 10 If - Conditions: DropRandomizerVariable equal to 5 Then Actions: Create item-type at position of dying unit If Else actions: Do nothing if you want a higher chance just adjust your randomizer. |
