To train and send the new units, you can order the AI to do so through management of its attack waves. I'm not sure if you can easily "append" to the existing AIs, but creating one from scratch would work.
To use the unit's abilities, you have to create new Tactical AIs or Tactical AI functions.
Tactical AIs are entries in the data editor, you can look up the existing ones as a guide. For a more flexible solution than data Tactical AI (although in theory more computationally expensive), you can create Tactical AI Functions in Galaxy script. You can extract from the game MPQs the existing functions to learn from them. Either way, for each unit, you then set its "Tactical AI" or the "Tactical AI Function" in the unit's data.
@tophe93: I tried editing the melee AI files directly, but I got syntax errors and it wouldnt work. I gave up trying for now because I can't get those files working.
Hello,
Could someone tell me how i can manage to make the AI consider the new units / abilities that i created in a mod ?
Thx
To train and send the new units, you can order the AI to do so through management of its attack waves. I'm not sure if you can easily "append" to the existing AIs, but creating one from scratch would work.
To use the unit's abilities, you have to create new Tactical AIs or Tactical AI functions.
Tactical AIs are entries in the data editor, you can look up the existing ones as a guide. For a more flexible solution than data Tactical AI (although in theory more computationally expensive), you can create Tactical AI Functions in Galaxy script. You can extract from the game MPQs the existing functions to learn from them. Either way, for each unit, you then set its "Tactical AI" or the "Tactical AI Function" in the unit's data.
i tried by tactical ai data, but abilities are upgrades, so it didn't work, i'll have a try with the mpq editor and scripts, thks !
@tophe93: I tried editing the melee AI files directly, but I got syntax errors and it wouldnt work. I gave up trying for now because I can't get those files working.
@SoulFilcher: Go
Well i 'll see if i can handle it as it's C language, and it's close to php, but triggers for waves still doesn't work :/