Give center to lord

From Mount&Blade Modding Wiki
Revision as of 12:24, 8 June 2013 by Swyter (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

[edit] Description

give_center_to_lord (also known as script_give_center_to_lord) will change ownership of a town or castle to a particular lord. This function can add a garrison of appropriate size with random experience for the units. It automatically calculates objections, gratitude, and jealousies.

[edit] Inputs

arg1 = center (party ID)
arg2 = Lord (troop ID) (-1 only in the case of a player deferring ownership of a center)
arg3 = Garrison? (bool)

[edit] Outputs

none.

[edit] Examples

(call_script, "script_give_center_to_lord", "p_castle_35", "trp_knight_1_3", 0), #Haringoth_Castle

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox