Duration of lord’s duty

Users who are viewing this thread

When you as a king give an order to your lord, he spends a certain amount of time fulfilling this order. For example, as I noticed, if you order a lord to go to a city, he will spend two days in that city. Similarly, if you order a lord to patrol around a fief, he will patrol for a certain amount of time than will leave.

Is it possible to increase this time?
 
You are looking for the script "npc_decision_checklist_party_ai" within module_scripts.

Within that script, find the section that begins:
Code:
	#follow player orders
	(else_try),
	  (eq, ":do_only_collecting_rents", 0),
	  (party_slot_ge, ":party_no", slot_party_following_orders_of_troop, "trp_kingdom_heroes_including_player_begin"),

a bit further down you'll see
Code:
	  (assign, ":orders_are_appropriate", 1),
	  (try_begin),
	    (gt, ":hours_since_orders_given", 48),
	    (assign, ":orders_are_appropriate", 0),

    (gt, ":hours_since_orders_given", 4:cool:,
This line will make it so orders more than 2 days old can be ignored. Up the 48 hours bit to adjust this.

However, since we are dealing with a "checklist", you can note how relatively important following player's orders is to other considerations. All of the conditions ABOVE this point could override the players orders, even if it was under 48 hours since the order was given. (Those more important conditions are: getting reinforcements if <30% of possible strength; doing marshall-y things if the troop in question is the marshall; stay in the current center/retreat to the nearest center if surrounded by enemies or under siege; go home and get more troops if strength is <10% of possible.) There are many more conditions below following the player's orders, too, but those only happen if the ones above don't apply. To make the player's orders more important than any of the above listed goals, you would need to re-order the script.
 
Back
Top Bottom