Disable lords leaving factions?

正在查看此主题的用户

bob123

Recruit
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),
 
This is unresolved, I had another look at Module_system, and i have no idea what is causing this. Can someone please give a suggestion
 
If you properly remove auto-indictment and auto-defection there should be no other lord-swapping (to my knowledge.) Use notepad++ "Find in files" (or equivalent) to search for every instance of auto-indictment/defection in the module system. Another thing you might try is simply altering the rate at which lords lose relation with their leader, either by editing existing scripts or by simply adding relation between lords and faction leaders every week or so. (Though ideally you would have it be event-based...)

I'm not super familiar with lord relation scripts yet but I believe feasts especially are where lots of "random" relation changes take place. Either +1 or +2 or else -10 IIRC, perhaps based on lord reputation type but I could be wrong. Anyways questions like this are usually best fit for the Q&A thread stickied at the top of this board.
 
Thank you so much for replying. I had a look, unfortunately the only instance of auto-indictment is in the script above which i invalidated. Although there is an instance of auto-defection. And plenty of instances of indictment and defection by themselves, so i guess i'll start hash-tagging them.

I'd like to keep relationship modifiers the same wherever possible. So i will try that afterwards.
 
If you havent found the solution yet. This may be helpful:  https://forums.taleworlds.com/index.php/topic,6575.msg8523468.html#msg8523468
 
litdum 说:
If you havent found the solution yet. This may be helpful:  https://forums.taleworlds.com/index.php/topic,6575.msg8523468.html#msg8523468

Thank you, so simple yet clever. I will test it out.
 
后退
顶部 底部