• 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.

Stupid #[][][][]% grrrr HELP ME

Status
Not open for further replies.
Level 7
Joined
Aug 26, 2004
Messages
406
I don't know why this is, and I normally don't have problems like this - and its so freakin simple >< BUT!

I can't get this to work:
-------------------------------------------------

Event: Periodic event: - Every 2 seconds of game

Condition: BooleanVariableArray [1] = True
("True" from diff. trigger)

Action: - A unitgroup variable "X" do ["Orc - HeroFarSeer Chainlightning"] another unitgroup variable "Z"
Wait 10
Set BooleanVariableArray[1] = False

-------------------------------------------------
whereas;

"X" =(Add "Last created unit" to "X")#8 (units created in a different trigger)

"Z" =(Random unit from (units in 800 region, matching((Triggering unit)has Buff)))


Obviously, "X" ought to cast my spell based on "Chainlightning" every 2 seconds, for 10 seconds, at random units in "Z", but it only casts it once ><

It has no cooldown or mana usage, and the buff stays with "Z" 10 seconds

What do I do wrong, and/or if it looks like this is how its meant to be, (Im sure I've done this earlier without problems ><) please tell if you've encountered likewise problems, and what you did to solve them, cause I'm going loop!

Btw, I put this in the map section, 'cause its a map I'm making, only, it is with custom abillity heroes, but not a spell map, yet, I don't know if its entirely the right forum anyways :p
 
Level 9
Joined
Sep 8, 2004
Messages
633
Use two triggers:

Code:
Event:
(choose one)

Conditions:
(choose)

Actions:
Set BooleanVariableArray [1] = true

And this one, initally enabled.

Code:
Events:
Every 2 seconds of the game

Conditions:
If BooleanVariableArray [1] = true

Actions:
Issue order etc.
 
Level 7
Joined
Aug 26, 2004
Messages
406
that is what I have done... that is what don't work :S

it says, the Boolean Array IS true from diff. trigger, that aint the problem... it is why the hell it only targets a random unit once!
 
Status
Not open for further replies.
Top