• 🏆 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!

Random Item Drop

Status
Not open for further replies.
Level 10
Joined
Jul 22, 2007
Messages
261
The items are still not dropping, heres the trigger
  • Drops
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 1 and 100) Less than or equal to 60
        • Then - Actions
          • Item - Create (Random level 8 Powerup item-type) at (Position of (Dying unit))
        • Else - Actions
 
Level 11
Joined
Jul 28, 2007
Messages
920
I would do i like this:

  • Item Drop
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Dying unit)) Equal to (==) Footman
      • (Owner of (Dying unit)) Equal to (==) Player 1 (Red)
      • ((Dying unit) belongs to an enemy of (Owner of (Killing unit))) Equal to (==) True
    • Actions
      • Set DropChance = (Random integer number between 1 and 100)
      • Set Point = (Position of (Dying unit))
      • -------- . --------
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • DropChance Less than or equal to (<=) 40
          • Then - Actions
            • Item - Create Mask of Death at Point
            • Point - Remove Point
          • Else - Actions
 
Status
Not open for further replies.
Top