I used this piece of script, it has been helpful, although it did not stop lords from changing factions. Eventually after several hundred days a few lords start appearing in other factions. Usually leaving a faction with only a few castles. I'm pretty sure there was no notification of treason or defection either. How could i eliminate leaving factions altogether. With the exception of a player persuading a lord to join a faction, or a faction being destroyed.
Caba`drin 说:If any are interested, to actually disable lord defections in game, the best way is to use the module system source:
Caba`drin 说:To start disabling defection/indictment you want to be in module_simple_triggers.
Find this comment: #Auto-indictment or defection
To disable both auto-defection and auto-indictment completely, immediately after the first
(try_begin),
add:
(eq, 1, 0),
To only disable auto-indictment, add a hash mark # at the beginning of the line:
(call_script, "script_indict_lord_for_treason", ":troop_no", ":faction"),
To only disable auto-defection, before the line:
(neq, ":who_moves_first", 0),
add:
(eq, 1, 0),


