I'm trying to create a map where 2 players must defend a building in the middle of the stage, but if the player is not active, the computer will play for him, so I wanted to make the units created by the computer to defending this building, which triggers should I use to do this?
Be a little more clear than "What triggers should I use for AI". Im not sure if you mean finding if the player is active, or the actual AI...
your trigger
if/then/else
if = if player 2 slot status = unused
then= enable AI for player 2 (dont remember the exact name of this trigger)
or you could do something like
events= periodic event
conditon = player 2 property (minerals) > cost of marine
action = create marine for player 2, modifty player 2 minerals - cost of mairne
well, I want to make a map that you build your base like a normal game "Melee" only that the goal is to defend an artifact in the middle of the stage that belongs to player 1, then, if player 2 is not active, the computer play for him, so i did it just fine, then, computer starts to build things, collect everything, but it does not protect the artifact, it builds some air units and stands at the base, and keep there, if any enemies atack him, he protect himself, but does nothing about the artifact
I want to make the computer build things and make soldiers and protect the artifact, nothing more than that, simply to protect the artifact and continue creating units whenever possible,until the end of the game!
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm trying to create a map where 2 players must defend a building in the middle of the stage, but if the player is not active, the computer will play for him, so I wanted to make the units created by the computer to defending this building, which triggers should I use to do this?
noone? T_T
Be a little more clear than "What triggers should I use for AI". Im not sure if you mean finding if the player is active, or the actual AI...
your trigger
if/then/else
if = if player 2 slot status = unused
then= enable AI for player 2 (dont remember the exact name of this trigger)
or you could do something like
events= periodic event
conditon = player 2 property (minerals) > cost of marine
action = create marine for player 2, modifty player 2 minerals - cost of mairne
well, I want to make a map that you build your base like a normal game "Melee" only that the goal is to defend an artifact in the middle of the stage that belongs to player 1, then, if player 2 is not active, the computer play for him, so i did it just fine, then, computer starts to build things, collect everything, but it does not protect the artifact, it builds some air units and stands at the base, and keep there, if any enemies atack him, he protect himself, but does nothing about the artifact
I want to make the computer build things and make soldiers and protect the artifact, nothing more than that, simply to protect the artifact and continue creating units whenever possible,until the end of the game!