We all have experienced this, more or less. Sometimes AI looses any goal, and thus just sits on the map doing absolutely nothing.
In my case, I have Scotland as a horde faction. They sack the first 3 towns via a script, but after that, they end in a rebel area, where they cannot find a good enough target to move forth, reasulting in all the armies waiting endlessly in the same position.
I have made this trigger in the export_descr_character_traits.txt:
Which works nicely. Problem is that I can't find any good command to give them through the campaign_script, so that they start moving again.Trigger NoMoreDevastation
WhenToTest GeneralDevastatesTile
Condition FactionType Scotland
and IsGeneral
and CharacterNumTurnsIdle > 1
Affects MoveUDog 1 Chance 100
The general idea is:
I don't want this to happen exclusively. I mean, I could give them a "sige this settlement" command, but I want to give them a generic one. Something that will work in any circumstances.Code:If general hasn't moved for 2 turns do something
So, any ideas?
Note that as I have said again and again, I am (unfortunatelly) working on medieval2.exe and not on the kingdoms one.
Any help greatly appreciated.





Reply With Quote










