Skip to content

Commit

Permalink
* Add Secondary Capitals to Dale, Gundabad, Minas Tirith (for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
khamukkamu committed Jul 11, 2018
1 parent edc70ad commit a250501
Show file tree
Hide file tree
Showing 15 changed files with 1,577 additions and 1,543 deletions.
30 changes: 29 additions & 1 deletion ModuleSystem/module_scripts_ai.py
Expand Up @@ -2966,15 +2966,43 @@
(troop_set_slot, "trp_player", slot_troop_player_reserve_party, 0),
(try_end),

# If this is Edoras and Hornburg is still Rohan's, move capital
# If this is Edoras and Hornburg is still Rohan's, move capital - Add more secondary capitals
(try_begin),
(eq, ":center", "p_town_edoras"),
(eq, ":center_faction", "fac_rohan"),
(party_slot_eq, "p_town_hornburg", slot_center_destroyed, 0),
(faction_slot_eq, "fac_rohan", slot_faction_capital, "p_town_edoras"),
(store_faction_of_party, ":hornburg_faction", "p_town_hornburg"),
(eq, ":hornburg_faction", "fac_rohan"),
(faction_set_slot, "fac_rohan", slot_faction_capital, "p_town_hornburg"),
(display_message, "@Rohan capital moved from Edoras to Hornburg!"),
(else_try),
(eq, ":center", "p_town_minas_tirith"),
(eq, ":center_faction", "fac_gondor"),
(party_slot_eq, "p_town_dol_amroth", slot_center_destroyed, 0),
(faction_slot_eq, "fac_gondor", slot_faction_capital, "p_town_minas_tirith"),
(store_faction_of_party, ":dol_amroth_faction", "p_town_dol_amroth"),
(eq, ":dol_amroth_faction", "fac_gondor"),
(faction_set_slot, "fac_gondor", slot_faction_capital, "p_town_dol_amroth"),
(display_message, "@Gondor capital moved from Minas Tirith to Dol Amroth!"),
(else_try),
(eq, ":center", "p_town_dale"),
(eq, ":center_faction", "fac_dale"),
(party_slot_eq, "p_town_esgaroth", slot_center_destroyed, 0),
(faction_slot_eq, "fac_dale", slot_faction_capital, "p_town_dale"),
(store_faction_of_party, ":esgaroth_faction", "p_town_esgaroth"),
(eq, ":esgaroth_faction", "fac_dale"),
(faction_set_slot, "fac_dale", slot_faction_capital, "p_town_esgaroth"),
(display_message, "@Dale capital moved from Dale to Esgaroth!"),
(else_try),
(eq, ":center", "p_town_gundabad"),
(eq, ":center_faction", "fac_gundabad"),
(party_slot_eq, "p_town_goblin_north_outpost", slot_center_destroyed, 0),
(faction_slot_eq, "fac_gundabad", slot_faction_capital, "p_town_gundabad"),
(store_faction_of_party, ":goblin_town_faction", "p_town_goblin_north_outpost"),
(eq, ":goblin_town_faction", "fac_gundabad"),
(faction_set_slot, "fac_gundabad", slot_faction_capital, "p_town_goblin_north_outpost"),
(display_message, "@Gundabad capital moved from Gundabad to Goblin Town!"),
(try_end),

# detach all attached parties, in case there are parties in the camp
Expand Down
400 changes: 200 additions & 200 deletions _wb/conversation.txt

Large diffs are not rendered by default.

168 changes: 84 additions & 84 deletions _wb/menus.txt

Large diffs are not rendered by default.

1,018 changes: 509 additions & 509 deletions _wb/mission_templates.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion _wb/quick_strings.txt
@@ -1,4 +1,4 @@
1786
1789
qstr_Received_{reg0}_dama Received_{reg0}_damage.
qstr_Siege_Weapon_damaged Siege_Weapon_damaged_{reg10}_agents
qstr_Gate_is_breached! Gate_is_breached!
Expand Down Expand Up @@ -605,6 +605,9 @@ qstr_Gondor_AI_Tweaks___Mo Gondor_AI_Tweaks_-_More_frequent_hosts
qstr_The_forces_of_{s2}_m The_forces_of_{s2}_march_to_{s15}!
qstr_ERROR ERROR
qstr_Rohan_capital_moved_ Rohan_capital_moved_from_Edoras_to_Hornburg!
qstr_Gondor_capital_moved Gondor_capital_moved_from_Minas_Tirith_to_Dol_Amroth!
qstr_Dale_capital_moved_f Dale_capital_moved_from_Dale_to_Esgaroth!
qstr_Gundabad_capital_mov Gundabad_capital_moved_from_Gundabad_to_Goblin_Town!
qstr_The_hosts_of_{s2}_re The_hosts_of_{s2}_retreat_back_to_their_homes!
qstr____Ruins_of_{s1}___ ___Ruins_of_{s1}___
qstr_ranks ranks
Expand Down
114 changes: 57 additions & 57 deletions _wb/scripts.txt

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions _wb/simple_triggers.txt

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions _wb/triggers.txt

Large diffs are not rendered by default.

400 changes: 200 additions & 200 deletions conversation.txt

Large diffs are not rendered by default.

166 changes: 83 additions & 83 deletions menus.txt

Large diffs are not rendered by default.

610 changes: 305 additions & 305 deletions mission_templates.txt

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion quick_strings.txt
@@ -1,4 +1,4 @@
1589
1592
qstr_Gate_is_breached! Gate_is_breached!
qstr_Gate_opens..._You_ha Gate_opens..._You_have_reached_the_most_sacred_place_in_Middle_Earth!
qstr_Secret_place_discove Secret_place_discovered!
Expand Down Expand Up @@ -530,6 +530,9 @@ qstr_Gondor_AI_Tweaks___Mo Gondor_AI_Tweaks_-_More_frequent_hosts
qstr_The_forces_of_{s2}_m The_forces_of_{s2}_march_to_{s15}!
qstr_ERROR ERROR
qstr_Rohan_capital_moved_ Rohan_capital_moved_from_Edoras_to_Hornburg!
qstr_Gondor_capital_moved Gondor_capital_moved_from_Minas_Tirith_to_Dol_Amroth!
qstr_Dale_capital_moved_f Dale_capital_moved_from_Dale_to_Esgaroth!
qstr_Gundabad_capital_mov Gundabad_capital_moved_from_Gundabad_to_Goblin_Town!
qstr_The_hosts_of_{s2}_re The_hosts_of_{s2}_retreat_back_to_their_homes!
qstr____Ruins_of_{s1}___ ___Ruins_of_{s1}___
qstr_ranks ranks
Expand Down
72 changes: 36 additions & 36 deletions scripts.txt

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions simple_triggers.txt

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions triggers.txt

Large diffs are not rendered by default.

0 comments on commit a250501

Please sign in to comment.