You must be logged in to post messages.
Please login or register

Modding Discussions
Moderated by Alexastor, MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.No replies
Age of Empires III Heaven » Forums » Modding Discussions » mercenaries training
Topic Subject:mercenaries training
posted 03-26-21 08:59 AM EDT (US)         

I want to force AI players to train mercenaries, I tried a lot of things (modification of AImain), but without effect. in fact, mercenaries are trained until age 4 and but at age 5, mercenaries are never used.
I have added in game 3 new units + 1 special building for the training of these units. The building is built, 1 unit is used but not the others and the training like for the other mercenaries stop at age 4.

btw I use these lines to force the use of units:

if (kbGetCiv() == cCivFrench)
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeMusketeer, 0.5 + (btBiasInf / 2.0));
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeSkirmisher, 0.5 + (btBiasInf / 2.0));
kbUnitPickSetPreferenceFactor(gLandUnitPicker, cUnitTypeMercDalmatianFusilier, 0.5 + (btBiasInf / 2.0));
etc ...
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames