So you want neutral hostile creeps that are spread around the map to have chances at dropping different items when they are slain?
Depending on the volume of items and creep types you're working with, you'd likely be best off storing this data in array variables, then calling upon a procedure when a creep dies that determines if an item should drop.
FYI, this should be posted in the World Editor Help Zone subforum but I'm not a mod by any means, just a heads up.
To keep it sort of beginner friendly, something like this:
Initialize your item array variables on map start:
-
Initialization
-
Events
-
Conditions
-
Actions
-
Set VariableSet itypearrayItemID[1] = Claws of Attack +15
-
Set VariableSet itypearrayItemID[2] = Crown of Kings +5
-
Set VariableSet itypearrayItemID[3] = Skeletal Artifact
-
Set VariableSet itypearrayItemID[4] = Scroll of Resurrection
-
Set VariableSet itypearrayItemID[5] = Potion of Invulnerability
-
Set VariableSet itypearrayItemID[6] = Essence of Aszune
-
Set VariableSet itypearrayItemID[7] = Moon Key
-
Set VariableSet itypearrayItemID[8] = Scepter of Healing
-
Set VariableSet itypearrayItemID[9] = Bladebane Armor
-
Set VariableSet itypearrayItemID[10] = Firehand Gauntlets
Then create your procedure to drop one of these 10 items at random when a neutral hostile unit dies:
-
Item Drops
-
Events
-
Conditions
-
(Owner of (Triggering unit)) Equal to Neutral Hostile
-
Actions
-
Set VariableSet Temp_RandomNumber = (Random integer number between 1 and 10)
-
Set VariableSet Temp_Point = (Position of (Triggering unit))
-
Item - Create itypearrayItemID[Temp_RandomNumber] at Temp_Point
-
Custom script: call RemoveLocation(udg_Temp_Point)
*edited above, overcomplicated it the first time lol.*
If you want there to be times where no item drops, or multiple items, you'll of course have to expand upon this. Also, it's important to realize that human input is the best randomizer. I like to change vars based on player input that are involved in RNG calculations.
Hope this helps, sorry if there's errors or it doesn't make sense, kind of did this for you in a small hurry. Best of luck!