I tried asking in the AI forums and didn't get any responses.
Basically I want to have two AI's set to random (Player 3 and Player 4) but always be the same race, so I have a trigger that basically says if Player 3 is Protoss then set player 4 to Protoss (etc). It works in that the race is switched, and player 4 starts with probes and a Nexus, but if I set it to Terran, or "Random" sets it to Terran, it will still want to build SCV's and Supply depots instead of Probes and Pylons. Is there a way I can use triggers to switch the AI to think as a Protoss/Terran/Zerg?
I'm not sure, but perhaps you're starting the AI before you switch races?
I.E. the normal initialize trigger looks like this:
Melee - Set melee starting resources for all players
Melee - Create melee starting units for all players
Melee - Start the melee AI for all computer players
Melee - Set default melee options for all players
You'd want (assuming you haven't already) to make sure to change the race BEFORE the "Start melee AI" action. That's the only thing I can think of. Hope this helps!
I'm pretty sure I have "start the melee ai" set up after it and I definately have the switching before creating melee starting units but i will check tonight and maybe move some triggers around to make sure it happens in that order to see if it is the problem. Hoping its that simple!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I tried asking in the AI forums and didn't get any responses.
Basically I want to have two AI's set to random (Player 3 and Player 4) but always be the same race, so I have a trigger that basically says if Player 3 is Protoss then set player 4 to Protoss (etc). It works in that the race is switched, and player 4 starts with probes and a Nexus, but if I set it to Terran, or "Random" sets it to Terran, it will still want to build SCV's and Supply depots instead of Probes and Pylons. Is there a way I can use triggers to switch the AI to think as a Protoss/Terran/Zerg?
How can I do this?
Thx in advance
I'm not sure, but perhaps you're starting the AI before you switch races?
I.E. the normal initialize trigger looks like this:
Melee - Set melee starting resources for all players
Melee - Create melee starting units for all players
Melee - Start the melee AI for all computer players
Melee - Set default melee options for all players
You'd want (assuming you haven't already) to make sure to change the race BEFORE the "Start melee AI" action. That's the only thing I can think of. Hope this helps!
I'm pretty sure I have "start the melee ai" set up after it and I definately have the switching before creating melee starting units but i will check tonight and maybe move some triggers around to make sure it happens in that order to see if it is the problem. Hoping its that simple!