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

Petrified skill

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 73
Joined
Aug 10, 2018
Messages
7,877
Use a Damage Engine to handle the 25% chance to activate on attack.

When it activates, order a Dummy unit cast a unique Storm Bolt ability on the target and change the target's colors using vertex coloring.
This should help with resetting a unit back to it's original colors: [Snippet] GetUnitVertexColor

Then add the target to a "petrified" Unit Group and turn on a "Loop" trigger that has a Periodic Interval of 0.10 seconds. This Loop trigger should be set to Initially OFF since it only needs to be on while a unit is petrified.

This Loop trigger will pick every unit in the petrified Unit Group and check to see if they have the petrified buff (which is applied by the dummy Storm Bolt ability).

If they no longer have the buff then remove them from the Unit Group and reset their vertex colors. Finally, check to see if the number of units in the Unit Group is Equal to 0, and if it is, turn off the Loop trigger.
 
Status
Not open for further replies.
Top