• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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
 
Level 5
Joined
Oct 22, 2008
Messages
156
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:)
 
Level 16
Joined
Jul 21, 2008
Messages
1,121
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
 
Level 5
Joined
Oct 22, 2008
Messages
156
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.
Top