Well I'm not really new but it's been a LONG LONG time. I have been injured and am stuck at my computer so I re-installed War3 and have been trying to remember how to do things in WE.
It's all slowly coming back to me like Han Solo's eyesight but I digress. I am pretty well versed with Triggers, variables and arrays and from what I remember (and from my development notes) I think I know what I need but just posting to see if there is an easier way to do it.
I want to have triggers search and see which Computer controlled players are which race and then assign certain custom upgrades accordingly depending on who is what at certain times during the game. Problem for me is deciding on how to have the trigger set to assign the appropriate upgrades to EACH player of the SAME race. So for instance if I start a 8 -plyr game and have lets say 4 (out of 7 computer) Orc players. Do I need to have
"For integer A 1-4" Do Actions If Integer A = 2 and Computer player = Orc kinda of setup
OR
Do I need to, say, make an array for each player slot or group then run conditions for each slot/group (Player is a computer player, Matching player is equal to Orc etc.)
This has been running around in my head for a couple days now (I'm slow, forgive me) but please chime in and let me know what you all would do.
Thanks in advance for any help.
It's all slowly coming back to me like Han Solo's eyesight but I digress. I am pretty well versed with Triggers, variables and arrays and from what I remember (and from my development notes) I think I know what I need but just posting to see if there is an easier way to do it.
I want to have triggers search and see which Computer controlled players are which race and then assign certain custom upgrades accordingly depending on who is what at certain times during the game. Problem for me is deciding on how to have the trigger set to assign the appropriate upgrades to EACH player of the SAME race. So for instance if I start a 8 -plyr game and have lets say 4 (out of 7 computer) Orc players. Do I need to have
"For integer A 1-4" Do Actions If Integer A = 2 and Computer player = Orc kinda of setup
OR
Do I need to, say, make an array for each player slot or group then run conditions for each slot/group (Player is a computer player, Matching player is equal to Orc etc.)
This has been running around in my head for a couple days now (I'm slow, forgive me) but please chime in and let me know what you all would do.
Thanks in advance for any help.