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

[Spell] Does Critical strike stack?

Status
Not open for further replies.

Bribe

Code Moderator
Level 50
Joined
Sep 26, 2009
Messages
9,464
Suppose you had three critical strikes. 1 strike for 5% chance to deal 5x damage, 10% chance to deal 3x damage, 15% chance to deal 2x damage.

The trigger would look like this:

  • Critical Strike
    • Events
      • Game - DamageModifierEvent becomes Equal to 1.00
    • Conditions
      • DamageEventOverride Equal to false
    • Actions
      • Set Multiplier = 1.00
      • 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 5
        • Then - Actions
          • Set Multiplier = 5.00
        • Else - 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 10
        • Then - Actions
          • Set Multiplier = (Multiplier + 2.00)
        • Else - 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 15
        • Then - Actions
          • Set Multiplier = (Multiplier + 1.00)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Multiplier Not Equal to 1.00
        • Then - Actions
          • Set DamageEventAmount = (DamageEventAmount x Multiplier)
          • Set DamageEventOverride = true
          • -------- Do floating text stuff here --------
        • Else - Actions
 
Status
Not open for further replies.
Top