I'm just trying to put AIs to 2 computers but every time I use the "Initialize AI" it removes every units from the game... Is there any way to use the AI, without making my own, without melee settings?
Edit: What the hell, if I put any triggers in the map, the units that I already placed disappear...
I'm not sure if it's exactly what you're trying to achieve, but I use the default melee AI in The Last Hour without actually having control of workers or a base, or even the winning conditions like in the usual melee rules. It just helps computer players handle groups of units and their abilities/behaviors while hunting down enemies and protecting the structures and allies. I'm not entirely sure yet, but I think you can also make some trigger actions from the AI category (and AI advanced) work.
It's a little bit of a cheat, but basically you just have to place a SCV/probe/drone somewhere on your map (owned by the computer player that needs AI), hide it and make it unavailable for attack waves (unit properties in the editor), pause it (trigger action to prevent him from attacking units in range while in game). The presence of the worker itself initiates the melee AI for the owning computer player, as long as you have the "start the melee AI" action somewhere in one of your triggers and this player has a starting point.
I've spent half a day figuring out what makes an AI actually starts, it looks like you CAN'T make the AI work unless the player owns a worker somewhere and a starting point. So if you want the AI to work, but have no need for a SCV/probe/drone, just make sure it's hidden, unavailable for attacks, and paused. The only issue I've found so far is that when you check a replay of one of your games, the worker seems to be counted in the units panel even though it's not a unit that can be used in any way.
Well the problem I have actually seems to not be related with the AI itself but the triggers in general. If I put units on my maps, let's say SCVs and Command Centers or anything, they just dissapear when I use triggers... If I disable every single triggers they will spawn normaly though. Do you know what might cause this kind of bug?
It depends if the issue only occurs with a specific map, or with any map you create. Try creating a new map from scratch just for testing purpose, put a few marines, zerglings, and zealots (owned by the same player at first, then try a little mix including neutrals, hostiles and such), and see what happens (don't forget to remove the initial trigger starting the melee rules). Have you tested your map on BNet or just by launching it directly from the editor? Have you edited anything in the actor events that could remove a unit somehow when it's being built/created/placed? Do you use a mod for your map that is not a standard mod from Blizzard?
I'm just trying to put AIs to 2 computers but every time I use the "Initialize AI" it removes every units from the game... Is there any way to use the AI, without making my own, without melee settings?
Edit: What the hell, if I put any triggers in the map, the units that I already placed disappear...
I'm not sure if it's exactly what you're trying to achieve, but I use the default melee AI in The Last Hour without actually having control of workers or a base, or even the winning conditions like in the usual melee rules. It just helps computer players handle groups of units and their abilities/behaviors while hunting down enemies and protecting the structures and allies. I'm not entirely sure yet, but I think you can also make some trigger actions from the AI category (and AI advanced) work.
It's a little bit of a cheat, but basically you just have to place a SCV/probe/drone somewhere on your map (owned by the computer player that needs AI), hide it and make it unavailable for attack waves (unit properties in the editor), pause it (trigger action to prevent him from attacking units in range while in game). The presence of the worker itself initiates the melee AI for the owning computer player, as long as you have the "start the melee AI" action somewhere in one of your triggers and this player has a starting point.
I've spent half a day figuring out what makes an AI actually starts, it looks like you CAN'T make the AI work unless the player owns a worker somewhere and a starting point. So if you want the AI to work, but have no need for a SCV/probe/drone, just make sure it's hidden, unavailable for attacks, and paused. The only issue I've found so far is that when you check a replay of one of your games, the worker seems to be counted in the units panel even though it's not a unit that can be used in any way.
@ZealNaga: Go
Well the problem I have actually seems to not be related with the AI itself but the triggers in general. If I put units on my maps, let's say SCVs and Command Centers or anything, they just dissapear when I use triggers... If I disable every single triggers they will spawn normaly though. Do you know what might cause this kind of bug?
It depends if the issue only occurs with a specific map, or with any map you create. Try creating a new map from scratch just for testing purpose, put a few marines, zerglings, and zealots (owned by the same player at first, then try a little mix including neutrals, hostiles and such), and see what happens (don't forget to remove the initial trigger starting the melee rules). Have you tested your map on BNet or just by launching it directly from the editor? Have you edited anything in the actor events that could remove a unit somehow when it's being built/created/placed? Do you use a mod for your map that is not a standard mod from Blizzard?