Just a quick description of what I have; you and 3 others hold out in a small base from the oncoming zombie apocalypse.
At first, you choose 1 out of 6 heroes who all have levels.
Then you choose which units you want to spawn from a dialog. Similar to some tug of wars, you simply click whatever button you want and those units then spawn around your hero.
The gamemode is extremely difficult for 1 player alone to win, since it's built for 4 player co-op. This is why I want to create an AI for it.
I've never made an actual AI before, the zombies never needed one, they simply attack the nearest unit.
I've made a "temporary AI" using lots of different clumsy, non-dynamic triggers. The AI is extremely simple, it says that:
AIEventsGame-MapinitializationLocalVariablesConditionsActionsGeneral-Pickeachintegerfrom1to4,anddo(Actions)ActionsGeneral-If(Conditions)thendo(Actions)elsedo(Actions)If(Statusofplayer(Pickedinteger))!=PlayingThenUnit-Create1JimRaynor(Commando)forplayer(Pickedinteger)atPoint012facing(Randomangle)degrees(NoOptions)Trigger-RunAIorders(CheckConditions,Don't Wait until it finishes)Else
Basically spawns a hero for the player who's not there, meaning that different units will spawn around that hero. They also have the same thinking as the zombies - attack the nearest unit. The biggest problem is that they don't use their abilities since the Tactical AI is not enabled.
So, the campaign AI is started for player 2 and I've added 6 ghosts to the attack wave.
Also, a trigger 1 second before this trigger spawns 6 ghosts for player 2, so it should be good to go, right?
Well, nothing happens in-game. The units are spawned around Jim Raynor, but they never move out.
Does anyone have any idea what might be wrong?
You're trying to start the AI for a player that was set to "user" control, not "computer" control (in the Player Properties window).
What I suggest you try is: make a new, separate player with computer control for each human player and then transfer control of the not playing human to the computer player. It should work ;]
Just a quick description of what I have; you and 3 others hold out in a small base from the oncoming zombie apocalypse.
At first, you choose 1 out of 6 heroes who all have levels.
Then you choose which units you want to spawn from a dialog. Similar to some tug of wars, you simply click whatever button you want and those units then spawn around your hero.
The gamemode is extremely difficult for 1 player alone to win, since it's built for 4 player co-op. This is why I want to create an AI for it.
I've never made an actual AI before, the zombies never needed one, they simply attack the nearest unit.
I've made a "temporary AI" using lots of different clumsy, non-dynamic triggers. The AI is extremely simple, it says that:
Basically spawns a hero for the player who's not there, meaning that different units will spawn around that hero. They also have the same thinking as the zombies - attack the nearest unit. The biggest problem is that they don't use their abilities since the Tactical AI is not enabled.
So, what I have so far is:
and
So, the campaign AI is started for player 2 and I've added 6 ghosts to the attack wave. Also, a trigger 1 second before this trigger spawns 6 ghosts for player 2, so it should be good to go, right? Well, nothing happens in-game. The units are spawned around Jim Raynor, but they never move out. Does anyone have any idea what might be wrong?
I'm not 100% certain about this.
You're trying to start the AI for a player that was set to "user" control, not "computer" control (in the Player Properties window).
What I suggest you try is: make a new, separate player with computer control for each human player and then transfer control of the not playing human to the computer player. It should work ;]
@Tolkfan: Go
It works perfectly! Thank you so much for your help.
If anyone else happens to google this and has the same problem, this is what I used: