HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Way to make hero attacks to do 0 damage?

01-18-2006, 09:08 AM#1
qwertyui
I was wondering if there is a way to make a unit do 0 damage on his every attack, without affecting his status screen in any way.

Maybe some 0-multiplier critical strike?
01-18-2006, 09:22 AM#2
Whitehorn
100% chance of -100% damage critical strike looks good to me.
01-18-2006, 09:32 AM#3
Blade.dk
Make a trigger that detects attack, and on the first attack simply add the damage dealt as life to the attack unit. Of course, this is not 100% safe, since units can die of first attack, but it is the best thing I can think of.

Or find an ability that adds a percentage bonus damage, make it -100% extra damage, give it to the unit, and remove it after first attack.

EDIT: Whitehorn is fast.
01-18-2006, 09:56 AM#4
qwertyui
Can't really have units dying on an attack which is supposed to do 0 damage, so t.t for that trigger. I can try a workaround in which

100% critstrike has red numbers. Which are also no good :(. It will also demand an icon on unit interface.
01-18-2006, 10:47 AM#5
johnfn
Trigger:
Collapse Populate other trigger
Collapse Events
Time - Elapsed game time is 0.01 seconds
Conditions
Collapse Actions
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Trigger - Add to Untitled Trigger 003 <gen> the event (Unit - (Picked unit) Takes damage)


Collapse Untitled Trigger 003
Events
Collapse Conditions
(Attacking unit) Equal to (Last created unit)
Collapse Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Attacked unit) is dead) Equal to True
Collapse Then - Actions
Unit - Create 1 (Unit-type of (Attacked unit)) for (Owner of (Attacked unit)) at (Position of (Attacked unit)) facing Default building facing degrees
Unit - Set life of (Attacked unit) to (Damage taken)
Collapse Else - Actions
Unit - Set life of (Attacked unit) to ((Life of (Attacked unit)) + (Damage taken))

wouldn't guarentee this works but have to go
01-18-2006, 10:55 AM#6
iNfraNe
I think the unit is damaged event runs b4 the unit actually dies and you can give him his hp back without him actually dying.
01-18-2006, 11:03 AM#7
Whitehorn
Set his attack type to noob.

Does your hero have a fixed attack damage? You could give it a negative attack bonus.
01-18-2006, 12:40 PM#8
qwertyui
Actually making hero damge have 0 effect on everything may just work for my purposes :/
Thnx @ Whitehorn

@iNfraNe i'll test your suggestion and report results

@johnfn thanks for the trigger. Will use if all else doesn't work.
01-18-2006, 03:09 PM#9
Peekaboo
Critical Strike with 100% chance to do Negetive damage multiplier means the units attacks don't do damage, and there isn't a red message saying 0!, it should be exactly what you need. If that doesn't work (does for me) edit one of the uncommon attack type's damage tables to deal 0% damage to everything
01-19-2006, 05:31 AM#10
qwertyui
Interesting
Will try that as well
01-20-2006, 12:04 AM#11
FriendlyWarlord
Make a claws of attack -1 ability, and set the unit's attack damage to 1 (0 plus one 1 sided attack die). That's worked fine for me at least

You can even use it if the unit has 2 attacks (one non-damaging, one damaging). Then again it might not work if the unit has a damage upgrade... The critical strike thing looks foolproof though for units with 1 attack.
01-20-2006, 05:44 AM#12
qwertyui
I need to see normal hero damage output on hero status screen. Not 0-1 :/