HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Help with Array trigger.

08-22-2003, 06:55 AM#1
Xeloss
Hi, trying to create a trigger reading the following:

Events
Hero begins casting an ability
Conditions
Ability is equal to Azshara's Touch
Actions
If AzsharaCurrentTarget Less than 20 then do Set AzsharaCurrentTarget + 1 else do Set AzsharaCurrentTarget = 1
Set AzsharaTarget(AzasharaCurrentTarget) = Spells_Generic_Targets(Custom value of casting unit)

where AzsharaCurrentTarget is an integer variable, AzsharaTargets is a unit array variable, and Spells_Generic Targets is a another unit array.

The problem comes in when I try to do the

Set AzsharaTarget(AzasharaCurrentTarget) = Spells_Generic_Targets(Custom value of casting unit) ]

line, I am prevented as Spells_Generic_Targets is not a valid variable, any idea how to get this to work?
08-22-2003, 06:06 PM#2
element_5
Have you tried removing the underscores?
08-22-2003, 06:14 PM#3
Xeloss
name of the variable isn't the issue, i could call it whatever i want, it's the TYPE of variable.
08-22-2003, 06:23 PM#4
Shvegait
Looks like you forgot the left bracket...
08-22-2003, 06:44 PM#5
element_5
I imagine that's a typo, Shvegait, as you can't miss one when working with the GUI triggers (as it appears he/she is doing).

Xeloss: Everything seems to be in order except those underscores. Double check the variable types and/or copy your trigger as text and paste it here. Also, TRY removing those underscores... it couldn't hurt
08-22-2003, 08:40 PM#6
Xeloss
I will try removing the underscores, just doesn't make any sense as I've used the variable properly in another trigger..