• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Taunt, Fear and such spells

Status
Not open for further replies.
Level 7
Joined
Nov 6, 2009
Messages
278
How do you make such spells without using a really low timer interval? Well you can, but still they're not uncancelable (is that a word?!) like DotA's berserker's call...

(By uncancelable i mean that if you order a unit to attack a widget every 0.035 seconds while its owner repeatidely orders it do something else it just rotates and does nothing...)
 
You don't need a periodic trigger. Just add the unit affected by the spell in a Unit Group and use this:
  • Trigger
  • Events
    • Unit - A unit is issued an order with no target
    • Unit - A unit is issued an order targeting an object
    • Unit - A unit is issues an order targeting a point
  • Conditions
    • ((Triggering unit) is in UnitGroup) Equal to True
  • Actions
    • Set Unit1 = (Load (Key(caster)) of (Key(Triggering unit)) from Hashtable)
    • Unit - Order (Triggering unit) to Attack Unit1
It uses hashtable as you can see. The caster is the unit casting the Berserker's call ability, who is saved to the affected unit, so that you can order the affected unit to attack him, whenever it is issued another order.
 
You don't need a periodic trigger. Just add the unit affected by the spell in a Unit Group and use this:
  • Trigger
  • Events
    • Unit - A unit is issued an order with no target
    • Unit - A unit is issued an order targeting an object
    • Unit - A unit is issues an order targeting a point
  • Conditions
    • ((Triggering unit) is in UnitGroup) Equal to True
  • Actions
    • Set Unit1 = (Load (Key(caster)) of (Key(Triggering unit)) from Hashtable)
    • Unit - Order (Triggering unit) to Attack Unit1
It uses hashtable as you can see. The caster is the unit casting the Berserker's call ability, who is saved to the affected unit, so that you can order the affected unit to attack him, whenever it is issued another order.

Awesome! I'd never thought of that!
 
Status
Not open for further replies.
Back
Top