• 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.

[Trigger] random drop to drop a certain item

Status
Not open for further replies.
Level 4
Joined
Sep 27, 2007
Messages
85
well i set triggers so that a type of unit would drop a random item but i dont know how to make it drop certain items here what i have EVENT Unit - a unit dies CONDITIONS Unit - Unit dying equal to troll ACTIONS If - (All Conditions are true) then do (Then Actions) else do (Else Actions) If - Conditions (Random real number between 1.00 and 100) less than or equal to 5.00 Then - Actions Item - Create (Random level (Random integer number between 1 and Num_items) (thats a variable) item-type) at (position of (Dying unit)) Else - Actions if (all Conditions are true) then do (then Actions) else do (else actions) If - Conditions (Random real number between 1.00 and 100.00) less than or equal to 5.00 THen - Actions Item - Create (Random level (Random integer number between 1 and num_items)item type) at (position of (dying unit)) Else - Actions........ then in another trigger (new sheet) i set random_item[1] = Random_item[1] .......... but it just drops level 1 items how do i fix it Sorry this isn't shown well how do i set it in like a trigger?
 
Last edited:
Status
Not open for further replies.
Top