• 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.
  • Vote for the theme of Hive's HD Modeling Contest #7! Click here to vote! - Please only vote if you plan on participating❗️

How to do a fear Spell??

Status
Not open for further replies.
Level 10
Joined
Apr 3, 2006
Messages
535
Im looking into doing a fear based spell, and was wondering what is the best way of approaching the spell

I was originally thinking of using as dummy spell that uses a trigger to detect unitgroups and make them all enemy’s run to the opposite side of the map. If I use a unitgroup can you tell the difference between friend and foe, and also could you stop it from making boss’s or other heroes fleeing?

If there is another way of doing this please let me know im still thinking how to do the spell at the moment.
 
  • Fear
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Fear
  • Actions
    • Set Caster1 = (Triggering unit)
    • Set Point1 = (Position of (Caster1))
    • Set Temp_Group = (Units within 500.00 of (Point1) matching ((Matching unit) belongs to an enemy of (Owner of (Caster1)) and ((Matching unit) is a structure Equal to False) and (((Matching unit) is a Hero) Equal to False) and (((Unit-type of (Matching unit)) Not Equal to (Boss))
    • Unit Group - Pick up every unit in (Temp_Group) and do (Actions)
      • Loop - Actions
        • Set Point2 = (Position of (Picked unit))
        • Set Point3 = (Point2 offset by 500.00 towards (((Facing of (Picked unit)) + 180)
        • Unit - Order (Picked unit) to Move To Point3
        • Custom script: call RemoveLocation (udg_Point2)
        • Custom script: call RemoveLocation (udg_Point3)
    • Custom script: call RemoveLocation (udg_Point1)
    • Custom script: call DestroyGroup (udg_Temp_Group)
 
Level 10
Joined
Apr 3, 2006
Messages
535
wow thanks for the very quick response, would you be able to put that in a map by any chance? many thanks and +rep
 
Level 10
Joined
Apr 3, 2006
Messages
535
thanks guys ive managed to sort this out now by looking at the map examples you both provided, + rep and thanks again for all the help
 
Level 8
Joined
Apr 30, 2009
Messages
338
to make it work against players you should have it so that if someone selects a feared unit, it deselects them instantly. Or loop a trigger every 0.05 seconds ordering the feared unit to move away. This would prevent players from negating the effect like how Axe's battle hunger works in DotA.
 
Status
Not open for further replies.
Top