Warcraft III resources & community, 2003–2006 · archived

Gunshot Wounds

3 posts
#1

Gunshot Wounds

Hi,

I was wondering if somebody could help me put together a Gunshot Wounds ability for a rifleman. Basically, I want my riflemen to have a 45% chance to inflict critical damage to a unit over a period of time until it dies. It would also reduce the units' movement speed. If anyone has any suggestions, they would be greatly appreciated, thank you!

Kai
#2
wow... i didnt really get what you want...
maybe it has 45% chance that the attacker (rifleman) marks its target,reduces its MS, and after that, it will deal crit damage but only to that unit.
well man this needs triggering, but to work well, it requires JASS and Local Handle Vars.

the GUI way: note that this sucks!!! :)

trigger #1:
event:
unit is attacked
condition:
level of Ability for attacking unit > 0
action:
if (Random integer between 1 and 100) < 45
set Attacker = attacking unit
set MarkedUnit = attacked unit

trigger #2:
event:
MarkedUnit is damaged
condition:
damage source is equal to Attacker
action:
do the critical damage with unit-damage target
create a floating text to display the damage

hope this helped. if not, learn triggering man...
or JASS :)
#3
i got a better and easier way! use the new purge ability and set it to 45% and use shadow strike as your ability. set the duration for as long as possible and that should keep his speed down! but it would slowly regain movement as time went on! so that would be kind of like a gun shot wound!