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

[Spell] Mana Powers

Status
Not open for further replies.
Level 5
Joined
Aug 14, 2020
Messages
118
hi everyone! I'm trying to create some spells based on Mana for example:
when a unit has 70% or more Mana it's attack damage is 30% increased.

it's simple to create that but I want to do this:
when a unit has 70% or more Mana it's attack damage is 30% increased However when it takes damage it will lose Mana depend on damage taken.

I know I should use DDS but I have never used that before if anyone can help me in setting it or have another way I will be grateful.
 
Level 25
Joined
Feb 9, 2009
Messages
1,801
Now does the mana when it's this high block the damage from affecting the health of the unit or is it just lost as well?

ex.
50 damage to 100/100 HP with 100/100 mana becomes 80/100HP & 70/100 mana
OR
100 damage to 100/100 HP with 100/100 mana becomes 100/100HP & 50/100 mana


Lastly, What version of warcraft are you using.
 
Level 25
Joined
Feb 9, 2009
Messages
1,801
Gotcha

Config
  • AbTe Config
    • Events
      • Map initialization
    • Conditions
    • Actions
      • -------- --------
      • Set VariableSet AbTe_C_Ability = Absolute Territory
      • -------- Ability for this effect --------
      • -------- --------
      • Set VariableSet AbTe_C_Dam_Reduction[1] = 1.00
      • -------- Mana lost per 1 point of damage --------
      • -------- --------
      • Set VariableSet AbTe_C_Dam_Boost[1] = 1.30
      • -------- Bonus damage --------
      • -------- --------
      • Set VariableSet AbTe_C_Mana_Maximum[1] = 0.70
      • -------- Bonus damage --------
On damage
  • AbTe On damage
    • Events
      • Game - DamageModifierEvent becomes Equal to 4.00
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Level of AbTe_C_Ability for DamageEventTarget) Greater than 0
          • (Level of AbTe_C_Ability for DamageEventSource) Greater than 0
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Percentage mana of DamageEventTarget) Greater than or equal to (AbTe_C_Mana_Maximum[1] / 0.01)
          • (Level of AbTe_C_Ability for DamageEventTarget) Greater than 0
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Mana of DamageEventTarget) - ((Max mana of DamageEventTarget) x AbTe_C_Mana_Maximum[1])) Greater than DamageEventAmount
            • Then - Actions
              • Unit - Set mana of DamageEventTarget to ((Mana of DamageEventTarget) - (DamageEventAmount x AbTe_C_Dam_Reduction[1]))
            • Else - Actions
              • Unit - Set mana of DamageEventTarget to ((Max mana of DamageEventTarget) x AbTe_C_Mana_Maximum[1])
        • Else - Actions
      • -------- --------
      • -------- --------
      • -------- --------
      • -------- Damage boost, if you don't wanna use battle drums. --------
  • [S] If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Level of AbTe_C_Ability for DamageEventSource) Greater than 0
      • (Percentage mana of DamageEventSource) Greater than or equal to (AbTe_C_Mana_Maximum[1] / 0.01)
    • Then - Actions
      • Set VariableSet DamageEventAmount = (DamageEventAmount x AbTe_C_Dam_Boost[1])
    • Else - Actions[/S]
    • -------- Damage boost, if you don't wanna use battle drums. --------
    • -------- --------
    • -------- --------
 
Last edited:
Status
Not open for further replies.
Top