• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Unit having a % chance to drop an item

Status
Not open for further replies.
Level 5
Joined
Jun 28, 2008
Messages
127
Is there a way to make a unit drop an item which isnt by the object manager. I want an item to have for example 1% chance to drop when the unit is killed.

Thanks
 
Double click the unit, and there should pop a box up, select " items dropped " then.. make a new item table and find the item you want to drop, and then in the top of the item box there is drop rate chance... edit it to what you want:)
 
If you are creating units in game, you will have to make it with triggers.

  • Item Drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • -------- Add Conditions if you want to --------
    • Actions
      • Set TempInteger = (Random integer number between 1 and 100)
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • TempInteger Equal to 1
          • Then - Actions
            • Set TempPoint = (Position of (Triggering unit))
            • Item - Create <Item> at TempPoint
            • Custom script: call RemoveLocation(udg_TempPoint)
          • Else - Actions
 
Lol, if its a boss he doesn't need any triggers.... but if you are creating many creeps you need, if you don't want to add every item table, by your self ;b
 
Status
Not open for further replies.
Back
Top