AI improvement: Mil. Opt.
Posted: Tue Nov 04, 2008 11:45 am
AFAIK, EvalReplacement command was only used to check actual number of replacements before removing some of them in "Remove replacements to get VP" Mil. Options.
Guess, EvalReplacement command could be used as a good check up condition to smart up AI options activation.
An Example.
Consider Military Options aimed to buy new Reg. Infantry Replacements, ($famLine).
In MilitaryOption1_AIActivate the only working condition is Probability. That does not prevent AI from buying new Reg. Infantry Replacements even when a mess of them is already available.
I suggest to add there, (into MilitaryOption1_AIActivate) an "EvalReplacement; "side"|$famLine|=<|##" condition, with ## beeing a quite low number.
Supposing:
EvalReplacement; FRA|$famLine|=<|4
AI will enable the option only when AI side as an actual shortage of Reg. inf. repl., (4 or less) using own resources for other Mil. Opt. activation when already having a mess of such replacements.
To Pocus:
Just say Yes, and I'll go after the issues in default NCP scenarios I'm working on for fixing!
Guess, EvalReplacement command could be used as a good check up condition to smart up AI options activation.
An Example.
Consider Military Options aimed to buy new Reg. Infantry Replacements, ($famLine).
In MilitaryOption1_AIActivate the only working condition is Probability. That does not prevent AI from buying new Reg. Infantry Replacements even when a mess of them is already available.
I suggest to add there, (into MilitaryOption1_AIActivate) an "EvalReplacement; "side"|$famLine|=<|##" condition, with ## beeing a quite low number.
Supposing:
EvalReplacement; FRA|$famLine|=<|4
AI will enable the option only when AI side as an actual shortage of Reg. inf. repl., (4 or less) using own resources for other Mil. Opt. activation when already having a mess of such replacements.
To Pocus:
Just say Yes, and I'll go after the issues in default NCP scenarios I'm working on for fixing!
