How can I get a unit with no dmg to attack?

inevit4ble

Well-Known Member
Reaction score
38
Hi every1,

I run my attack and damage systems on trigger and they are fine for nw but I can't seem to reduce the damage to less than 1 without removing the units attack. I need the unit to attack but only deal the damage dealt from the triggers and none from its base damage as the 1 is interfering with other stuff
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Can't you just set the damage to 'Damage - 1' in the trigger?

I'm pretty sure there's no other way to get below 1 without removing it.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
go to Gameplay Constants \ Combat - Damage Bonus Table

and change every attack types there to: 0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00 (yep, 0% for all) except Spells

I recommend you to set the damage bonus for Spells to 1.00,1.00,1.00,1.00,1.00,1.00,1.00,1.00 (100%)

this way, when a unit takes damage from attack, the damage taken is 1 but the unit takes no damage.

edit: nah... sorry if you have actually done that.
do you need to detect the damage taken from attack?
if not, add to every unit you have in your map a (disabled) Spellbook with Evasion 100% in it. (also go to Game Interface and chance the "miss" text to " ") You have to trigger the "miss" text for missed attacks.
 

inevit4ble

Well-Known Member
Reaction score
38
I dont really need to detect damage except for the floating text system that prints damage dealt but that system is only printing "1" damage instead of what is getting dealt by
Code:
Set Damage = (StrMod[((Player number of (Owner of (Attacking unit))) - 1)] + (Random real number between 1.00 and (Real(WeaponDamagePlayer[((Player number of (Owner of (Triggering unit))) - 1)]))))
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (Damage x 2.00) damage of attack type Normal and damage type Normal
 

Weep

Godspeed to the sound of the pounding
Reaction score
400
I can't seem to reduce the damage to less than 1 without removing the units attack.
Set its base damage to 1, its dice sides to 1, and number of dice to -1 (by shift-clicking).

Alternately, a unit can still show some damage in its stats but actually deal 0 damage by giving it a modified Critical Strike or Elune's Grace ability with the damage modifiers set to 0%.
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
I dont really need to detect damage except for the floating text system that prints damage dealt but that system is only printing "1" damage instead of what is getting dealt by
Code:
Set Damage = (StrMod[((Player number of (Owner of (Attacking unit))) - 1)] + (Random real number between 1.00 and (Real(WeaponDamagePlayer[((Player number of (Owner of (Triggering unit))) - 1)]))))
Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (Damage x 2.00) damage of attack type Normal and damage type Normal

there you have it:

add to every unit you have in your map a (disabled) Spellbook with Evasion 100% in it. (also go to Game Interface and chance the "miss" text to " ") You have to trigger the "miss" text for missed attacks.

all the "normal" attacks will miss -> not deal dmg -> not show :D
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top