• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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