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

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