Hello everybody,i'm having some troubles with this script. it removes troops for all lords except for fac_kingdom_1 lords. and also it removes garrison from villages.
here is the part i edited:
here is the part i edited:
Code:
(assign, ":party_template", 0),
(store_random_in_range, ":rand", 0, 100),
(try_begin),
(this_or_next|eq, ":party_type", spt_town),
(eq, ":party_type", spt_castle), #CASTLE OR TOWN
(try_begin),
(lt, ":rand", 65),
(assign, ":party_template", ":party_template_a"),
(else_try),
(assign, ":party_template", ":party_template_b"),
(try_end),
(else_try),
(eq, ":party_type", spt_kingdom_hero_party),
(try_begin),
(eq,":party_faction","fac_kingdom_1"),
(try_begin),
(troop_get_slot,0,":leader",slot_african),
(assign, ":party_template",":party_template_a"),
(else_try),
(troop_get_slot,0,":leader",slot_lamtuna),
(assign, ":party_template", ":party_template_b"),
(else_try),
(troop_get_slot,0,":leader",slot_zenata),
(assign, ":party_template",":party_template_c"),
(try_end),
(try_begin),
(lt, ":rand", 50),
(assign, ":party_template", ":party_template_a"),
(else_try),
(lt, ":rand", 75),
(assign, ":party_template", ":party_template_b"),
(else_try),
(assign, ":party_template", ":party_template_c"),
(try_end),
(else_try),
(try_end),