Activate tactics for selected character ?
Débuté par
pierrejaquet
, nov. 26 2009 01:30
#1
Posté 26 novembre 2009 - 01:30
Is it possible to modify the scripts so that the tactics are activated for the selected character ? Because its just so ****** boring to do always the same repetitive clicks. I'm sure its easy to do, I've just got no idea how to do it.
#2
Posté 27 novembre 2009 - 06:03
Okay... I'm not sure how well it'd would work and it might require some extra tweaking, but check the script ai_main_h_2.
Inside it you'd find many calls to IsControlled() - this is where most of the differences happen.
One such check has the AI_DetermineCombatRound_Partial() function called after it. This function is the very minimal AI routine for controlled party members (continue attacking for example). Simply change the _Partial function call to the full AI call - AI_DetermineCombatRound() - this *might* do the trick.
If it doesn't then you may need to change a few more places that check for IsControlled().
IMPORTANT: you'd need to compile rules_core to see your changes to this include file.
Inside it you'd find many calls to IsControlled() - this is where most of the differences happen.
One such check has the AI_DetermineCombatRound_Partial() function called after it. This function is the very minimal AI routine for controlled party members (continue attacking for example). Simply change the _Partial function call to the full AI call - AI_DetermineCombatRound() - this *might* do the trick.
If it doesn't then you may need to change a few more places that check for IsControlled().
IMPORTANT: you'd need to compile rules_core to see your changes to this include file.





Retour en haut






