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

Does this trigger work ?

Status
Not open for further replies.
Level 14
Joined
Jun 27, 2008
Messages
1,325
Yes, you can use whatever you want to calculate an array index (but you dont need the additional brackets). But keep in mind that

[GetForLoopIndexA()*GetForLoopIndexB()]

is the same for e.g.

GetForLoopIndexA == 3, GetForLoopIndexB == 4
and
GetForLoopIndexA == 2, GetForLoopIndexB == 6

If you want this to work for all combinations of A and B you need something like this:

[GetForLoopIndexA() + GetForLoopIndexB() * udg_MaxA]
To get this running you need a GUI variable of type "integer" with the name "MaxA". Its default value should be set to something that is always bigger than GetForLoopIndexA().
 
Status
Not open for further replies.
Top