• 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.

Trigger by Critical hit?

Status
Not open for further replies.
Level 11
Joined
Feb 22, 2006
Messages
752
You can't perfectly duplicate the crit strike text, but you can approximate it using texttags (Floating Text in GUI).

The problem with critical hits with triggers is that you have to detect when a unit is damaged and get the amount of damage done by that unit, and WE makes tht process a lot harder than it ought to be. You can't do it with GUI; it has to be done with pure JASS.

There's a tutorial for one kind of damage detection system:

http://www.hiveworkshop.com/forums/showthread.php?t=33123

It's not perfect (none are), but for the purposes of making a triggered crit strike it should work quite well. Use texttags that appear over the attacking unit with color red and font size around 10 that move upwards (positive y direction) and disappear after about two seconds to simulate the crit strike text.
 
Status
Not open for further replies.
Top