• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Gunshot Wounds

Status
Not open for further replies.
Level 1
Joined
Aug 11, 2006
Messages
1
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
 
Level 11
Joined
Jul 12, 2005
Messages
764
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 :)
 
Level 7
Joined
Dec 8, 2005
Messages
319
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!
 
Status
Not open for further replies.
Top