Skip to content

Commit

Permalink
*Balance Changes & Player Initiated Sieges (BETA Features)
Browse files Browse the repository at this point in the history
- Base probabiltiy to spawn parties daily have been increased by 10%
- Party limit muliplier has been increased by a varied amount. This will lead to more parties being spawned for a more dynamic game.
- Player initiated siege ENABLED
- Influence cost of asking marshal to siege & player initiated siege has been reduced
  • Loading branch information
khamukkamu committed Mar 27, 2017
1 parent 553129b commit 3306da5
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 25 deletions.
20 changes: 11 additions & 9 deletions ModuleSystem/module_constants.py
Expand Up @@ -1282,7 +1282,7 @@ def concatenate_scripts(block_list):
tld_command_cost_goto = 5
tld_command_cost_patrol = 10
tld_command_cost_engage = 25
tld_command_cost_siege = 50 #marshalls only
tld_command_cost_siege = 35 #marshalls only #kham - reduced from 50


####################################################
Expand Down Expand Up @@ -1456,17 +1456,19 @@ def concatenate_scripts(block_list):
]

# TLD Party base probability to spawn daily per center (0-100), for average faction strength (3500); modified by strength/100-35
ws_scout_chance = 40
ws_raider_chance = 30 # no chance below str. 500
ws_patrol_chance = 20 # no chance below str. 1500
ws_caravan_chance = 15 # no chance below str. 2000
# Kham - Increased by 10 (March 2017)
ws_scout_chance = 50
ws_raider_chance = 40 # no chance below str. 500
ws_patrol_chance = 30 # no chance below str. 1500
ws_caravan_chance = 25 # no chance below str. 2000
#ws_host_chance = 35

# TLD Party limit multiplier. Maximum number of parties for faction strength 3500 (double that for 7000). (Namely strength*multiplier/3500 is the party number limit)
ws_scout_limit_multiplier = 14
ws_raider_limit_multiplier = 9
ws_patrol_limit_multiplier = 6
ws_caravan_limit_multiplier = 5
# Kham - Increased by varied amount (March 2017)
ws_scout_limit_multiplier = 25 #+11 from 14
ws_raider_limit_multiplier = 15 #+6 from 9
ws_patrol_limit_multiplier = 12 #+6 from 6
ws_caravan_limit_multiplier = 10 #+5 from 5
#ws_host_limit_multiplier = 4

# TLD Party victory points. Faction strength decreased by these when party is killed, winner gets half of it. (slot_party_victory_value)
Expand Down
4 changes: 3 additions & 1 deletion ModuleSystem/module_dialogs.py
Expand Up @@ -4033,7 +4033,9 @@
[anyone, "marshall_ask", [], "I'm listening, {playername}. What do you suggest?", "marshall_suggest",[]],

