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

trigger units with drop chance

Status
Not open for further replies.
Level 12
Joined
Feb 5, 2018
Messages
521
  • 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