I am an experienced map maker (in Warcraft III). I may be missing something obvious, but I can't find it in all the expected places.
I want a player's ID number. I am using it in a variable array; each player has a unit and an array variable is set to each of them. However, when I try to set a player's ID as the array key, I cannot find any Function or Preset that would do it. The closest I've found is "Triggering player", which is in the Integer functions list, but it does not appear to work. If I use "1" instead of the "Triggering player", the action DOES works instead.
I'd like to apologize in advance if I discover the answer after someone posts, and before I post my answer.
Triggering Player works only with the correct event so to Trigger can see for which Player the action must be.
The Players are 1-x thats the specific players, waht do you mean with ID ? Not the Battle.bet ID or ;) ?
Yes, I was able to fix some of my actions by using a player "reference". However, I am still having difficulty with an action. The event in the trigger is a user pressing a key. I want to set a variable array to the triggering player's ID/number, but that function is grayed out - which means it won't work, if I'm not mistaken. Any idea how to fix this, or are there any workarounds?
I don't think grayed out means it doesn't work. I don't know what it means, but I'm pretty sure I've used grayed-out actions many times with no issues.
I am an experienced map maker (in Warcraft III). I may be missing something obvious, but I can't find it in all the expected places.
I want a player's ID number. I am using it in a variable array; each player has a unit and an array variable is set to each of them. However, when I try to set a player's ID as the array key, I cannot find any Function or Preset that would do it. The closest I've found is "Triggering player", which is in the Integer functions list, but it does not appear to work. If I use "1" instead of the "Triggering player", the action DOES works instead.
I'd like to apologize in advance if I discover the answer after someone posts, and before I post my answer.
Thanks!
Triggering Player works only with the correct event so to Trigger can see for which Player the action must be. The Players are 1-x thats the specific players, waht do you mean with ID ? Not the Battle.bet ID or ;) ?
"Player ID" and "Player" are the same thing. There is no "Player" data type; any time a player is referenced, it is referenced via the player number.
Yes, I was able to fix some of my actions by using a player "reference". However, I am still having difficulty with an action. The event in the trigger is a user pressing a key. I want to set a variable array to the triggering player's ID/number, but that function is grayed out - which means it won't work, if I'm not mistaken. Any idea how to fix this, or are there any workarounds?
Thanks for the help so far.
I don't think grayed out means it doesn't work. I don't know what it means, but I'm pretty sure I've used grayed-out actions many times with no issues.