kraggrim said:Narushima, if it's anything like native then morale is re-calculated periodically when it runs the script "decide_run_away_or_not". I don't know how this is worked out in VC but presumably if few of his team were killed, he's surrounded by friends, has full hit points and his party had decent morale then this can apply:
Or something like it.(ge, ":agent_courage_score", ":stop_running_away_courage_score_limit"), #if (courage score > 3700 - agent hit points) and (agent is running away) then stop running away, average hit points : 50, average running away limit = 1700
(agent_stop_running_away, ":cur_agent"),
-25.000000 0.000000 0.000000 0 40 2070 2 1224979098644774912 1 1718 2 1224979098644774913 1224979098644774912 2147483679 2 1224979098644774913 360287970189640979 1 2 936748722493063634 1224979098644774912 2136 3 1224979098644774914 1 101 4 0 31 2 1224979098644774914 1 505 3 1224979098644774912 16 2600 4 0 30 2 144115188075857384 1 1706 1 1224979098644774912 1106 1 1585267068834416354 3 0 5 0 2133 2 1224979098644774915 3500 4 0 31 2 144115188075856014 1 1770 2 1224979098644774916 1224979098644774912 1073741855 2 1224979098644774916 0 31 2 1224979098644774916 2 2105 2 1224979098644774915 3000 3 0 4 0 1073741855 2 1224979098644774913 360287970189640912 31 2 1224979098644774913 360287970189640913 2105 2 1224979098644774915 5000 3 0 2171 2 1224979098644774917 1224979098644774913 2107 2 1224979098644774917 35 2105 2 1224979098644774915 1224979098644774917 2136 3 1224979098644774918 0 3000 2105 2 1224979098644774915 1224979098644774918 1716 2 1224979098644774919 1224979098644774912 1671 2 1224979098644774920 1224979098644774919 2121 3 1224979098644774921 1224979098644774920 70 2107 2 1224979098644774921 30 2105 2 1224979098644774915 1224979098644774921 2105 2 1224979098644774915 144115188075856220 505 3 1224979098644774912 16 1224979098644774915 3 0
That 35 is how much the troop level is multiplied, the result is added to base courage. Maybe you could add an exception for low level characters.
I think these changes might work, hopefully you can copy and paste the block over. Tried to make it look like this:-25.000000 0.000000 0.000000 0 43 2070 2 1224979098644774912 1 1718 2 1224979098644774913 1224979098644774912 2147483679 2 1224979098644774913 360287970189640979 1 2 936748722493063634 1224979098644774912 2136 3 1224979098644774914 1 101 4 0 31 2 1224979098644774914 1 505 3 1224979098644774912 16 2600 4 0 30 2 144115188075857384 1 1706 1 1224979098644774912 1106 1 1585267068834416354 3 0 5 0 2133 2 1224979098644774915 3500 4 0 31 2 144115188075856014 1 1770 2 1224979098644774916 1224979098644774912 1073741855 2 1224979098644774916 0 31 2 1224979098644774916 2 2105 2 1224979098644774915 3000 3 0 4 0 1073741855 2 1224979098644774913 360287970189640912 31 2 1224979098644774913 360287970189640913 2105 2 1224979098644774915 5000 3 0 2171 2 1224979098644774917 1224979098644774913 4 0 30 1224979098644774917 20 2107 2 1224979098644774917 35 3 0 2105 2 1224979098644774915 1224979098644774917 2136 3 1224979098644774918 0 3000 2105 2 1224979098644774915 1224979098644774918 1716 2 1224979098644774919 1224979098644774912 1671 2 1224979098644774920 1224979098644774919 2121 3 1224979098644774921 1224979098644774920 70 2107 2 1224979098644774921 30 2105 2 1224979098644774915 1224979098644774921 2105 2 1224979098644774915 144115188075856220 505 3 1224979098644774912 16 1224979098644774915 3 0
So any troops under level 20 (change to whatever you want) only add their level rather than level-times-35. I think once battle is under way and guys are dead/wounded you should hopefully see it come into effect.(agent_get_troop_id, ":troop_id", ":agent_no"),
(store_character_level, ":troop_level", ":troop_id"),
(try_begin), #4 0
(ge, ":troop_level", 20), #30 1224979098644774917 20
(val_mul, ":troop_level", 35), #2107 2 1224979098644774917 35
(try_end), #3 0
(val_add, ":initial_courage_score", ":troop_level"), #2105 2 1224979098644774915 1224979098644774917
HunterAlpha1, I tried it too with no luck. Not sure why it's not working really. I think if you use the save editor to change the 'culture' slot of your town/castle to the same as your faction's culture then that might maybe do it. Not convenient but its the best I can think of for now.
kalarhan thanks for the info, my longest campaign was ~1400 days so I guess I was lucky not seeing it .
Tried it. Crashes when loading the game. Thanks for the help anyway