How to disable melee AI?

Level 5
Joined
May 10, 2024
Messages
57
Hi. I'm working on custom AI which manipulate units via triggers. I don't need Melee AI, but I want to see my enemies and allies at the map configuration menu, when player selects his race, alliance, color. As I can see the only way to do that is by registering computer players in Scenario -> Player Properties and disabling AI by removing melee AI scripts from map initialization trigger.
  • Melee Game - Run melee AI scripts (for computer players)
AI is not building anything, but it casts abilities on his own which do not let me to control his units the way I want. I'm also use RemoveGuardPosition on each unit which belongs to computer player, but it only stops that units from returning to its initial position.

Does anyone know how to make allies and enemies slots visible in game configuration menu with disable AI during the game?
 
Level 5
Joined
Apr 15, 2019
Messages
33
If player slot has "computer" in it, or is neutral hostile, yes, afaik it always has some build in mini ai which will cast spells in certain circumstances.

How many player slots are taken in your map ? For example if 1-10 slots are occupied by players/computers, map still has 11-24(or whatever max amount of players is) slots which are "none". So when game starts you can change ownership of computer units to those empty slots and change names/colors of those slots so players wont notice anything.

Another way is simply not allowing computer units to cast any spells. Disable the spells when you dont need them. When you need to use them manually -> enable spell -> order unit to use it -> disable the spell again. Btw dont disable it during its cast, it can cause some bugs.
 
Last edited:
Top