• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

%to drop on death/unit type

Status
Not open for further replies.
Level 2
Joined
Jan 3, 2005
Messages
15
Hey, how do i make a unit type to have a certain % to drop an item on death.

The reason why i need to know this is cuz im using a spawn system so it must be the unit type who drops the item(s)
and not just an ordinary drop on death feature.

//thanks for answering this newbie question
 
Level 5
Joined
Apr 8, 2007
Messages
116
create a trigger, that when a unit dies of the certain type, create a random number from 1 to 100. And if the number is less than or equal to the % chance, create an item at position of dying unit. (Dont have world editor here, so i cant explain better, sorry. Hope it helped anyway).
 
Status
Not open for further replies.
Top