• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Petrified skill

Status
Not open for further replies.

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,567
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