Create a point variable called, PositionVariable, and a Integer variable called Creep_Drop_Number [Or whatever you want to call them.]
Troll Drops
Events
Unit - A unit Dies
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Dying unit)) Equal to Troll
Actions
Set Creep_Drop_Number = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Creep Drop Number Less than or equal to 15
Then - Actions
Set PositionVariable = (Position of (Dying unit))
Item - Create Item at PositionVariable
Custom script: call RemoveLocation( udg_PositionVariable )
Else - Actions
Do nothing
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Creep_Drop_Number Greater than 15
Creep_Drop_Number Less than or equal to 24
Then - Actions
Set PositionVariable = (Position of (Dying unit))
Item - Create Item at PositionVariable
Custom script: call RemoveLocation( udg_PositionVariable )
Else - Actions
Do nothing
This way, The player has a 38% chance to get an item,
but not only that, he has 15% chance to get item 1, 9% chance to get item two. and so on and so forth.
Also this will make every unit of that type have a chance to drop that item.
Cheers. =]
-Calvin