#########Growing Parties Begin#########
##Give 5 troops to the party every day
(24,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_add_members,":party_no","trp_looter",5),
(try_end),
]),
##(Assuming that the party started with 20 troops) Change the name of the party after the troop limit reached 100.
(384,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_set_name, "p_looters", "str_reb_mob"),
(try_end),
]),
#########Growing Parties end#########
("reb_mob", "Rebelling Mob"),
That adds a bit more, thanks bjorne. For the limit, add:bjorne. said:Code:#########Growing Parties Begin######### ##Give 5 troops to the party every day (24, [ (try_for_parties,":party_no"), (party_get_template_id, ":template",":party_no"), (eq, ":template", "pt_looters"), (party_get_num_companions,":limit",":party_no"), (lt, ":limit", 200), (party_add_members,":party_no","trp_looter",5), (try_end), ]), ##(Assuming that the party started with 20 troops) Change the name of the party after the troop limit reached 100. (384, [ (try_for_parties,":party_no"), (party_get_template_id, ":template",":party_no"), (eq, ":template", "pt_looters"), (party_set_name, "p_looters", "str_reb_mob"), (try_end), ]), #########Growing Parties end#########
Then insert this to module_strings.py
Code:("reb_mob", "Rebelling Mob"),
the change of the party name will take place after 16 (384 = 16*24) days, but not when the party will collect 100 members.bjorne. said:##(Assuming that the party started with 20 troops) Change the name of the party after the troop limit reached 100.
(384,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_set_name, "p_looters", "str_reb_mob"),
(try_end),
]),
ArRiad said:Hello, bjorne.
As far as I can see from your trigger
the change of the party name will take place after 16 (384 = 16*24) days, but not when the party will collect 100 members.bjorne. said:##(Assuming that the party started with 20 troops) Change the name of the party after the troop limit reached 100.
(384,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_set_name, "p_looters", "str_reb_mob"),
(try_end),
]),
But they may simply defeat some party with prisoners, freed them and recruit. This way they may collect 100 members and more earlier than after 16 days without the change of their party name.
Am I right?
#########Growing Parties Begin#########
##Give 5 troops to the party every day
(24,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_get_num_companions,":limit",":party_no"),
(lt, ":limit", 200),
(party_add_members,":party_no","trp_looter",5),
(try_end),
]),
##Making them to change their name
(92,
[
(try_for_parties,":party_no"),
(party_get_template_id, ":template",":party_no"),
(eq, ":template", "pt_looters"),
(party_get_num_companions,":size",":party_no"),
(ge, ":size", 100),
(party_set_name, "p_looters", "str_reb_mob"),
(try_end),
#########Growing Parties End#########
("reb_mob", "Rebelling Mob"),