##Kham - Player initiated sieges BEGIN
[anyone|plyr, "marshall_suggest", [(eq, "$cheat_mode", 1)],
[anyone|plyr, "marshall_suggest", [
#(eq, "$cheat_mode", 1)
],
"I wish to lead our men in an assault on an enemy settlement.", "player_siege_ask",
[]],
##Kham - Player Initiated Sieges cont'd below
Expand Down
2 changes: 1 addition & 1 deletion ModuleSystem/module_game_menus.py
Expand Up @@ -6019,7 +6019,7 @@
,"Get the book"),
##Kham - Player Initiated Siege BEGIN
("player_castle_initiate_siege",
[(eq, "$cheat_mode",1),
[#(eq, "$cheat_mode",1),
(eq, "$player_allowed_siege",1), #Kham - Global Var that allows player to siege. Set in Dialogues.
(store_faction_of_party, ":faction_no", "$g_encountered_party"),
(faction_get_slot, ":faction_strength", ":faction_no", slot_faction_strength), #Check Faction Strength
Expand Down
8 changes: 4 additions & 4 deletions _wb/conversation.txt
Expand Up @@ -401,11 +401,11 @@ dlga_lord_get_reward_item:lord_pretalk 69631 214 0 Never_mind_then. 139 0
dlga_lord_get_reward_item_answer:lord_pretalk 4095 215 0 Very_well._May_you_use_it_to_vanquish_our_enemies. 139 0
dlga_lord_talk:marshall_ask 69631 163 2 542 3 144115188075855893 7 144115188075855891 30 2 144115188075855883 1 I_would_like_to_have_a_council_with_you_about_the_War. 216 0
dlga_marshall_ask:lord_pretalk 4095 216 6 1 2 15 144115188075855893 2133 2 1224979098644774912 72057594037927936 2147483678 2 1224979098644774912 9 1 2 11 144115188075855893 2321 2 25 24 1 3 12 144115188075855893 9 I_would_hardly_take_advice_if_you_are_merely_{s25},_{playername}._I_would_have_been_more_inclined_to_listen_if_you_were_{s24},_but_you_are_not. 139 0
dlga_marshall_ask:lord_pretalk.1 4095 216 9 2133 2 1224979098644774912 50 4 0 540 3 872 19 1 2107 2 1224979098644774912 2 2108 2 1224979098644774912 3 3 0 522 3 72057594037927950 144115188075855893 70 2147483678 2 72057594037927950 1224979098644774912 2133 2 72057594037927951 1224979098644774912 You_are_an_accomplished_commander,_{playername},_but_your_influence_is_waning._It_would_not_be_prudent_to_listen_to_your_advice.^[{reg15}_influence_needed,_only_{reg14}_held] 139 0
dlga_marshall_ask:lord_pretalk.1 4095 216 9 2133 2 1224979098644774912 35 4 0 540 3 872 19 1 2107 2 1224979098644774912 2 2108 2 1224979098644774912 3 3 0 522 3 72057594037927950 144115188075855893 70 2147483678 2 72057594037927950 1224979098644774912 2133 2 72057594037927951 1224979098644774912 You_are_an_accomplished_commander,_{playername},_but_your_influence_is_waning._It_would_not_be_prudent_to_listen_to_your_advice.^[{reg15}_influence_needed,_only_{reg14}_held] 139 0
dlga_marshall_ask:lord_pretalk.2 4095 216 3 31 2 144115188075856511 0 2147484210 3 144115188075855893 150 4000 1 2 429 144115188075855893 We_can_hardly_afford_to_meet_the_enemy_head_on,_{playername}._We_still_need_to_build_up_our_forces_and_become_strong,_alas_we_are_merely_{s23}. 139 0
dlga_marshall_ask:lord_pretalk.3 4095 216 2 2147484190 3 144115188075855893 4 0 2147484190 3 144115188075855893 4 1 We_are_on_a_campaign,_{playername},_your_advice_would_have_to_wait. 139 0
dlga_marshall_ask:marshall_suggest 4095 216 0 I'm_listening,_{playername}._What_do_you_suggest? 217 0
dlga_marshall_suggest:player_siege_ask 69631 217 1 31 2 144115188075855982 1 I_wish_to_lead_our_men_in_an_assault_on_an_enemy_settlement. 218 0
dlga_marshall_suggest:player_siege_ask 69631 217 0 I_wish_to_lead_our_men_in_an_assault_on_an_enemy_settlement. 218 0
dlga_marshall_suggest:marshall_answer 77823 217 22 50 1 1224979098644774912 132 1 1224979098644774912 541 3 1224979098644774912 260 0 541 3 1224979098644774912 0 3 541 3 1224979098644774912 54 -1 2204 2 1224979098644774913 1224979098644774912 2190 3 1224979098644774914 1224979098644774913 144115188075855893 2147483678 2 1224979098644774914 0 522 3 1224979098644774915 144115188075855893 160 541 3 1224979098644774912 259 1224979098644774915 521 3 1224979098644774916 1224979098644774912 261 2147483679 2 1224979098644774916 4 522 3 1224979098644774917 1224979098644774913 150 1073741855 2 144115188075856511 2 1073741855 2 1224979098644774916 1 2147483678 2 1224979098644774917 144115188075856506 2121 3 1224979098644774918 144115188075856506 1000 1073741855 2 144115188075856511 2 3221225502 2 1224979098644774917 1224979098644774918 1073741855 2 1224979098644774916 1 2147483679 2 1224979098644774916 3 2330 2 1 1224979098644774912 We_should_ride_to_besiege_{s1}_at_once. 219 1 50 1 144115188075855920
dlga_marshall_suggest:lord_pretalk 69631 217 0 Never_mind,_I_trust_your_judgement. 139 0
dlga_player_siege_ask:player_siege_discuss 4095 218 0 Indeed?_That_is_no_small_undertaking_and_there_are_matters_which_we_must_discuss_before_I_can_give_you_leave_to_go. 220 0
Expand All @@ -417,9 +417,9 @@ dlga_player_siege_discuss_4:player_siege_discuss_5 4095 224 4 1 2 11 1441151880
dlga_player_siege_discuss_5:player_siege_resource_check 4095 225 0 Knowing_what_I_have_told_you,_do_you_still_wish_to_proceed? 226 0
dlga_player_siege_resource_check:player_siege_check_passed 69631 226 3 1 1 5 522 3 1224979098644774912 144115188075855893 72 30 2 1224979098644774912 100000 Yes,_my_lord._Let_me_carry_our_banner_into_battle. 227 0
dlga_player_siege_resource_check:lord_pretalk 69631 226 0 No,_the_time_is_not_yet_right. 139 0
dlga_player_siege_check_passed:player_siege_accept 4095 227 2 2173 2 1224979098644774912 144115188075855891 2335 2 2 1224979098644774912 Very_well._Go,_{playername},_and_march_with_the_blessings_of_{s2}._We_are_counting_on_you_to_lead_our_people_to_victory. 228 9 1 3 4 144115188075855893 -100000 2133 2 1224979098644774912 50 4 0 540 3 872 19 1 2107 2 1224979098644774912 2 2108 2 1224979098644774912 3 3 0 1 3 18 1224979098644774912 144115188075855893 2133 2 144115188075856570 1
dlga_player_siege_check_passed:player_siege_accept 4095 227 2 2173 2 1224979098644774912 144115188075855891 2335 2 2 1224979098644774912 Very_well._Go,_{playername},_and_march_with_the_blessings_of_{s2}._We_are_counting_on_you_to_lead_our_people_to_victory. 228 9 1 3 4 144115188075855893 -100000 2133 2 1224979098644774912 35 4 0 540 3 872 19 1 2107 2 1224979098644774912 2 2108 2 1224979098644774912 3 3 0 1 3 18 1224979098644774912 144115188075855893 2133 2 144115188075856570 1
dlga_player_siege_accept:close_window 69631 228 2 2173 2 1224979098644774912 144115188075855891 2335 2 2 1224979098644774912 Thank_you,_my_Lord._I_will_not_let_you_and_{s2}_down. 6 0
dlga_marshall_answer:close_window 4095 219 0 Very_well,_{playername},_I_shall_defer_to_your_judgement._I_shall_send_messengers_to_gather_our_forces.^Follow_me_and_stay_close_-_we_ride_to_{s4}! 6 29 2133 2 1224979098644774912 144115188075855920 502 3 144115188075855893 4 2 502 3 144115188075855893 5 1224979098644774912 520 3 1224979098644774913 144115188075855891 10 1 4 417 1224979098644774913 1 1224979098644774912 1639 2 1224979098644774913 0 501 3 1224979098644774913 30 -1 6 3 1224979098644774914 529 614 540 3 1224979098644774914 2 2 2147484208 3 1224979098644774914 8 0 2173 2 1224979098644774915 1224979098644774914 31 2 1224979098644774915 144115188075855893 520 3 1224979098644774916 1224979098644774914 10 32 2 1224979098644774916 0 132 1 1224979098644774916 2147484190 3 144115188075855893 10 1224979098644774914 2147484190 3 144115188075855893 7 1224979098644774914 501 3 1224979098644774916 30 1224979098644774913 1 4 417 1224979098644774916 11 1224979098644774913 1639 2 1224979098644774916 10 3 0 2133 2 1224979098644774917 50 4 0 540 3 872 19 1 2107 2 1224979098644774917 2 2108 2 1224979098644774917 3 3 0 1 3 18 1224979098644774917 144115188075855893 2330 2 4 1224979098644774912
dlga_marshall_answer:close_window 4095 219 0 Very_well,_{playername},_I_shall_defer_to_your_judgement._I_shall_send_messengers_to_gather_our_forces.^Follow_me_and_stay_close_-_we_ride_to_{s4}! 6 29 2133 2 1224979098644774912 144115188075855920 502 3 144115188075855893 4 2 502 3 144115188075855893 5 1224979098644774912 520 3 1224979098644774913 144115188075855891 10 1 4 417 1224979098644774913 1 1224979098644774912 1639 2 1224979098644774913 0 501 3 1224979098644774913 30 -1 6 3 1224979098644774914 529 614 540 3 1224979098644774914 2 2 2147484208 3 1224979098644774914 8 0 2173 2 1224979098644774915 1224979098644774914 31 2 1224979098644774915 144115188075855893 520 3 1224979098644774916 1224979098644774914 10 32 2 1224979098644774916 0 132 1 1224979098644774916 2147484190 3 144115188075855893 10 1224979098644774914 2147484190 3 144115188075855893 7 1224979098644774914 501 3 1224979098644774916 30 1224979098644774913 1 4 417 1224979098644774916 11 1224979098644774913 1639 2 1224979098644774916 10 3 0 2133 2 1224979098644774917 35 4 0 540 3 872 19 1 2107 2 1224979098644774917 2 2108 2 1224979098644774917 3 3 0 1 3 18 1224979098644774917 144115188075855893 2330 2 4 1224979098644774912
dlga_lord_talk:deliver_gift_1 69631 163 9 200 1 39 546 3 39 3 144115188075855893 526 3 1224979098644774912 39 10 526 3 1224979098644774913 39 15 542 3 144115188075855893 10 144115188075855891 2147484208 3 144115188075855891 8 0 2335 2 3 1224979098644774913 2335 2 2 144115188075855893 2320 2 1 1224979098644774912 I_bring_a_gift_of_{s1}_from_{s3}_to_the_people_of_{s2}. 229 0
dlga_deliver_gift_1:lord_pretalk 4095 229 19 2121 3 1224979098644774912 144115188075855893 3 526 3 1224979098644774913 39 15 526 3 1224979098644774914 39 10 526 3 1224979098644774915 39 22 506 3 39 22 0 1 3 171 39 100 1 3 4 144115188075855893 1224979098644774915 526 3 1224979098644774916 39 14 2133 2 72057594037927956 1224979098644774916 2122 3 1224979098644774917 1224979098644774912 5 2105 2 1224979098644774917 216172782113785907 2105 2 1224979098644774917 1224979098644774916 2320 2 1 1224979098644774914 2320 2 2 1224979098644774917 2335 2 3 144115188075855893 2335 2 4 1224979098644774913 506 3 39 3 0 506 3 39 15 0 2320 2 5 1585267068834415700 {s5} 139 0
dlga_lord_talk:send_gift_1 69631 163 15 542 3 144115188075855893 10 144115188075855891 2147484208 3 144115188075855891 8 0 2147484194 3 39 3 144115188075855893 526 3 1224979098644774912 39 25 1073741855 2 1 1 2147483680 2 1224979098644774912 0 4 0 1073742366 3 144115188075855893 158 0 2147484190 3 144115188075855893 9 4 2320 2 1 1585267068834415701 2320 2 4 1585267068834415702 5 0 2320 2 1 1585267068834415703 2320 2 4 1585267068834415704 3 0 {s1} 230 0
Expand Down

0 comments on commit 3306da5

Please sign in to comment.