• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

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