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

Pure damage for a spell

Status
Not open for further replies.
Level 12
Joined
Apr 16, 2010
Messages
584
Can anyone tell me how can spell deal pure damage?
I already read somewhere, don't remember where, it was said that pure damage is Chaos. But is this true? And what about other types Sonic, Universal, etc...
  • Unit - Cause (Triggering unit) to damage (Triggering unit), dealing 500.00 damage of attack type Chaos and damage type Normal
I mean does damage type in this action affects the attack type. For example if i have attack type Chaos, then damage type could be anything, and it still will deal pure damage?
Please help!
 

Vunjo

Hosted Project: SC
Level 14
Joined
Jul 1, 2010
Messages
1,340
It won't be pure damage, armor will reduce it. Use this Action to make Pure Damage:
[trigger=Pure Damage]MyTrigger
Actions
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) -50.00)[/trigger]

This will deal 50 Pure Damage. You can change target unit of ability being cast to attacked unit, if you want unit to deal 50 Pure Bonus Damage on attack. Damage base (50) is for you to change
 
Level 12
Joined
Apr 16, 2010
Messages
584
But then the credit for killing will not go to killing unit, cause he wasn't damage by killer.
I need something different, but thanks anyway.
For example in DotA, Mortred's first spell deals pure damage, but if you kill a unit with this spell, credit goes to you, so it must be something else, or it's using this trigger:
  • Pure Damage
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Less than or equal to 140.00
        • Then - Actions
          • -------- If target's hp is lesser then 140 (Mortred's spell deals 140 damage on 4th level) set life 1 and then kill target with next action, to give credit --------
          • Unit - Set life of (Triggering unit) to 1.00
          • -------- Next action makes hero die anyway and credit for killing will go to you. --------
          • Unit - Cause Paladin to damage (Triggering unit), dealing 100.00 damage of attack type Spells and damage type Normal
        • Else - Actions
 
Level 9
Joined
Jul 4, 2007
Messages
130
  • Spell Cast
    • Events
      • Unit - Any unit cast an ability
    • Conditions
      • (Ability being cast) == [TrueDamageToTarget]
    • Actions
      • Set DAMAGE = [AmountOfDamage] // Real variable
      • Set CASTER = GetTriggeringUnit() // Unit variable
      • Set TARGET = GetTargetUnitOfAbilityBeingCast() // Unit variable
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of TARGET) Less or equal to DAMAGE == TRUE
        • Then - Actions
          • // Make the caster kill the target.
          • Unit - Cause CASTER to damage TARGET, dealing 99999 damage of attack type Chaos and damage type Normal
        • Else - Actions
          • // Deals True damage
          • Unit - Set Life of TARGET to ((Life of TARGET) - DAMAGE)
      • //Remove leaks
      • Custom script: set udg_CASTER = null
      • Custom script: set udg_TARGET = null
U don't really need to use variables, but it is cleaner.
 

Vunjo

Hosted Project: SC
Level 14
Joined
Jul 1, 2010
Messages
1,340
But then the credit for killing will not go to killing unit, cause he wasn't damage by killer.
I need something different, but thanks anyway.
For example in DotA, Mortred's first spell deals pure damage, but if you kill a unit with this spell, credit goes to you, so it must be something else, or it's using this trigger:
  • Pure Damage
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Less than or equal to 140.00
        • Then - Actions
          • -------- If target's hp is lesser then 140 (Mortred's spell deals 140 damage on 4th level) set life 1 and then kill target with next action, to give credit --------
          • Unit - Set life of (Triggering unit) to 1.00
          • -------- Next action makes hero die anyway and credit for killing will go to you. --------
          • Unit - Cause Paladin to damage (Triggering unit), dealing 100.00 damage of attack type Spells and damage type Normal
        • Else - Actions

well, yeah this will work.
 
Level 9
Joined
Jul 4, 2007
Messages
130
I just tested every attack type:
chaos + unknown = true damage for sure

for other attack types im not sure if they are pure or not, they all seem to be pure on a footman (excepted normal which is reduced by armor) but they may conflict with other abilities, like fire type should do double damage with the panda Drunken Haze.

simple use:
  • True Damage Spell
    • Events
      • Unit - Any unit cast an ability
    • Conditions
      • (Ability being cast) == TrueDamageToTarget
    • Actions
      • Unit - Cause (GetTriggeringUnit()) to damage (GetTargetUnitOfAbilityBeingCast()), dealing 100 damage of attack type Chaos and damage type Unknown
 
Level 11
Joined
Oct 27, 2009
Messages
234
It won't be pure damage, armor will reduce it. Use this Action to make Pure Damage:
[trigger=Pure Damage]MyTrigger
Actions
Unit - Set life of (Target unit of ability being cast) to ((Life of (Target unit of ability being cast)) -50.00)[/trigger]

This will deal 50 Pure Damage. You can change target unit of ability being cast to attacked unit, if you want unit to deal 50 Pure Bonus Damage on attack. Damage base (50) is for you to change

no this is not a pure damage. well it is, but it isnt.
in this way caster does not damage target. so if targeted unit dies owner of casting unit will not recive bounty or exp for that.
 
Status
Not open for further replies.
Top