• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

trigger units with drop chance

Status
Not open for further replies.
Level 13
Joined
Feb 5, 2018
Messages
568
  • Item Drop
    • Events
      • Unit - A unit owned by Neutral Hostile Dies
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Unit-type of (Triggering unit)) Equal to Murloc Tiderunner
              • (Unit-type of (Triggering unit)) Equal to Murloc Huntsman
              • (Unit-type of (Triggering unit)) Equal to Murloc Nightcrawler
        • Then - Actions
          • Set VariableSet Drop_Chance[1] = (Random integer number between 1 and 100)
          • Set VariableSet Drop_Chance[2] = (Random integer number between 1 and 100)
          • Set VariableSet Drop_Chance[3] = (Random integer number between 1 and 100)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Drop_Chance[1] Less than or equal to 22
            • Then - Actions
              • Set VariableSet Drop_Loc = (Position of (Triggering unit))
              • Item - Create Tome of Experience at Drop_Loc
              • Custom script: call RemoveLocation (udg_Drop_Loc)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Drop_Chance[2] Less than or equal to 31
            • Then - Actions
              • Set VariableSet Drop_Loc = (Position of (Triggering unit))
              • Item - Create Crown of Kings +5 at Drop_Loc
              • Custom script: call RemoveLocation (udg_Drop_Loc)
            • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Drop_Chance[3] Less than or equal to 42
            • Then - Actions
              • Set VariableSet Drop_Loc = (Position of (Triggering unit))
              • Item - Create Mask of Death at Drop_Loc
              • Custom script: call RemoveLocation (udg_Drop_Loc)
            • Else - Actions
        • Else - Actions
Something like this.
 
Status
Not open for further replies.
Top