[Spell] Mana Powers

Level 6
Joined
Aug 14, 2020
Messages
109
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 19
Joined
Feb 9, 2009
Messages
1,573
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 6
Joined
Aug 14, 2020
Messages
109
no man! it doesn't effect like a mana shield, it increase damage of unit ,
example:
unit takes 10 damage 200 HP = 190 HP 100 MP = (20% of taken damage (10) = 2) 98 MP


also for damage increasing I used war drums ability
I just need to decrease mana per damage which I don't know how!!
 
Level 19
Joined
Feb 9, 2009
Messages
1,573
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:
Top