• 🏆 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!

fear type spell

Status
Not open for further replies.
Level 7
Joined
Oct 12, 2004
Messages
186
I'm working on a spell that will fear a unit making unuseable kinda like hex but causes the unit to run around.

How could I make the unit uncontrolable and run around while feared?

Edited: also while feared the unit can cause units nearby that that player isn't currently in combat with to start attacking the player's units
 
Level 22
Joined
Jan 10, 2005
Messages
3,426
When u cast it on a unit, make the unit neutral passive and make this trigger:

Events: Every (Math Random Number between 1 and 5(example) seconds
Conditions:
-------
Actions:
Unit Group - Pick every unit in playable map area with the buff: 'fear' and do: order picked unit to move to a random point in rect centered at picked unit with size ...,... (x and y) (this is the 'Conversion - Convert size with point to Rect' action)

Hope this works
 
Status
Not open for further replies.
Top