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

Question on set variables triggers

Status
Not open for further replies.
Level 2
Joined
Dec 15, 2004
Messages
10
After looking at http://www.wc3campaigns.com/showpost.php?p=628033&postcount=33 and attempting to duplicate the

intArLeaderboard[(Player number of (Owner of (Killing unit)))] + 1)

part of the first action near the end I was un-able to figure out how to make the +1 outside the [] brackets in order to make it not affect the player number that the variable is tracking. So far, the best I was able to do is...

Set Trackingkills[(Player number of (Owner of (Killing unit)))] = Trackingkills[((Player number of (Owner of (Killing unit))) + 1)]

The problem of course being that in my trigger the +1 is still inside the [] brackets and is affecting the player number, or so it seemed to me as it didn't work when I tested it.

If someone could tell me how to get that +1 outside of the [] brackets that'd be superb. Thanks!
 
Status
Not open for further replies.
Top