• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Variable Help

Status
Not open for further replies.
Level 3
Joined
Nov 8, 2009
Messages
46
Let's say i got 2 triggers
  • Trigger 1
    • Events
  • A unit cast a spell
    • Conditions
  • Spell equal to storm bolt
    • Actions
  • Set Caster = casting unit
  • Create 1 ghoul
  • Trigger 2
    • Events
  • A unit cast a spell
    • Conditions
  • Spell equal to blizzard
    • Actions
  • Set Caster = casting unit
  • Create 1 Footman
The point is can i use the same Variable Caster for all the triggers for my spells.

If 1 player cast storm bolt and another play cast blizzard at the same time, will there be a bug?
 
just a notice, in your trigger the casting unit = triggering unit, what is (with triggerplayer) the only thing what dont changed until trigger end, allways same indifferent how much time running that trigger.

so my advice, if u need only the caster unit then dont store to variable and use triggering unit :)
 
Status
Not open for further replies.
Back
Top