Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21535 lines (19899 sloc) 933 KB
from header_game_menus import *
from header_parties import *
from header_items import *
from header_mission_templates import *
from header_music import *
from header_terrain_types import *
from module_constants import *
####################################################################################################################
# (menu-id, menu-flags, menu_text, mesh-name, [<operations>], [<options>]),
#
# Each game menu is a tuple that contains the following fields:
#
# 1) Game-menu id (string): used for referencing game-menus in other files.
# The prefix menu_ is automatically added before each game-menu-id
#
# 2) Game-menu flags (int). See header_game_menus.py for a list of available flags.
# You can also specify menu text color here, with the menu_text_color macro
# 3) Game-menu text (string).
# 4) mesh-name (string). Not currently used. Must be the string "none"
# 5) Operations block (list). A list of operations. See header_operations.py for reference.
# The operations block is executed when the game menu is activated.
# 6) List of Menu options (List).
# Each menu-option record is a tuple containing the following fields:
# 6.1) Menu-option-id (string) used for referencing game-menus in other files.
# The prefix mno_ is automatically added before each menu-option.
# 6.2) Conditions block (list). This must be a valid operation block. See header_operations.py for reference.
# The conditions are executed for each menu option to decide whether the option will be shown to the player or not.
# 6.3) Menu-option text (string).
# 6.4) Consequences block (list). This must be a valid operation block. See header_operations.py for reference.
# The consequences are executed for the menu option that has been selected by the player.
#
#
# Note: The first Menu is the initial character creation menu.
####################################################################################################################
game_menus = [
("start_game_0",menu_text_color(0xFF000000)|mnf_disable_all_keys,
##diplomacy begin (tweaked for TGS)
"Welcome, adventurer, to The Gathering Storm - A Wheel of Time Mod for Mount & Blade: Warband. Before beginning the game you must create your character. Remember that in the traditional medieval society depicted in the game, war and politics are usually dominated by male members of the nobility. That does not however mean that you should not choose to play a female character, or one who is not of noble birth. Male nobles may have a somewhat easier start, but women and commoners can attain all of the same goals -- and in fact may have a much more interesting if more challenging early game.",
##diplomacy end (tweaked for TGS)
"none",
##
# [],
# [
# ("continue",[],"Continue...",
# [(jump_to_menu, "mnu_start_game_1"),
# ]
# ),
# ("go_back",[],"Go back",
# [
# (change_screen_quit),
# ]),
# ]
# ),
## TODO: Comment out above and uncomment below to enable new character creation (do not use just yet)
[(try_begin),
(neq, "$creation_canceled", 999),
(call_script, "script_randomize_background", 0),
(start_presentation, "prsnt_player_background"),
(try_end),],
[
("start",[],"Create Character",
[
(start_presentation, "prsnt_player_background"),
]),
("quit",[],"Cancel",
[
(change_screen_quit),
]),
]
),
# altered for TGS
("start_phase_2",mnf_disable_all_keys,
"You hear about Randland, a land torn between rival kingdoms battling each other for supremacy,\
a haven for lords and mercenaries, cutthroats and adventurers, all willing to risk their lives in pursuit of fortune, power, or glory...\
In this land which holds great dangers and even greater opportunities, you believe you may leave your past behind and start a new life.\
You feel that finally, you hold the key of your destiny in your hands, free to choose as you will,\
and that whatever course you take, great adventures will await you. Drawn by the stories you hear about Randland and its kingdoms, you...",
"none",
[],
[
("town_1",[(eq, "$current_startup_quest_phase", 0),],"Join a caravan to Bandar Eban, in the lands of the nation of Arad Doman.",
[
(assign, "$current_town", "p_town_6"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_praven"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
("town_2",[(eq, "$current_startup_quest_phase", 0),],"Join a caravan to Tanchico, in the lands of the nation of Tarabon.",
[
(assign, "$current_town", "p_town_8"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_reyvadin"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
("town_3",[(eq, "$current_startup_quest_phase", 0),],"Join a caravan to Tear, in the lands of the nation of Tear.",
[
(assign, "$current_town", "p_town_10"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_tulga"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
("town_4",[(eq, "$current_startup_quest_phase", 0),],"Take a ship to Cairhien, in the lands of the nation of Cairhien.",
[
(assign, "$current_town", "p_town_1"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_sargoth"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
("town_5",[(eq, "$current_startup_quest_phase", 0),],"Take a ship to Lugard, in the lands of the nation of Murandy.",
[
(assign, "$current_town", "p_town_5"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_jelkala"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
("town_6",[(eq, "$current_startup_quest_phase", 0),],"Join a caravan to Tar Valon, in the lands of the White Tower.",
[
(assign, "$current_town", "p_town_19"),
(assign, "$g_starting_town", "$current_town"),
(assign, "$g_journey_string", "str_journey_to_shariz"),
(jump_to_menu, "mnu_start_phase_2_5"),
# (party_relocate_near_party, "p_main_party", "$g_starting_town", 2),
# (change_screen_return),
]),
# end altered for TGS
("tutorial_cheat",[(eq,1,0)],"{!}CHEAT!",
[
(change_screen_return),
(assign, "$cheat_mode", 1),
(set_show_messages, 0),
(add_xp_to_troop, 15000, "trp_player"),
(troop_raise_skill, "trp_player", skl_leadership, 7),
(troop_raise_skill, "trp_player", skl_prisoner_management, 5),
(troop_raise_skill, "trp_player", skl_inventory_management, 10),
## modified for TGS
(party_add_members, "p_main_party", "trp_legion_heavy_lancer", 10), # was trp_swadian_knight
(party_add_members, "p_main_party", "trp_cairhien_light_cavalry", 10), # was trp_vaegir_knight
(party_add_members, "p_main_party", "trp_mayene_bowman", 10), # was trp_vaegir_archer
(party_add_members, "p_main_party", "trp_two_rivers_marksman", 10), # was trp_swadian_sharpshooter
## end modified for TGS
(troop_add_item, "trp_player","itm_scale_armor",0),
(troop_add_item, "trp_player","itm_full_helm",0),
(troop_add_item, "trp_player","itm_hafted_blade_b",0),
(troop_add_item, "trp_player","itm_hafted_blade_a",0),
(troop_add_item, "trp_player","itm_morningstar",0),
(troop_add_item, "trp_player","itm_tutorial_spear",0),
(troop_add_item, "trp_player","itm_tutorial_staff",0),
(troop_add_item, "trp_player","itm_tutorial_staff_no_attack",0),
(troop_add_item, "trp_player","itm_arena_lance",0),
(troop_add_item, "trp_player","itm_practice_staff",0),
(troop_add_item, "trp_player","itm_practice_lance",0),
(troop_add_item, "trp_player","itm_practice_javelin",0),
(troop_add_item, "trp_player","itm_scythe",0),
(troop_add_item, "trp_player","itm_pitch_fork",0),
(troop_add_item, "trp_player","itm_military_fork",0),
(troop_add_item, "trp_player","itm_battle_fork",0),
(troop_add_item, "trp_player","itm_boar_spear",0),
(troop_add_item, "trp_player","itm_jousting_lance",0),
(troop_add_item, "trp_player","itm_double_sided_lance",0),
(troop_add_item, "trp_player","itm_glaive",0),
(troop_add_item, "trp_player","itm_poleaxe",0),
(troop_add_item, "trp_player","itm_polehammer",0),
(troop_add_item, "trp_player","itm_staff",0),
(troop_add_item, "trp_player","itm_quarter_staff",0),
(troop_add_item, "trp_player","itm_iron_staff",0),
(troop_add_item, "trp_player","itm_shortened_spear",0),
(troop_add_item, "trp_player","itm_spear",0),
(troop_add_item, "trp_player","itm_war_spear",0),
(troop_add_item, "trp_player","itm_military_scythe",0),
(troop_add_item, "trp_player","itm_light_lance",0),
(troop_add_item, "trp_player","itm_lance",0),
(troop_add_item, "trp_player","itm_heavy_lance",0),
(troop_add_item, "trp_player","itm_great_lance",0),
(troop_add_item, "trp_player","itm_pike",0),
(troop_add_item, "trp_player","itm_ashwood_pike",0),
(troop_add_item, "trp_player","itm_awlpike",0),
(troop_add_item, "trp_player","itm_throwing_spears",0),
(troop_add_item, "trp_player","itm_javelin",0),
(troop_add_item, "trp_player","itm_jarid",0),
(troop_add_item, "trp_player","itm_long_axe_b",0),
(set_show_messages, 1),
(try_for_range, ":cur_place", scenes_begin, scenes_end),
(scene_set_slot, ":cur_place", slot_scene_visited, 1),
(try_end),
(call_script, "script_get_player_party_morale_values"),
(party_set_morale, "p_main_party", reg0),
]
),
]
),
(
"start_game_3",mnf_disable_all_keys,
"Choose your scenario:",
"none",
[
(assign, "$g_custom_battle_scenario", 0),
(assign, "$g_custom_battle_scenario", "$g_custom_battle_scenario"),
## #Default banners
## (troop_set_slot, "trp_banner_background_color_array", 126, 0xFF212221),
## (troop_set_slot, "trp_banner_background_color_array", 127, 0xFF212221),
## (troop_set_slot, "trp_banner_background_color_array", 128, 0xFF2E3B10),
## (troop_set_slot, "trp_banner_background_color_array", 129, 0xFF425D7B),
## (troop_set_slot, "trp_banner_background_color_array", 130, 0xFF394608),
],
[
## ("custom_battle_scenario_1",[], "Skirmish 1",
## [
## (assign, "$g_custom_battle_scenario", 0),
## (jump_to_menu, "mnu_custom_battle_2"),
##
## ]
## ),
#### ("custom_battle_scenario_2",[],"Siege Attack 1",
#### [
#### (assign, "$g_custom_battle_scenario", 1),
#### (jump_to_menu, "mnu_custom_battle_2"),
####
#### ]
#### ),
## ("custom_battle_scenario_3",[],"Skirmish 2",
## [
## (assign, "$g_custom_battle_scenario", 1),
## (jump_to_menu, "mnu_custom_battle_2"),
##
## ]
## ),
## ("custom_battle_scenario_4",[],"Siege Defense",
## [
## (assign, "$g_custom_battle_scenario", 2),
## (jump_to_menu, "mnu_custom_battle_2"),
## ]
## ),
## ("custom_battle_scenario_5",[],"Skirmish 3",
## [
## (assign, "$g_custom_battle_scenario", 3),
## (jump_to_menu, "mnu_custom_battle_2"),
## ]
## ),
## ("custom_battle_scenario_6",[],"Siege Attack",
## [
## (assign, "$g_custom_battle_scenario", 4),
## (jump_to_menu, "mnu_custom_battle_2"),
##
## ]
## ),
("go_back",[],"Go back",
[(change_screen_quit),
]
),
]
),
## ("start_game_3",mnf_disable_all_keys,
## "Choose your scenario:",
## "none",
## [
## (assign, "$g_custom_battle_scenario", 0),
## (assign, "$g_custom_battle_scenario", "$g_custom_battle_scenario"),
#### #Default banners
#### (troop_set_slot, "trp_banner_background_color_array", 126, 0xFF212221),
#### (troop_set_slot, "trp_banner_background_color_array", 127, 0xFF212221),
#### (troop_set_slot, "trp_banner_background_color_array", 128, 0xFF2E3B10),
#### (troop_set_slot, "trp_banner_background_color_array", 129, 0xFF425D7B),
#### (troop_set_slot, "trp_banner_background_color_array", 130, 0xFF394608),
## ],
## [
#### ("custom_battle_scenario_1",[], "Skirmish 1",
#### [
#### (assign, "$g_custom_battle_scenario", 0),
#### (jump_to_menu, "mnu_custom_battle_2"),
####
#### ]
#### ),
###### ("custom_battle_scenario_2",[],"Siege Attack 1",
###### [
###### (assign, "$g_custom_battle_scenario", 1),
###### (jump_to_menu, "mnu_custom_battle_2"),
######
###### ]
###### ),
#### ("custom_battle_scenario_3",[],"Skirmish 2",
#### [
#### (assign, "$g_custom_battle_scenario", 1),
#### (jump_to_menu, "mnu_custom_battle_2"),
####
#### ]
#### ),
#### ("custom_battle_scenario_4",[],"Siege Defense",
#### [
#### (assign, "$g_custom_battle_scenario", 2),
#### (jump_to_menu, "mnu_custom_battle_2"),
#### ]
#### ),
#### ("custom_battle_scenario_5",[],"Skirmish 3",
#### [
#### (assign, "$g_custom_battle_scenario", 3),
#### (jump_to_menu, "mnu_custom_battle_2"),
#### ]
#### ),
#### ("custom_battle_scenario_6",[],"Siege Attack",
#### [
#### (assign, "$g_custom_battle_scenario", 4),
#### (jump_to_menu, "mnu_custom_battle_2"),
####
#### ]
#### ),
## ("go_back",[],"Go back",
## [(change_screen_quit),
## ]
## ),
## ]
## ),
(
"tutorial",mnf_disable_all_keys,
"You approach a field where the locals are training with weapons. You can practice here to improve your combat skills.",
"none",
[
(try_begin),
(eq, "$g_tutorial_entered", 1),
(change_screen_quit),
(else_try),
(set_passage_menu, "mnu_tutorial"),
## (try_begin),
## (eq, "$tutorial_1_finished", 1),
## (str_store_string, s1, "str_finished"),
## (else_try),
## (str_store_string, s1, "str_empty_string"),
## (try_end),
## (try_begin),
## (eq, "$tutorial_2_finished", 1),
## (str_store_string, s2, "str_finished"),
## (else_try),
## (str_store_string, s2, "str_empty_string"),
## (try_end),
## (try_begin),
## (eq, "$tutorial_3_finished", 1),
## (str_store_string, s3, "str_finished"),
## (else_try),
## (str_store_string, s3, "str_empty_string"),
## (try_end),
## (try_begin),
## (eq, "$tutorial_4_finished", 1),
## (str_store_string, s4, "str_finished"),
## (else_try),
## (str_store_string, s4, "str_empty_string"),
## (try_end),
## (try_begin),
## (eq, "$tutorial_5_finished", 1),
## (str_store_string, s5, "str_finished"),
## (else_try),
## (str_store_string, s5, "str_empty_string"),
## (try_end),
(assign, "$g_tutorial_entered", 1),
(try_end),
],
[
## ("tutorial_1",
## [(eq,1,0),],
## "Tutorial #1: Basic movement and weapon selection. {s1}",
## [
## #(modify_visitors_at_site,"scn_tutorial_1"),(reset_visitors,0),
#### (set_jump_mission,"mt_tutorial_1"),
#### (jump_to_scene,"scn_tutorial_1"),(change_screen_mission)]),
## ]),
##
## ("tutorial_2",[(eq,1,0),],"Tutorial #2: Fighting with a shield. {s2}",[
#### (modify_visitors_at_site,"scn_tutorial_2"),(reset_visitors,0),
#### (set_visitor,1,"trp_tutorial_maceman"),
#### (set_visitor,2,"trp_tutorial_archer"),
#### (set_jump_mission,"mt_tutorial_2"),
#### (jump_to_scene,"scn_tutorial_2"),(change_screen_mission)]),
## (modify_visitors_at_site,"scn_tutorial_training_ground"),
## (reset_visitors, 0),
## (set_player_troop, "trp_player"),
## (set_visitor,0,"trp_player"),
## (set_jump_mission,"mt_ai_training"),
## (jump_to_scene,"scn_tutorial_training_ground"),
## (change_screen_mission)]),
##
## ("tutorial_3",[(eq,1,0),],"Tutorial #3: Fighting without a shield. {s3}",[
## (modify_visitors_at_site,"scn_tutorial_3"),(reset_visitors,0),
## (set_visitor,1,"trp_tutorial_maceman"),
## (set_visitor,2,"trp_tutorial_swordsman"),
## (set_jump_mission,"mt_tutorial_3"),
## (jump_to_scene,"scn_tutorial_3"),(change_screen_mission)]),
## ("tutorial_3b",[(eq,0,1)],"Tutorial 3 b",[(try_begin),
## (ge, "$tutorial_3_state", 12),
## (modify_visitors_at_site,"scn_tutorial_3"),(reset_visitors,0),
## (set_visitor,1,"trp_tutorial_maceman"),
## (set_visitor,2,"trp_tutorial_swordsman"),
## (set_jump_mission,"mt_tutorial_3_2"),
## (jump_to_scene,"scn_tutorial_3"),
## (change_screen_mission),
## (else_try),
## (display_message,"str_door_locked",0xFFFFAAAA),
## (try_end)], "Next level"),
## ("tutorial_4",[(eq,1,0),],"Tutorial #4: Riding a horse. {s4}",[
## (modify_visitors_at_site,"scn_tutorial_training_ground"),
## (reset_visitors, 0),
## (set_player_troop, "trp_player"),
## (assign, "$g_player_troop", "trp_player"),
## (troop_raise_attribute, "$g_player_troop", ca_strength, 12),
## (troop_raise_attribute, "$g_player_troop", ca_agility, 9),
## (troop_raise_attribute, "$g_player_troop", ca_charisma, 5),
## (troop_raise_skill, "$g_player_troop", skl_shield, 3),
## (troop_raise_skill, "$g_player_troop", skl_athletics, 2),
## (troop_raise_skill, "$g_player_troop", skl_riding, 3),
## (troop_raise_skill, "$g_player_troop", skl_power_strike, 1),
## (troop_raise_skill, "$g_player_troop", skl_power_draw, 5),
## (troop_raise_skill, "$g_player_troop", skl_weapon_master, 4),
## (troop_raise_skill, "$g_player_troop", skl_ironflesh, 1),
## (troop_raise_skill, "$g_player_troop", skl_horse_archery, 6),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_one_handed_weapon, 70),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_two_handed_weapon, 70),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_polearm, 70),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_crossbow, 70),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_throwing, 70),
##
## (troop_clear_inventory, "$g_player_troop"),
## (troop_add_item, "$g_player_troop","itm_leather_jerkin",0),
## (troop_add_item, "$g_player_troop","itm_leather_boots",0),
## (troop_add_item, "$g_player_troop","itm_practice_sword",0),
## (troop_add_item, "$g_player_troop","itm_quarter_staff",0),
## (troop_equip_items, "$g_player_troop"),
## (set_visitor,0,"trp_player"),
## (set_visitor,32,"trp_tutorial_fighter_1"),
## (set_visitor,33,"trp_tutorial_fighter_2"),
## (set_visitor,34,"trp_tutorial_fighter_3"),
## (set_visitor,35,"trp_tutorial_fighter_4"),
## (set_visitor,40,"trp_tutorial_master_archer"),
## (set_visitor,41,"trp_tutorial_archer_1"),
## (set_visitor,42,"trp_tutorial_archer_1"),
## (set_visitor,60,"trp_tutorial_master_horseman"),
## (set_visitor,61,"trp_tutorial_rider_1"),
## (set_visitor,62,"trp_tutorial_rider_1"),
## (set_visitor,63,"trp_tutorial_rider_2"),
## (set_visitor,64,"trp_tutorial_rider_2"),
## (set_jump_mission,"mt_tutorial_training_ground"),
## (jump_to_scene,"scn_tutorial_training_ground"),
## (change_screen_mission),
## ]),
##
## ("tutorial_5",
## [
## (eq,1,0),
## ],
## "Tutorial #5: Commanding a band of soldiers. {s5}",
## [
## (modify_visitors_at_site,"scn_tutorial_5"),(reset_visitors,0),
## (set_visitor,0,"trp_player"),
## (set_visitor,1,"trp_vaegir_infantry"),
## (set_visitor,2,"trp_vaegir_infantry"),
## (set_visitor,3,"trp_vaegir_infantry"),
## (set_visitor,4,"trp_vaegir_infantry"),
## (set_jump_mission,"mt_tutorial_5"),
## (jump_to_scene,"scn_tutorial_5"),
## (change_screen_mission),
## ]),
##
## ("tutorial_edit_custom_battle_scenes",
## [(eq,1,0),],
## "(NO TRANSLATE) tutorial_edit_custom_battle_scenes",
## [
## (jump_to_menu,"mnu_custom_battle_scene"),
## ]),
("continue",[],"Continue...",
[
(modify_visitors_at_site,"scn_tutorial_training_ground"),
(reset_visitors, 0),
(set_player_troop, "trp_player"),
(assign, "$g_player_troop", "trp_player"),
(troop_raise_attribute, "$g_player_troop", ca_strength, 12),
(troop_raise_attribute, "$g_player_troop", ca_agility, 9),
(troop_raise_attribute, "$g_player_troop", ca_charisma, 5),
(troop_raise_skill, "$g_player_troop", skl_shield, 3),
(troop_raise_skill, "$g_player_troop", skl_athletics, 2),
(troop_raise_skill, "$g_player_troop", skl_riding, 3),
(troop_raise_skill, "$g_player_troop", skl_power_strike, 1),
(troop_raise_skill, "$g_player_troop", skl_power_draw, 5),
(troop_raise_skill, "$g_player_troop", skl_weapon_master, 4),
(troop_raise_skill, "$g_player_troop", skl_ironflesh, 1),
(troop_raise_skill, "$g_player_troop", skl_horse_archery, 6),
(troop_raise_proficiency_linear, "$g_player_troop", wpt_one_handed_weapon, 70),
(troop_raise_proficiency_linear, "$g_player_troop", wpt_two_handed_weapon, 70),
(troop_raise_proficiency_linear, "$g_player_troop", wpt_polearm, 70),
(troop_raise_proficiency_linear, "$g_player_troop", wpt_crossbow, 70),
(troop_raise_proficiency_linear, "$g_player_troop", wpt_throwing, 70),
(troop_clear_inventory, "$g_player_troop"),
(troop_add_item, "$g_player_troop","itm_leather_jerkin",0),
(troop_add_item, "$g_player_troop","itm_leather_boots",0),
(troop_add_item, "$g_player_troop","itm_practice_sword",0),
(troop_add_item, "$g_player_troop","itm_quarter_staff",0),
(troop_equip_items, "$g_player_troop"),
(set_visitor,0,"trp_player"),
(set_visitor,32,"trp_tutorial_fighter_1"),
(set_visitor,33,"trp_tutorial_fighter_2"),
(set_visitor,34,"trp_tutorial_fighter_3"),
(set_visitor,35,"trp_tutorial_fighter_4"),
(set_visitor,40,"trp_tutorial_master_archer"),
(set_visitor,41,"trp_tutorial_archer_1"),
(set_visitor,42,"trp_tutorial_archer_1"),
(set_visitor,60,"trp_tutorial_master_horseman"),
(set_visitor,61,"trp_tutorial_rider_1"),
(set_visitor,62,"trp_tutorial_rider_1"),
(set_visitor,63,"trp_tutorial_rider_2"),
(set_visitor,64,"trp_tutorial_rider_2"),
(set_jump_mission,"mt_tutorial_training_ground"),
(jump_to_scene,"scn_tutorial_training_ground"),
(change_screen_mission),
]),
("go_back_dot",
[],
"Go back.",
[
(change_screen_quit),
]),
]
),
("reports",0,
"Character Renown: {reg5}^Honor Rating: {reg6}^Party Morale: {reg8}^Party Size Limit: {reg7}^",
"none",
[(call_script, "script_game_get_party_companion_limit"),
(assign, ":party_size_limit", reg0),
(troop_get_slot, ":renown", "trp_player", slot_troop_renown),
(assign, reg5, ":renown"),
(assign, reg6, "$player_honor"),
(assign, reg7, ":party_size_limit"),
#(call_script, "script_get_player_party_morale_values"),
#(party_set_morale, "p_main_party", reg0),
(party_get_morale, reg8, "p_main_party"),
##diplomacy begin
(str_clear, s1),
(try_begin),
(gt, "$g_next_pay_time", 0),
(str_store_date, s1, "$g_next_pay_time"),
(str_store_string, s1, "@ Next pay day: {s1}"),
(try_end),
(try_begin),
(is_between, "$g_player_affiliated_troop", lords_begin, kingdom_ladies_end),
(str_store_troop_name, s5, "$g_player_affiliated_troop"),
(str_store_string, s1, "@{s1}^^Affiliated to {s5}"),
(try_end),
##diplomacy end
],
[
("cheat_faction_orders",[(ge,"$cheat_mode",1)],"{!}Cheat: Faction orders.",
[(jump_to_menu, "mnu_faction_orders"),
]
),
("view_character_report",[],"View character report.",
[(jump_to_menu, "mnu_character_report"),
]
),
("view_party_size_report",[],"View party size report.",
[(jump_to_menu, "mnu_party_size_report"),
]
),
("view_npc_mission_report",[],"View companion mission report.",
[(jump_to_menu, "mnu_companion_report"),
]
),
("view_weekly_budget_report",[],"View weekly budget report.",
[
(assign, "$g_apply_budget_report_to_gold", 0),
(start_presentation, "prsnt_budget_report"),
]
),
("view_morale_report",[],"View party morale report.",
[(jump_to_menu, "mnu_morale_report"),
]
),
#NPC companion changes begin
##diplomacy start
("lord_relations",[],"View list of known lords by relation.",
[
#(jump_to_menu, "mnu_lord_relations"),
(assign, "$g_jrider_pres_called_from_menu", 1),
(assign, "$g_character_presentation_type", 1),
(start_presentation, "prsnt_jrider_character_relation_report"),
]
),
##diplomacy end
##diplomacy start+ see dplmc_affiliated_family_report
("view_affiliated_family_report",[
#(this_or_next|troop_slot_ge, "trp_player", slot_troop_spouse, 1),
(this_or_next|ge,"$cheat_mode",1),
(is_between, "$g_player_affiliated_troop", kingdoms_begin, kingdoms_end),
], "View affiliated family member / spouse report.",
[
(jump_to_menu, "mnu_dplmc_affiliated_family_report"),
]
),
##diplomacy end+
("courtship_relations",[],"View courtship relations.",
[
(jump_to_menu, "mnu_courtship_relations"),
]
),
("status_check",[(eq,"$cheat_mode",1)],"{!}NPC status check.",
[
(try_for_range, ":npc", companions_begin, companions_end),
(main_party_has_troop, ":npc"),
(str_store_troop_name, 4, ":npc"),
(troop_get_slot, reg3, ":npc", slot_troop_morality_state),
(troop_get_slot, reg4, ":npc", slot_troop_2ary_morality_state),
(troop_get_slot, reg5, ":npc", slot_troop_personalityclash_state),
(troop_get_slot, reg6, ":npc", slot_troop_personalityclash2_state),
(troop_get_slot, reg7, ":npc", slot_troop_personalitymatch_state),
(display_message, "@{!}{s4}: M{reg3}, 2M{reg4}, PC{reg5}, 2PC{reg6}, PM{reg7}"),
(try_end),
]
),
#NPC companion changes end
##diplomacy begin
("view_faction_relations_report",[],"View faction relations report.",
[
# Jrider + REPORTS PRESENTATIONS 1.2, comment to hook faction report presentation
##(jump_to_menu, "mnu_faction_relations_report"),
(start_presentation, "prsnt_jrider_faction_relations_report"),
# Jrider -
]
),
##diplomacy end
("resume_travelling",[],"Resume travelling.",
[(change_screen_return),
]
),
]
),
(
"custom_battle_scene",menu_text_color(0xFF000000)|mnf_disable_all_keys,
"(NO_TRANS)",
"none",
[],
[
("quick_battle_scene_1",[],"{!}quick_battle_scene_1",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_scene_1"),(change_screen_mission)
]
),
("quick_battle_scene_2",[],"{!}quick_battle_scene_2",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_scene_2"),(change_screen_mission)
]
),
("quick_battle_scene_3",[],"{!}quick_battle_scene_3",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_scene_3"),(change_screen_mission)
]
),
# added for TGS
("quick_battle_emonds_field",[],"{!}quick_battle_emonds_field",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_emonds_field"),(change_screen_mission)
]
),
("quick_battle_shienaran_border_tower",[],"{!}quick_battle_shienaran_border_tower",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_shienaran_border_tower"),(change_screen_mission)
]
),
# end added for TGS
("quick_battle_scene_4",[],"{!}quick_battle_scene_4",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_scene_4"),(change_screen_mission)
]
),
("quick_battle_scene_5",[],"{!}quick_battle_scene_5",
[
(set_jump_mission,"mt_ai_training"),
(jump_to_scene,"scn_quick_battle_scene_5"),(change_screen_mission)
]
),
("go_back",[],"{!}Go back",
[(change_screen_quit),
]
),
]
),
#depreciated
## (
## "custom_battle_2",mnf_disable_all_keys,
## "{s16}",
## "none",
## [
## (assign, "$g_battle_result", 0),
## (set_show_messages, 0),
##
## (troop_clear_inventory, "trp_player"),
## (troop_raise_attribute, "trp_player", ca_strength, -1000),
## (troop_raise_attribute, "trp_player", ca_agility, -1000),
## (troop_raise_attribute, "trp_player", ca_charisma, -1000),
## (troop_raise_attribute, "trp_player", ca_intelligence, -1000),
## (troop_raise_skill, "trp_player", skl_shield, -1000),
## (troop_raise_skill, "trp_player", skl_athletics, -1000),
## (troop_raise_skill, "trp_player", skl_riding, -1000),
## (troop_raise_skill, "trp_player", skl_power_strike, -1000),
## (troop_raise_skill, "trp_player", skl_power_throw, -1000),
## (troop_raise_skill, "trp_player", skl_weapon_master, -1000),
## (troop_raise_skill, "trp_player", skl_horse_archery, -1000),
## (troop_raise_skill, "trp_player", skl_ironflesh, -1000),
## (troop_raise_proficiency_linear, "trp_player", wpt_one_handed_weapon, -10000),
## (troop_raise_proficiency_linear, "trp_player", wpt_two_handed_weapon, -10000),
## (troop_raise_proficiency_linear, "trp_player", wpt_polearm, -10000),
## (troop_raise_proficiency_linear, "trp_player", wpt_archery, -10000),
## (troop_raise_proficiency_linear, "trp_player", wpt_crossbow, -10000),
## (troop_raise_proficiency_linear, "trp_player", wpt_throwing, -10000),
##
## (reset_visitors),
#### Scene 1 Start "Shalow Lake War"
## (try_begin),
## (eq, "$g_custom_battle_scenario", 0),
## (assign, "$g_player_troop", "trp_knight_1_15"),
## (set_player_troop, "$g_player_troop"),
##
## (assign, "$g_custom_battle_scene", "scn_quick_battle_1"),
## (modify_visitors_at_site, "$g_custom_battle_scene"),
## (set_visitor, 0, "$g_player_troop"),
##
### (troop_add_item, "trp_player","itm_bascinet",0),
### (troop_add_item, "trp_player","itm_mail_with_surcoat",0),
### (troop_add_item, "trp_player","itm_bastard_sword_a",0),
### (troop_add_item, "trp_player","itm_war_bow",0),
### (troop_add_item, "trp_player","itm_khergit_arrows",0),
### (troop_add_item, "trp_player","itm_kite_shield",0),
### (troop_add_item, "trp_player","itm_hunter",0),
### (troop_add_item, "trp_player","itm_mail_chausses",0),
### (troop_equip_items, "trp_player"),
##
## (set_visitors, 1, "trp_farmer", 13),
## (set_visitors, 2, "trp_swadian_sergeant", 5),
## (set_visitors, 3, "trp_swadian_sharpshooter", 4),
## (set_visitors, 4, "trp_swadian_man_at_arms", 8),
## (set_visitors, 5, "trp_swadian_knight", 3),
## (set_visitors, 6, "trp_peasant_woman", 7),
##
#### Enemy
## (set_visitors, 16, "trp_vaegir_infantry", 6),
## (set_visitors, 17, "trp_vaegir_archer", 6),
## (set_visitors, 18, "trp_vaegir_horseman", 4),
## (set_visitors, 19, "trp_vaegir_knight", 10),
## (set_visitors, 20, "trp_vaegir_guard", 6),
## (str_store_string, s16, "str_custom_battle_1"),
##
#### SCENE 3 Start "Mountain Bandit Hunt"
## (else_try),
## (eq, "$g_custom_battle_scenario", 1),
## (assign, "$g_player_troop", "trp_knight_2_5"),
## (set_player_troop, "$g_player_troop"),
##
## (assign, "$g_custom_battle_scene", "scn_quick_battle_3"),
## (modify_visitors_at_site, "$g_custom_battle_scene"),
## (set_visitor, 0, "$g_player_troop"),
##
## (set_visitors, 1, "trp_vaegir_archer", 4),
## (set_visitors, 2, "trp_vaegir_archer", 5),
## (set_visitors, 3, "trp_vaegir_veteran", 4),
## (set_visitors, 4, "trp_vaegir_horseman", 4),
## (set_visitors, 5, "trp_vaegir_footman", 2),
## (set_visitors, 6, "trp_vaegir_knight", 4),
#### ENEMY
##
## (set_visitors, 16, "trp_mountain_bandit", 4),
## (set_visitors, 17, "trp_bandit", 8),
## (set_visitors, 18, "trp_mountain_bandit", 8),
## (set_visitors, 19, "trp_mountain_bandit", 6),
## (set_visitors, 20, "trp_sea_raider", 5),
## (set_visitors, 21, "trp_mountain_bandit", 4),
## (set_visitors, 22, "trp_brigand", 6),
## (set_visitors, 23, "trp_sea_raider", 8),
## (set_visitors, 25, "trp_brigand", 10),
## (str_store_string, s16, "str_custom_battle_2"),
##
#### SCENE 4 Start "Grand Stand"
## (else_try),
## (eq, "$g_custom_battle_scenario", 2),
## (assign, "$g_player_troop", "trp_kingdom_5_lady_1"),
## (set_player_troop, "$g_player_troop"),
##
## (troop_raise_attribute, "$g_player_troop", ca_strength, 12),
## (troop_raise_attribute, "$g_player_troop", ca_agility, 9),
## (troop_raise_attribute, "$g_player_troop", ca_charisma, 5),
## (troop_raise_attribute, "$g_player_troop", ca_intelligence, 5),
## (troop_raise_skill, "$g_player_troop", skl_shield, 3),
## (troop_raise_skill, "$g_player_troop", skl_athletics, 2),
## (troop_raise_skill, "$g_player_troop", skl_riding, 3),
## (troop_raise_skill, "$g_player_troop", skl_power_strike, 4),
## (troop_raise_skill, "$g_player_troop", skl_power_draw, 5),
## (troop_raise_skill, "$g_player_troop", skl_weapon_master, 4),
## (troop_raise_skill, "$g_player_troop", skl_ironflesh, 6),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_one_handed_weapon, 100),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_two_handed_weapon, 30),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_polearm, 20),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_crossbow, 110),
## (troop_raise_proficiency_linear, "$g_player_troop", wpt_throwing, 10),
##
## (assign, "$g_custom_battle_scene", "scn_quick_battle_4"),
## (modify_visitors_at_site, "$g_custom_battle_scene"),
## (set_visitor, 0, "$g_player_troop"),
##
## (troop_clear_inventory, "$g_player_troop"),
## (troop_add_item, "$g_player_troop","itm_helmet_with_neckguard",0),
## (troop_add_item, "$g_player_troop","itm_plate_armor",0),
## (troop_add_item, "$g_player_troop","itm_iron_greaves",0),
## (troop_add_item, "$g_player_troop","itm_mail_chausses",0),
## (troop_add_item, "$g_player_troop","itm_tab_shield_small_round_c",0),
## (troop_add_item, "$g_player_troop","itm_heavy_crossbow",0),
## (troop_add_item, "$g_player_troop","itm_bolts",0),
## (troop_add_item, "$g_player_troop","itm_sword_medieval_b_small",0),
## (troop_equip_items, "$g_player_troop"),
#### US
## (set_visitors, 1, "trp_vaegir_infantry", 4),
## (set_visitors, 2, "trp_vaegir_archer", 3),
## (set_visitors, 3, "trp_vaegir_infantry", 4),
## (set_visitors, 4, "trp_vaegir_archer", 3),
## (set_visitors, 5, "trp_vaegir_infantry", 3),
## (set_visitors, 6, "trp_vaegir_footman", 5),
## (set_visitors, 7, "trp_vaegir_footman", 4),
## (set_visitors, 8, "trp_vaegir_archer", 3),
##
#### ENEMY
## (set_visitors, 16, "trp_swadian_footman", 8),
## (set_visitors, 17, "trp_swadian_crossbowman", 9),
## (set_visitors, 18, "trp_swadian_sergeant", 7),
## (set_visitors, 19, "trp_swadian_sharpshooter", 8),
## (set_visitors, 20, "trp_swadian_militia", 13),
## (str_store_string, s16, "str_custom_battle_3"),
##
#### Scene 5 START
## (else_try),
## (eq, "$g_custom_battle_scenario", 3),
## (assign, "$g_player_troop", "trp_knight_1_10"),
## (set_player_troop, "$g_player_troop"),
##
## (assign, "$g_custom_battle_scene", "scn_quick_battle_5"),
## (modify_visitors_at_site, "$g_custom_battle_scene"),
## (set_visitor, 0, "$g_player_troop"),
##
#### US
## (set_visitors, 1, "trp_swadian_knight", 3),
## (set_visitors, 2, "trp_swadian_sergeant", 4),
## (set_visitors, 3, "trp_swadian_sharpshooter", 8),
## (set_visitors, 4, "trp_swadian_man_at_arms", 8),
## (set_visitors, 5, "trp_swadian_knight", 2),
##
#### enemy
## (set_visitors, 16, "trp_vaegir_infantry", 8),
## (set_visitors, 17, "trp_vaegir_archer", 10),
## (set_visitors, 18, "trp_vaegir_horseman", 4),
## (set_visitors, 19, "trp_vaegir_knight", 10),
## (set_visitors, 20, "trp_vaegir_guard", 7),
## (str_store_string, s16, "str_custom_battle_4"),
##
## (else_try),
## (eq, "$g_custom_battle_scenario", 4),
##
#### (assign, "$g_custom_battle_scene", "scn_quick_battle_6"),
## (assign, "$g_custom_battle_scene", "scn_quick_battle_7"),
##
### Player Wear
## (assign, "$g_player_troop", "trp_knight_4_9"),
## (set_player_troop, "$g_player_troop"),
##
## (modify_visitors_at_site, "$g_custom_battle_scene"),
## (set_visitor, 0, "$g_player_troop"),
##
## (set_visitors, 1, "trp_nord_archer", 4),
## (set_visitors, 2, "trp_nord_archer", 4),
## (set_visitors, 3, "trp_nord_champion", 4),
## (set_visitors, 4, "trp_nord_veteran", 5),
## (set_visitors, 5, "trp_nord_warrior", 5),
## (set_visitors, 6, "trp_nord_trained_footman", 8),
##
#### ENEMY
## (set_visitors, 11, "trp_vaegir_knight", 2),
## (set_visitors, 12, "trp_vaegir_guard", 6),
## (set_visitors, 13, "trp_vaegir_infantry", 8),
## (set_visitors, 14, "trp_vaegir_veteran", 10),
## (set_visitors, 16, "trp_vaegir_skirmisher", 5),
## (set_visitors, 17, "trp_vaegir_archer", 4),
## (set_visitors, 18, "trp_vaegir_marksman", 2),
## (set_visitors, 19, "trp_vaegir_skirmisher", 4),
## (set_visitors, 20, "trp_vaegir_skirmisher", 3),
## (set_visitors, 21, "trp_vaegir_skirmisher", 3),
## (set_visitors, 22, "trp_vaegir_skirmisher", 3),
## (set_visitors, 23, "trp_vaegir_archer", 2),
## (str_store_string, s16, "str_custom_battle_5"),
## (try_end),
## (set_show_messages, 1),
## ],
##
## [
## ("custom_battle_go",[],"Start.",
## [(try_begin),
## (eq, "$g_custom_battle_scenario", 2),
#### (set_jump_mission,"mt_custom_battle_siege"),
## (else_try),
## (eq, "$g_custom_battle_scenario", 4),
#### (set_jump_mission,"mt_custom_battle_5"),
## (else_try),
#### (set_jump_mission,"mt_custom_battle"),
## (try_end),
## (jump_to_menu, "mnu_custom_battle_end"),
## (jump_to_scene,"$g_custom_battle_scene"),
## (change_screen_mission),
## ]
## ),
## ("leave_custom_battle_2",[],"Cancel.",
## [(jump_to_menu, "mnu_start_game_3"),
## ]
## ),
## ]
## ),
(
"custom_battle_end",mnf_disable_all_keys,
"The battle is over. {s1} Your side killed {reg5} enemies and lost {reg6} troops over the battle. You personally slew {reg7} men in the fighting.",
"none",
[(music_set_situation, 0),
(assign, reg5, "$g_custom_battle_team2_death_count"),
(assign, reg6, "$g_custom_battle_team1_death_count"),
(get_player_agent_kill_count, ":kill_count"),
(get_player_agent_kill_count, ":wound_count", 1),
(store_add, reg7, ":kill_count", ":wound_count"),
(try_begin),
(eq, "$g_battle_result", 1),
(str_store_string, s1, "str_battle_won"),
(else_try),
(str_store_string, s1, "str_battle_lost"),
(try_end),
(try_begin),
(ge, "$g_custom_battle_team2_death_count", 100),
(unlock_achievement, ACHIEVEMENT_LOOK_AT_THE_BONES),
(try_end),
],
[
("continue",[],"Continue.",
[(change_screen_quit),
]
),
]
),
#####################################################
######## Edited Character Creation for TGS
#####################################################
("start_game_1",menu_text_color(0xFF000000)|mnf_disable_all_keys,
"Select your character's gender.",
"none",
##diplomacy start+ Reset prejudice preferences
[
(assign, "$g_disable_condescending_comments", 0),
],
##diplomacy end+
[
("start_male",[],"Male",
[
(troop_set_type,"trp_player", 0),
(assign,"$character_gender",tf_male),
(jump_to_menu,"mnu_start_character_1"),
]
),
("start_female",[],"Female",
[
(troop_set_type, "trp_player", 1),
(assign, "$character_gender", tf_female),
##diplomacy start+
#Jump to the prejudice-level menu instead
# (jump_to_menu, "mnu_start_character_1"),
(jump_to_menu, "mnu_dplmc_start_select_prejudice"),
##diplomacy end+
]
),
("go_back",[],"Go back",
[
(jump_to_menu,"mnu_start_game_0"),
]),
]
),
(
"start_character_1",mnf_disable_all_keys,
"You were born years ago, in a land far away. Your father was...",
"none",
[
(str_clear,s10),
(str_clear,s11),
(str_clear,s12),
(str_clear,s13),
(str_clear,s14),
(str_clear,s15),
## new
(str_clear,s16),
## end
],
[
("start_father_lord",[],"A lord of noble birth.",[
(assign,"$background_type",cb_father_lord),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@You came into the world a {reg3?daughter:son} of a powerful noble.\
You were afforded a good education and were trained from childhood for the rigors of aristocracy and\
life at court. It seemed the world was yours from the very start."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_warder",[],"A warder.",[
(assign,"$background_type",cb_father_warder),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@You were born the {reg3?daughter:son} of a warder of the White Tower.\
It was interesting, being raised by such a dangerous man, but you received an excellent education\
and learned how to defend yourself. Your time in Tar Valon also kept you aware of the world around you."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_soldier",[],"A veteran soldier.",[
(assign,"$background_type",cb_father_soldier),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@As a child, your family scrabbled out a meagre living from your father's wages\
as a guardsman to the local lord. It was not an easy existence, and you were too poor to get much of an\
education. You learned mainly how to defend yourself on the streets, with or without a weapon in hand."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_adventurer",[],"An adventurer.",[
(assign,"$background_type",cb_father_adventurer),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@{reg3?daughter:son}"),
(str_store_string,s10,"@You were the {reg3?daughter:son} of a man who enjoyed being on the move,\
and did whatever it took to not settle down. You might not have received a formal education, but\
you were taught to fend for yourself from a young age."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_merchant",[],"A merchant.",[
(assign,"$background_type",cb_father_merchant),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@{reg3?daughter:son}"),
(str_store_string,s10,"@You were a child of a successful merchant. Traveling the road of the Southlands\
was how your father lived. He took great pride in anticipating what goods would be needed where. You became\
familiar with the towns and villages, and learned much of the laws governing trade as well."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_farmer",[],"A farmer.",[
(assign,"$background_type",cb_father_farmer),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@As the {reg3?daughter:son} of a farmer, you had very little 'formal' education.\
Instead, you spent much of your time in the fields and around livestock. It may have been boring at times\
but you learned how to do a good day's work. Your father taught you how to raise a good crop and then\
barder with the merchants come market time."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_thief",[],"A thief.",[
(assign,"$background_type",cb_father_thief),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@As the {reg3?daughter:son} of a thief, you had very little 'formal' education.\
You didn't really learn how to earn a living, but rather how to take what you needed. Quick hands and\
silent feet were the traits passed on to you. That and a general distaste for the town watch."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
("start_father_skilled_tradesman",[],"A skilled tradesman.",[
(assign,"$background_type",cb_father_skilled_tradesman),
(assign, reg3, "$character_gender"),
(str_store_string,s10,"@As the {reg3?daughter:son} of a tradesman, you were taught how to use tools.\
Your father put in long days in the workshop and was recognized far and near for his 'wonders'. While watching\
him work, you gained an understanding of mechanics, woodworking, and metal crafting."),
(jump_to_menu,"mnu_start_character_1_mother"),
]),
## ("start_priest",[],"Priests.",[
## (assign,"$background_type",cb_priest),
## (assign, reg3, "$character_gender"),
## (str_store_string,s10,"@A {reg3?daughter:son} that nobody wanted, you were left to the church as a baby,\
## a foundling raised by the priests and nuns to their own traditions.\
## You were only one of many other foundlings and orphans, but you nonetheless received a lot of attention\
## as well as many years of study in the church library and before the altar. They taught you many things.\
## Gradually, faith became such a part of your life that it was no different from the blood coursing through your veins."),
## (jump_to_menu,"mnu_start_character_2"),
## ]),
("go_back",[],"Go back",
[(jump_to_menu,"mnu_start_game_1"),
]),
]
),
# start_character_1_mother begins
(
"start_character_1_mother",0,
"{s10}^^ But that's only half the story. Your mother was...",
"none",
[],
[
("start_mother_lady",[(this_or_next|eq, "$background_type", cb_father_lord),
(eq, "$background_type", cb_father_warder),],"A lady of noble birth.",[
(assign,"$background_type_mother", cb_mother_lady),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@Your mother made sure you were raised right;\
you were kept from the harmful influence of the common folk.\
You were taught the basics of the Game of Houses and also of courtly love. You saw portions of the lives of commoners,\
but only through the curtains of a coach or when it was festival time."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_aes_sedai",[(neq, "$background_type", cb_father_thief)],"An Aes Sedai.",[
(assign,"$background_type_mother", cb_mother_aes_sedai),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@As a {reg3?daughter:son} of an Aes Sedai,\
you were taught to be comfortable with the One Power from your youth.\
You didn't always get to spend as much time with your mother as you would have liked,\
but the time you did have was certainly unique."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_house_wife",[(neq, "$background_type", cb_father_lord)],"A house wife.",[
(assign,"$background_type_mother",cb_mother_house_wife),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@As a young {reg3?girl:boy}, you were some lucky to\
have a mother who was always around home. She patched up your bumps and bruises, and taught you\
the important things, like how to get along with others, and if necessary, make your own meals."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_womens_circle_member",[(neq, "$background_type", cb_father_thief)],"A member of the Women's Circle.",[
(assign,"$background_type_mother",cb_mother_womens_circle_member),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@As a member of the Women's Circle,\
your mother was a respected member of the community.\
She taught you to think before you spoke, and also to take action to get things accomplished.\
You were instilled with a sense of leadership but also a respect for those in authority."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_innkeeper",[(neq, "$background_type", cb_father_lord)],"An innkeeper.",[
(assign,"$background_type_mother",cb_mother_innkeeper),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@As a {reg3?daughter:son} of an innkeeper,\
you had the opportunity to meet many travelers from the surrounding lands. You witnessed good storytelling,\
and learned the importance of a good meal and perhaps a flagon of ale to keep men's spirits up."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_hunter_for_the_horn",[(neq, "$background_type", cb_father_thief)],"A Hunter for the Horn.",[
(assign,"$background_type_mother",cb_mother_hunter_for_the_horn),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@Your mother left when you were young.\
She had always been a restless spirit, and when the Hunt for the Horn was called, it was too\
great an opportunity to turn down. During her time with you, her stories of the world around\
rubbed off on you as well."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_whore",[(neq, "$background_type", cb_father_lord),
(neq, "$background_type", cb_father_warder),],"A tavern maid.",[
(assign,"$background_type_mother",cb_mother_whore),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@Your mother may not have had the highest\
reputation in some circles, but she never showed you anything but love. She gave you everything\
within her power, and did her best to raise you right. Her cheerfulness and sacrificial attitude\
went far in shaping your future."),
(jump_to_menu,"mnu_start_character_2"),
]),
("start_mother_seamstress",[(neq, "$background_type", cb_father_lord)],"A seamstress.",[
(assign,"$background_type_mother",cb_mother_seamstress),
(assign, reg3, "$character_gender"),
(str_store_string,s16,"@Your mother was a business woman through\
and through. As a talented seamstress, she was able to make a beautiful outfit out of fabrics\
that many people would have considered scraps. She taught you how to bargain and also the\
benefit of good honest labor."),
(jump_to_menu,"mnu_start_character_2"),
]),
("go_back",[],"Go back.",
[(jump_to_menu,"mnu_start_character_1"),
]),
]
),
## start_character_2 (childhood)
(
"start_character_2",0,
"{s16}^^ You started to learn about the world almost as soon as you could walk and talk. You spent your childhood as...",
"none",
[],
[
("page",[(eq, "$character_gender", tf_male),
(this_or_next|eq, "$background_type", cb_father_lord),
(eq, "$background_type_mother", cb_mother_lady),],"A page at a nobleman's court.",[
(assign,"$background_answer_2", cb_childhood_page),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@As a {reg3?girl:boy} growing out of childhood,\
you were sent to live in the court of one of the nobles of the land.\
There, your first lessons were in humility, as you waited upon the lords and ladies of the household.\
But from their chess games, their gossip, even the poetry of great deeds and courtly love, you quickly began to learn about the adult world of conflict\
and competition. You also learned from the rough games of the other children, who battered at each other with sticks in imitation of their elders' swords."),
(jump_to_menu,"mnu_start_character_3"),
]),
("lady_in_waiting",[(eq,"$character_gender",tf_female),
(this_or_next|eq, "$background_type", cb_father_lord),
(eq, "$background_type_mother", cb_mother_lady),],"A lady-in-waiting.",[
(assign,"$background_answer_3",cb_childhood_lady_in_waiting),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@As a child you served as a lady-in-waiting.\
You were introdced to the tightly-knit circle of women at court, ladies who all did proper ladylike things,\
the wives and mistresses of noble men as well as maidens who had yet to find a husband.\
However, even here you found politics at work as the ladies schemed for prominence and fought each other\
bitterly to catch the eye of whatever unmarried man was in fashion at court.\
You soon learned ways of turning these situations and goings-on to your advantage. With it came the\
realisation that you yourself could wield great influence in the world, if only you applied yourself\
with a little bit of subtlety."),
(jump_to_menu,"mnu_start_character_3"),
]),
("novice",[(eq, "$character_gender", tf_female)],"A novice of the White Tower.",[
(assign,"$background_answer_2", cb_childhood_novice),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@When you were quite young, it was\
discovered that you could channel. Your parents decided that it would\
be best if you received proper training with the Aes Sedai in Tar Valon. You vividly remember the\
day when you left your former life behind and started down the long road of training and discovery."),
(jump_to_menu,"mnu_start_character_3"),
]),
("wilder",[(assign, ":test_1", 0),
(try_begin),
(eq, "$character_gender", tf_male),
(assign, ":test_1", 1),
(else_try),
(eq, "$character_gender", tf_female),
(neq, "$background_type_mother", cb_mother_aes_sedai),
(assign, ":test_1", 1),
(try_end),
(eq, ":test_1", 1),],"A Wilder.",[
(assign,"$background_answer_2", cb_childhood_wilder),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@One day, when you were around fourteen years old,\
you fell through the ice in the village pond. When you came to the surface, to your horror\
your head hit ice instead of air. You frantically looked for the hole, but the freezing cold\
started to disorient you. As you ran out of air, you began to panic. Just before you reached you\
passed out, the ice suddenly broke above you. You surfaced and called for help. The next week was\
spent recovering. But a lingering sickness set in that finally broke after several intense days.\
In the months to come, you slowly realized that you had channeled. But, you kept this secret for fear\
of what your friends and family would think."),
(jump_to_menu,"mnu_start_character_3"),
]),
("hunter",[(neq, "$background_type_mother", cb_mother_lady),
(neq, "$background_type_mother", cb_mother_aes_sedai),
(neq, "$background_type_mother", cb_mother_innkeeper),
(neq, "$background_type_mother", cb_mother_seamstress),
],"A hunter.",[
(assign,"$background_answer_2",cb_childhood_hunter),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@You spent your childhood in the forests.\
Admittedly, much of it was just spent adventuring, but you were also expected by your family to bring\
home something for dinner. You spent many hours tracking and stalking prey, and of course, when the time\
was right, you had to hit what you were aiming at."),
(jump_to_menu,"mnu_start_character_3"),
]),
("farmer",[(neq, "$background_type_mother", cb_mother_lady),
(neq, "$background_type_mother", cb_mother_aes_sedai),
(neq, "$background_type_mother", cb_mother_hunter_for_the_horn),
],"Another set of hands on the farm.",[
(assign,"$background_answer_2",cb_childhood_farmer),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@As a {reg3?girl:boy} growing out of childhood,\
you spent most of your time helping out on the family farm. Countless hours were spent with good honest\
labor. It wasn't all work though. You witnessed the miracle of birth in the spring and watched the fields\
whiten for harvest in the fall. The occasional wolf that tried to prey on the livestock was put to flight\
with a hail of stones from your sling and in later years, an arrow from your bow."),
(jump_to_menu,"mnu_start_character_3"),
]),
("apprentice",[(neq, "$background_type_mother", cb_mother_lady)],"A craftsman's apprentice.",[
(assign,"$background_answer_2", cb_childhood_apprentice),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@As a {reg3?girl:boy} growing out of childhood,\
you apprenticed with a local craftsman to learn a trade. After years of hard work and study under your\
new master, he promoted you to journeyman and employed you as a fully paid craftsman for as long as\
you wished to stay."),
(jump_to_menu,"mnu_start_character_3"),
]),
("village_wisdom_assistant",[(eq, "$character_gender", tf_female),
(neq, "$background_type_mother", cb_mother_lady),
(neq, "$background_type_mother", cb_mother_whore),],"A village wisdom's assistant.",[
(assign,"$background_answer_2",cb_childhood_village_wisdom_assistant),
(assign, reg3, "$character_gender"),
(str_store_string,s11,"@When you were young, the Village Wisdom\
took you as her apprentice. Your quick memory helped you learn the many herbs used to make remedies.\
But as you grew into your teens, you learned that the Wisdom's duties went far beyond tending the sick.\
A Wisdom was also expected to provide other answers such as when to plant crops, or how the weather would\
be that year. You knew that if you worked hard in your training, you too would grow to be a respected\
member of your community."),
(jump_to_menu,"mnu_start_character_3"),
]),
## ("mummer",[],"Mummer.",[
## (assign,"$background_answer_2",5),
## (assign, reg3, "$character_gender"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@{reg3?girl:boy}"),
## (str_store_string,s11,"@As a {s12} growing out of childhood,\
## you attached yourself to a troupe of wandering entertainers, going from town to town setting up mummer's\
## shows. It was a life of hard work, selling, begging and stealing your living from the punters who flocked\
## to watch your antics. Over time you became a performer well capable of attracting a crowd."),
## (jump_to_menu,"mnu_start_character_3"),
## ]),
## ("courtier",[],"Courtier.",[
## (assign,"$background_answer_2",6),
## (assign, reg3, "$character_gender"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@{reg3?girl:boy}"),
## (str_store_string,s11,"@As a {s12} growing out of childhood,\
## you spent much of your life at court, inserting yourself into the tightly-knit circles of nobility.\
## With the years you became more and more involved with the politics and intrigue demanded of a high-born {s13}.\
## You could not afford to remain a stranger to backstabbing and political violence, even if you wanted to."),
## (jump_to_menu,"mnu_start_character_3"),
## ]),
## ("noble",[],"Noble in training.",[
## (assign,"$background_answer_2",7),
## (assign, reg3, "$character_gender"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@{reg3?girl:boy}"),
## (try_begin),
## (eq,"$character_gender",tf_male),
## (str_store_string,s11,"@As a {s12} growing out of childhood,\
## you were trained and educated to perform the duties and wield the rights of a noble landowner.\
## The managing of taxes and rents were equally important in your education as diplomacy and even\
## personal defence. You learned everything you needed to become a lord of your own hall."),
## (else_try),
## (str_store_string,s11,"@As a {s12} growing out of childhood,\
## you were trained and educated to the duties of a noble {s13}. You learned much about the household arts,\
## but even more about diplomacy and decorum, and all the things that a future husband might choose to speak of.\
## Truly, you became every inch as shrewd as any lord, though it would be rude to admit it aloud."),
## (try_end),
## (jump_to_menu,"mnu_start_character_3"),
## ]),
## ("acolyte",[],"Cleric acolyte.",[
## (assign,"$background_answer_2",8),
## (assign, reg3, "$character_gender"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@{reg3?girl:boy}"),
## (str_store_string,s11,"@As a {s12} growing out of childhood,\
## you became an acolyte in the church, the lowest rank on the way to priesthood.\
## Years of rigorous learning and hard work followed. You were one of several acolytes,\
## performing most of the menial labour in the church in addition to being trained for more holy tasks.\
## On the night of your adulthood you were allowed to conduct your first service.\
## After that you were no longer an acolyte {s12}, but a {s13} waiting to take your vows into the service of God."),
## (jump_to_menu,"mnu_start_character_3"),
## ]),
("go_back",[],"Go back.",
[(jump_to_menu,"mnu_start_character_1_mother"),
]),
]
),
## start_character_3 (young adulthood)
(
"start_character_3",mnf_disable_all_keys,
"{s11}^^ Then, as a young adult, life changed as it always does. You became...",
"none",
[(assign, reg3, "$character_gender"),],
[
## ("bravo",[],"A travelling bravo.",[
## (assign,"$background_answer_3",1),
## (str_store_string,s14,"@{reg3?daughter:man}"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@Though the distinction felt sudden to you,\
## somewhere along the way you had become a {s13}, and the whole world seemed to change around you.\
## You left your old life behind to travel the roads as a mercenary, a bravo, guarding caravans for coppers\
## or bashing in heads for silvers. You became a {s14} of the open road, working with bandits as often as against.\
## Going from fight to fight, you grew experienced at battle, and you learned what it was to kill."),
## (jump_to_menu,"mnu_start_character_4"),
## ]),
## ("merc",[],"A sellsword in foreign lands.",[
## (assign,"$background_answer_3",2),
## (str_store_string,s14,"@{reg3?daughter:man}"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@Though the distinction felt sudden to you,\
## somewhere along the way you had become a {s13}, and the whole world seemed to change around you.\
## You signed on with a mercenary company and travelled far from your home. The life you found was rough and\
## ready, marching to the beat of strange drums and learning unusual ways of fighting.\
## There were men who taught you how to wield any weapon you desired, and plenty of battles to hone your skills.\
## You were one of the charmed few who survived through every campaign in which you marched."),
## (jump_to_menu,"mnu_start_character_4"),
## ]),
("minor_noble",[(this_or_next|eq, "$background_type", cb_father_lord),
(eq, "$background_type_mother", cb_mother_lady),],"A minor noble.",[
(assign,"$background_answer_3",cb_young_adulthood_minor_noble),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s12,"@An unexpected death in the family placed the\
burden of leadership upon your shoulders. You were named the {reg3?lady:lord} of your\
house, and immediately started representing your subjects in the courts of the land.\
The burden of this added responsibility helped shape you into a {reg3?woman:man}\
who was greatly respected by your peers."),
(jump_to_menu,"mnu_start_character_4"),
]),
("gleeman",[(neq, "$background_type", cb_father_lord)],"A gleeman.",[
(assign,"$background_answer_3",cb_young_adulthood_gleeman),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@Your quick memory and natural agility helped\
make the decision to become a gleeman much simpler. Though you did spend a lot of time on the road,\
when you made it into town, it was guaranteed that you were the center of attention. A tale or two\
and then some music or juggling earned you a meal and some silver besides."),
(jump_to_menu,"mnu_start_character_4"),
]),
("warder",[(eq, "$character_gender", tf_male)],"A warder.",[
(assign,"$background_answer_3",cb_young_adulthood_warder),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@Battle was in your blood, but you also felt a\
strong desire to serve a greater purpose. You saw the evil growing in the world and were drawn\
towards the White Tower, seeing the Aes Sedai as a bastion against the Shadow. You talked to one of\
the warders and were surprised to learn that if you could keep up, you would be allowed to train with them.\
The next four years were spent transforming your body into a weapon. During this time you also became aquainted\
one of the accepted. A year later, when she was raised to full Aes Sedai, you chose to become her warder."),
(jump_to_menu,"mnu_start_character_4"),
]),
("accepted",[(eq, "$background_answer_2", cb_childhood_novice)],"An Accepted of the White Tower.",[
(assign,"$background_answer_3",cb_young_adulthood_accepted),
(str_store_string,s12,"@Life as a novice was not easy by any means,\
but when you became an Accepted, you learned what training really meant. Still, you\
were allowed some freedoms and were also able to choose more of the topics you studied. You became\
proficient with many of the weaves taught by the Sisters and also expanded your limits with the One Power.\
In the front of your mind was the thought that you could do this. One day, you would become an Aes Sedai."),
(jump_to_menu,"mnu_start_character_4"),
]),
("active_wilder",[(eq, "$background_answer_2", cb_childhood_wilder)],"An active Wilder.",[
(assign,"$background_answer_3",cb_young_adulthood_active_wilder),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@You knew you could channel, but you did everything\
in your power to keep that secret. There were many groups in the land who would kill you out of\
hand for what you could do. However, when you were alone, or when no one would notice, you used your\
new abilities in ways to help others. Gradually, your skills grew and you became quite adept at weaving\
the flows..."),
(jump_to_menu,"mnu_start_character_4"),
]),
("merchant",[(neq, "$background_type", cb_father_lord),
(neq, "$background_type", cb_father_thief),],"A merchant.",[
(assign,"$background_answer_3", cb_young_adulthood_merchant),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@You had always been ambitious, and when you\
told your parents you wanted to be a successful merchant, they weren't surprised.\
The first items you sold were two chairs and a table that you made yourself. You used the profit\
to buy some furs from one of your neighbors. Then you took to the road. Over the next few years, your\
operation grew from a pack on your back to several mules and a wagon. Later, you hired several guards\
and drivers to help out. You were always quick to catch wind of the profitable sales, and rewarded your\
partners as well."),
(jump_to_menu,"mnu_start_character_4"),
]),
("village_wisdom",[(eq, "$background_answer_2", cb_childhood_village_wisdom_assistant)],"A village wisdom.",[
(assign,"$background_answer_3", cb_young_adulthood_village_wisdom),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@You were too young in the eyes of some, but\
never the less, when the old wisdom died, she named you as her replacement. The villagers didn't\
doubt your knowledge of herbs and remedies, but you could tell they were just a little hesitant.\
You were detemined to prove yourself, and over the years became a respected healer."),
(jump_to_menu,"mnu_start_character_4"),
]),
("smuggler",[(neq, "$background_type", cb_father_lord),
(eq, "$background_type", cb_father_thief),],"A smuggler.",[
(assign,"$background_answer_3", cb_young_adulthood_smuggler),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@Working hard was never something you enjoyed\
while growing up. Or maybe it was just the burden of playing by the rules. But, you were interested\
in money, and had a knack for finding out who needed what and what they were willing to pay. Sure you\
sometimes didn't play tariffs on the goods you sold, but who were the greedy nobles to tax every transaction?\
Thankfully, a quick mind and an eye that could spot trouble a mile away kept you one step ahead of the authoritied."),
(jump_to_menu,"mnu_start_character_4"),
]),
("merchant_guard",[(neq, "$background_type", cb_father_lord)],"A merchant's guard.",[
(assign,"$background_answer_3", cb_young_adulthood_merchant_guard),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@You could have helped out with the family business,\
but the life your father led didn't seem that attractive to you. You wanted adventure, but adventure cost\
money you didn't have. When a merchant's train stopped in town, the master of the guard said he was looking for\
a few strong lads to help out. You didn't have as much experience as some, but he was willing to let you join. The\
pay was good and you quickly learned how to handle yourself in a fight. A few years, and a few scars later, you\
had become one of the merchant's most trusted guards."),
(jump_to_menu,"mnu_start_character_4"),
]),
("hunter_for_the_horn",[],"A Hunter of the Horn.",[
(assign,"$background_answer_3", cb_young_adulthood_hunter_for_the_horn),
(str_store_string,s14,"@{reg3?daughter:man}"),
(str_store_string,s13,"@{reg3?woman:man}"),
(str_store_string,s12,"@You were in your upper teens when the Hunt of the Horn of Valere was called.\
Despite your parents' discouragement, you packed up what little you had and snuck off with a group of friends.\
At first, you didn't find much besides hunger and a lack of sleep. You got robbed once, and were beaten several times.\
However, you persevered and soon found you were able to handle yourself. Then you found a lead. The Horn was reported\
to have been seen in a village in southern Shienar. After a few months of travel and then a few months more of searching,\
you decided that the lead was a fake. But you weren't discouraged. The Hunt was the grandest adventure of all time."),
(jump_to_menu,"mnu_start_character_4"),
]),
## ("preacher",[],"Itinerant preacher.",[
## (assign,"$background_answer_3",6),
## (str_store_string,s14,"@{reg3?daughter:man}"),
## (str_store_string,s13,"@{reg3?woman:man}"),
## (str_store_string,s12,"@Though the distinction felt sudden to you,\
## somewhere along the way you had become a {s13}, and the whole world seemed to change around you.\
## You packed your few belongings and went out into the world to spread the word of God. You preached to\
## anyone who would listen, and impressed many with the passion of your sermons. Though you had taken a vow\
## to remain in poverty through your itinerant years, you never lacked for food, drink or shelter; the\
## hospitality of the peasantry was always generous to a rising {s13} of God."),
## (jump_to_menu,"mnu_start_character_4"),
## ]),
("go_back",[],"Go back.",
[(jump_to_menu,"mnu_start_character_2"),
]
),
]
),
## start_character_4 (crowning achievement)
(
"start_character_4",mnf_disable_all_keys,
"{s12}^^Over the years, you had many great experiences, but the greatest in your mind was when you...",
#Finally, what made you decide to strike out on your own as an adventurer?",
"none",
[],
[
("achievement_noble_title",[(neq,"$background_type",cb_father_lord),
(neq,"$background_type_mother",cb_mother_lady),
(neq,"$background_answer_3",cb_young_adulthood_minor_noble),],"Gained a noble title.",[
(assign,"$background_answer_4", cb_crowning_achievement_noble_title),
(str_store_string,s13,"@It was not expected, but you were named the heir of a noble house.\
Many thought this was a poor choice, since you were not of noble birth, but you soon taught them respect.\
From a young age, you strengthened the position of your house and gained respect in the eyes of your superiors."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_captured_a_false_dragon",[],"Helped capture a False Dragon.",[
(assign,"$background_answer_4",cb_crowning_achievement_captured_a_false_dragon),
(str_store_string,s13,"@A false Dragon was one of the things most feared in your\
world. Tales of men who rent the earth and rained lightning from the skies had been among your favorite camp stories.\
However, when these tales became real, you volunteered to join the force that set out to stop this 'Dragon'.\
This false Dragon could channel and had come out ahead in many skirmishes. You found a weakness in his strategy\
in that he would often rush to the front if his men were being pressed. On one such occasion, when he moved forward\
to rally his troops, you shot his horse, causing him to fall and hit his head. Your company then charged and captured\
the false Dragon while he was unconsious. The false Dragon was then transfered to the Aes Sedai to be safely constrained,\
but all the land learned of what you had done."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_mastered_the_flame_and_void ",[(this_or_next|eq, "$background_answer_3", cb_young_adulthood_warder),
(eq, "$background_answer_3", cb_young_adulthood_merchant_guard),],"Mastered the Flame and Void.",[
(assign,"$background_answer_4",cb_crowning_achievement_mastered_the_flame_and_void),
(str_store_string,s13,"@In order to become a true warrior, you had been taught that you must\
learn to master both your actions and your emotions. Neither fear or anger would help you during battle.\
You trained under one of the most noted Blademasters and learned to feed all your concerns, emotions, and\
thoughts into the flame in your mind. You then entered the void and became one with your oponents."),
(jump_to_menu,"mnu_choose_skill"),
]),
## ("fervor",[],"Religious fervor.",[
## (assign,"$background_answer_4",4),
## (str_store_string,s13,"@Only you know exactly what caused you to give up your old life and become an adventurer.\
## Regardless, the intense faith burning in your soul would not let you find peace in any single place.\
## There were others in the world, souls to be washed in the light of God. Now you preach wherever you go,\
## seeking to bring salvation and revelation to the masses, be they faithful or pagan. They will all know the\
## glory of God by the time you're done..."),
## (jump_to_menu,"mnu_choose_skill"),
## ]),
("achievement_survived_journey_across_aiel_waste",[(this_or_next|eq, "$background_type", cb_father_warder),
(this_or_next|eq, "$background_type", cb_father_adventurer),
(this_or_next|eq, "$background_answer_3", cb_young_adulthood_warder),
(eq, "$background_answer_3", cb_young_adulthood_merchant_guard),],"Survived a journey across the Aiel Waste.",[
(assign,"$background_answer_4",cb_crowning_achievement_survived_journey_across_aiel_waste),
(str_store_string,s13,"@While accompanying a merchant train into the Aiel Waste, you were bitten\
by a poisonious snake. It was thought that you were dead, so the merchants left you behind in a small hollow in the rocks.\
A group of Aiel scouts found you, and decided that any Wetlander who survived that snake bite should be allowed to live.\
They let you recover for a few days and then sent you off with a hide of water. It took you a whole week, but you were\
able to follow the animal droppings and other sign left by the merchant train back to the Jengai Pass. The merchant\
was horrified by what had been done and rewarded you with triple the pay you were due."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_learned_to_speak_to_wolves",[],"Learned to speak to wolves.",[
(assign,"$background_answer_4",cb_crowning_achievement_learned_to_speak_to_wolves),
(str_store_string,s13,"@You are not sure whether you learned or if it just happened,\
but in your early 20s, you first heard the voices in your head. Slowly you pieced together\
that these voices weren't madness. Then came the dreams. Dreams with wolves in them. Your senses\
became heightened, and you began to spend more and more time out in the wilds. Soon you found a small\
pack who let you join them and taught you more about your new life. But, you were insistent that\
you also keep a foot in the world of humans. So, after a year with the wolves, you moved on."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_saved_lord_at_tarwins_gap",[(neq, "$background_type", cb_father_lord)],"Saved a lord at Tarwin's Gap.",[
(assign,"$background_answer_4",cb_crowning_achievement_saved_lord_at_tarwins_gap),
(str_store_string,s13,"@Having trained since your youth, you were not surprised when\
you were called to join the forces marching to Tarwin's Gap. War was the life of the Bordermen,\
and the Trollocs would come whether the armies were there to meet them or not. You were close to the\
marshall when his horse broke a leg in a small hole. He went down and the trollocs rushed in. You dismounted\
and rushed to meet them. Together, you and the marshall fought off eight of the beasts. Wounded and tired,\
you looked up to see another wave of trollocs cresting the rise. By now the several of the honor guard\
were rushing to your aid, but you weren't taking any chances. You gave the marshall your horse, and turned to\
meet the charging trollocs. The heavy lancers and trollocs clashed just paces in front of you. Seconds more\
and you would have surely died. After the battle, you were honored for your brave sacrifice."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_rediscovered_lost_weaves",[(this_or_next|eq, "$background_answer_3", cb_young_adulthood_accepted),
(eq, "$background_answer_3", cb_young_adulthood_active_wilder),
],"Rediscovered a lost weave.",[
(assign,"$background_answer_4",cb_crowning_achievement_rediscovered_lost_weaves),
(str_store_string,s13,"@Early on, you were marked as being a promising channeler.\
You were diligent in your studies, and never balked at working harder than everyone else. Even so,\
when you discovered a weave that allowed you to lift yourself, even your teachers were doubtful. Unfortunately,\
using the weave caused intense headaches for several hours, so you were advised to avoid it's use. You agreed\
but determined in your mind to continue researching those things which were thought to be impossible."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_became_wealthy_merchant",[(eq, "$background_answer_3", cb_young_adulthood_merchant)],"Became a wealthy merchant",[
(assign,"$background_answer_4",cb_crowning_achievement_became_wealthy_merchant),
(str_store_string,s13,"@Due to your ability to predict trade patterns and your superior\
management of logistics, you became one of the wealthiest merchants in Andor. Not many people knew it,\
but you were one of the ten wealthiest people in the land. You knew that gold had a voice of it's own, and\
were not afraid to use it. Securing your wealth, required employing a band of elite guards whose loyalty\
was without question."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_stole_laurel_crown",[(eq, "$background_type", cb_father_thief),
(eq, "$background_answer_3", cb_young_adulthood_smuggler),],"Stole the Laurel Crown.",[
(assign,"$background_answer_4",cb_crowning_achievement_stole_laurel_crown),
(str_store_string,s13,"@As a thief, your main worry was staying out of the noose.\
But, the thrill of the next big heist was always to much to pass by. At the top of the list, by far, was when\
you snuck into the palace in Illian. After several hours of shadowing guards, you made it to the King's chambers.\
There on his bedstand was the prize. The Laurel Crown. In the morning, the palace, and then the city was bustling.\
Guards searched for weeks, but eventually gave up. A month later, it was proclaimed that the crown had been found,\
but you and your friends knew that a replacement had been made. The pleasure of seeing the powers of Illian\
confounded was worth more that your weight in gold."),
(jump_to_menu,"mnu_choose_skill"),
]),
("achievement_traveled_to_shayol_ghul",[],"Traveled to Shayol Ghul.",[
(assign,"$background_answer_4",cb_crowning_achievement_traveled_to_shayol_ghul),
(str_store_string,s13,"@For reasons that are best kept quiet, you once traveled to\
the dark slopes of Shayol Ghul. There you had a most interesting experience. Secrets were revealed to you of\
how the Great Lord was planning to destroy the Light. The Myrddraal there were shown your face and told to be sure\
their trollocs did not hurt you. Except as punishment for betrayal of course. When you left the lands of the Blight,\
something about you had changed..."),
(jump_to_menu,"mnu_choose_skill"),
]),
("go_back",[],"Go back.",
[(jump_to_menu,"mnu_start_character_3"),
]
),
]
),
(
"choose_skill",mnf_disable_all_keys,
"{s13}",
"none",
[(assign,"$current_string_reg",10),
(assign, ":difficulty", 0),
(try_begin),
(eq, "$character_gender", tf_female),
(str_store_string, s14, "str_woman"),
(val_add, ":difficulty", 1),
(else_try),
(str_store_string, s14, "str_man"),
(try_end),
(try_begin),
(this_or_next|eq,"$background_answer_3",cb_young_adulthood_minor_noble),
(eq, "$background_answer_4", cb_crowning_achievement_noble_title),
(str_store_string, s15, "str_noble"),
(val_sub, ":difficulty", 1),
(else_try),
(str_store_string, s15, "str_common"),
(try_end),
(try_begin),
(eq, ":difficulty", -1),
(str_store_string, s16, "str_may_find_that_you_are_able_to_take_your_place_among_calradias_great_lords_relatively_quickly"),
(else_try),
(eq, ":difficulty", 0),
(str_store_string, s16, "str_may_face_some_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(else_try),
(eq, ":difficulty", 1),
(str_store_string, s16, "str_may_face_great_difficulties_establishing_yourself_as_an_equal_among_calradias_great_lords"),
(try_end),
],
[
## ("start_swordsman",[],"Swordsmanship.",[
## (assign, "$starting_skill", 1),
## (str_store_string, s14, "@You are particularly talented at swordsmanship."),
## (jump_to_menu,"mnu_past_life_explanation"),
## ]),
## ("start_archer",[],"Archery.",[
## (assign, "$starting_skill", 2),
## (str_store_string, s14, "@You are particularly talented at archery."),
## (jump_to_menu,"mnu_past_life_explanation"),
## ]),
## ("start_medicine",[],"Medicine.",[
## (assign, "$starting_skill", 3),
## (str_store_string, s14, "@You are particularly talented at medicine."),
## (jump_to_menu,"mnu_past_life_explanation"),
## ]),
("begin_adventuring",[],"Become an adventurer and ride to your destiny.",[
(set_show_messages, 0),
# new for TGS
(troop_set_slot, "trp_player", slot_troop_darkfriend_buff, 0),
# end
(try_begin),
(eq,"$character_gender",0), # male
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_add_item, "trp_player","itm_coarse_tunic",imod_battered),
(troop_raise_skill, "trp_player","skl_fire",1),
(troop_raise_skill, "trp_player","skl_earth",1),
(troop_raise_skill, "trp_player","skl_spirit",1),
(else_try),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_add_item, "trp_player","itm_woolen_dress",imod_battered),
(troop_raise_skill, "trp_player","skl_water",1),
(troop_raise_skill, "trp_player","skl_air",1),
(troop_raise_skill, "trp_player","skl_spirit",1),
(try_end),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_skill, "trp_player","skl_riding",1),
#######################################
(try_begin),
(eq,"$background_type",cb_father_lord),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_shield",1),
(troop_raise_skill, "trp_player","skl_trainer",2),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_persuasion",1),
(troop_raise_skill, "trp_player","skl_leadership",2),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_add_gold, "trp_player", 500),
(troop_set_slot, "trp_player", slot_troop_renown, 10),
(troop_add_item, "trp_player","itm_tab_shield_round_a",imod_battered),
(troop_add_item, "trp_player","itm_arabian_horse_a",0),
(call_script, "script_change_player_honor", 3),
###########
(else_try),
(eq,"$background_type",cb_father_warder),
(troop_raise_attribute, "trp_player",ca_strength,2),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_weapon_master",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,30),
(troop_raise_proficiency, "trp_player",wpt_polearm,15),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_raise_proficiency, "trp_player",wpt_firearm,5),
(troop_add_gold, "trp_player", 50),
(troop_set_slot, "trp_player", slot_troop_renown, 20),
(troop_add_item, "trp_player","itm_sword_two_handed_b",imod_battered),
(troop_add_item, "trp_player","itm_steppe_horse",0),
###########
(else_try),
(eq,"$background_type",cb_father_soldier),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_agility,2),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_shield",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_looting",1),
(troop_raise_skill, "trp_player","skl_tactics",1),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_prisoner_management",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,15),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 150),
(troop_set_slot, "trp_player", slot_troop_renown, 5),
(troop_add_item, "trp_player","itm_spear",0),
(troop_add_item, "trp_player","itm_tab_shield_round_a",imod_battered),
###########
(else_try),
(eq,"$background_type",cb_father_adventurer),
(troop_raise_attribute, "trp_player",ca_agility,2),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_throw",1),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_tracking",1),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,15),
(troop_add_gold, "trp_player", 50),
(troop_set_slot, "trp_player", slot_troop_renown, 1),
(troop_add_item, "trp_player","itm_hatchet",0),
(troop_add_item, "trp_player","itm_hunting_bow",imod_battered),
(troop_add_item, "trp_player","itm_arrows",0),
###########
(else_try),
(eq,"$background_type",cb_father_merchant),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,2),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_looting",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_persuasion",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_skill, "trp_player","skl_trade",2),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 400),
(troop_set_slot, "trp_player", slot_troop_renown, 10),
(troop_add_item, "trp_player","itm_saddle_horse",0),
(troop_add_item, "trp_player","itm_sword_medieval_a",0),
###########
(else_try),
(eq,"$background_type",cb_father_farmer),
(troop_raise_attribute, "trp_player",ca_strength,2),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_tracking",1),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_add_gold, "trp_player", 50),
(troop_set_slot, "trp_player", slot_troop_renown, 1),
(troop_add_item, "trp_player","itm_quarter_staff",0),
###########
(else_try),
(eq,"$background_type",cb_father_thief),
(troop_raise_attribute, "trp_player",ca_agility,2),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_power_throw",1),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_athletics",2),
(troop_raise_skill, "trp_player","skl_looting",2),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,15),
(troop_add_gold, "trp_player", 250),
(troop_set_slot, "trp_player", slot_troop_renown, 5),
(troop_add_item, "trp_player","itm_throwing_knives",0),
###########
(else_try),
(eq,"$background_type",cb_father_skilled_tradesman),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_surgery",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_engineer",2),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 250),
(troop_set_slot, "trp_player", slot_troop_renown, 10),
(troop_add_item, "trp_player","itm_iron_staff",0),
###########
(try_end),
###############################
(try_begin),
(eq,"$background_type_mother",cb_mother_lady),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,2),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_tactics",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_firearm,5),
(troop_add_gold, "trp_player", 500),
(call_script,"script_change_troop_renown", "trp_player", 10),
(troop_add_item, "trp_player","itm_dagger",0),
(troop_add_item, "trp_player","itm_velvet",0),
(troop_add_item, "trp_player","itm_sausages",0),
(else_try),
(eq,"$background_type_mother",cb_mother_aes_sedai),
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_weapon_master",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_persuasion",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_raise_proficiency, "trp_player",wpt_firearm,10),
(troop_add_gold, "trp_player", 300),
(call_script,"script_change_troop_renown", "trp_player", 20),
(troop_add_item, "trp_player","itm_blue_hose",0),
(troop_add_item, "trp_player","itm_saddle_horse",0),
(troop_add_item, "trp_player","itm_raw_grapes",0),
(troop_add_item, "trp_player","itm_raw_grapes",0),
(troop_add_item, "trp_player","itm_raw_grapes",0),
(troop_add_item, "trp_player","itm_raw_grapes",0),
(troop_add_item, "trp_player","itm_raw_grapes",0),
(else_try),
(eq,"$background_type_mother",cb_mother_house_wife),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 50),
(troop_add_item, "trp_player","itm_cudgel",0),
(troop_add_item, "trp_player","itm_bread",0),
(troop_add_item, "trp_player","itm_bread",0),
(else_try),
(eq,"$background_type_mother",cb_mother_womens_circle_member),
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_power_throw",1),
(troop_raise_skill, "trp_player","skl_tactics",1),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_raise_skill, "trp_player","skl_surgery",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 100),
(call_script,"script_change_troop_renown", "trp_player", 5),
(troop_add_item, "trp_player","itm_boar_spear",0),
(troop_add_item, "trp_player","itm_apples",0),
(else_try),
(eq,"$background_type_mother",cb_mother_innkeeper),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,2),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_looting",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_persuasion",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,20),
(troop_add_gold, "trp_player", 200),
(call_script,"script_change_troop_renown", "trp_player", 5),
(troop_add_item, "trp_player","itm_wine",0),
(troop_add_item, "trp_player","itm_grain",0),
(troop_add_item, "trp_player","itm_grain",0),
(troop_add_item, "trp_player","itm_grain",0),
(else_try),
(eq,"$background_type_mother",cb_mother_hunter_for_the_horn),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_gold, "trp_player", 100),
(call_script,"script_change_troop_renown", "trp_player", 10),
(troop_add_item, "trp_player","itm_bread",0),
(troop_add_item, "trp_player","itm_smoked_fish",0),
(else_try),
(eq,"$background_type_mother",cb_mother_whore),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_charisma,2),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_shield",1),
(troop_raise_skill, "trp_player","skl_looting",1),
(troop_raise_skill, "trp_player","skl_persuasion",2),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_add_gold, "trp_player", 100),
(troop_add_item, "trp_player","itm_cheese",0),
(troop_add_item, "trp_player","itm_dagger",0),
(else_try),
(eq,"$background_type_mother",cb_mother_seamstress),
(troop_raise_attribute, "trp_player",ca_agility,2),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_power_throw",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_engineer",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_add_gold, "trp_player", 150),
(troop_add_item, "trp_player","itm_blue_tunic",0),
(troop_add_item, "trp_player","itm_blue_dress",0),
(try_end),
#######################
(try_begin),
(eq,"$background_answer_2",cb_childhood_page),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_horse_archery",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_add_item, "trp_player","itm_sword_medieval_b",0),
(else_try),
(eq,"$background_answer_2",cb_childhood_lady_in_waiting),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_riding",1),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_persuasion",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_add_item, "trp_player","itm_dagger",0),
(troop_add_item, "trp_player","itm_linen",0),
(troop_add_item, "trp_player","itm_sausages",0),
(else_try),
(eq,"$background_answer_2",cb_childhood_novice),
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_tactics",1),
(troop_raise_skill, "trp_player","skl_surgery",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_raise_proficiency, "trp_player",wpt_firearm,10),
(troop_add_item, "trp_player","itm_dagger",0),
(troop_add_item, "trp_player","itm_power_player",0),
(troop_add_item, "trp_player","itm_novice_dress",0),
(troop_add_item, "trp_player","itm_novice_accepted_damane_shoes",0),
(troop_set_slot, "trp_player", slot_troop_player_knows_channeling, 1),
(troop_raise_skill, "trp_player","skl_fire",1),
(troop_raise_skill, "trp_player","skl_earth",1),
(troop_raise_skill, "trp_player","skl_spirit",1),
(troop_raise_skill, "trp_player","skl_water",1),
(troop_raise_skill, "trp_player","skl_air",1),
(troop_raise_skill, "trp_player","skl_channeling",1),
(else_try),
(eq,"$background_answer_2",cb_childhood_wilder),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_weapon_master",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_prisoner_management",1),
(troop_raise_proficiency, "trp_player",wpt_firearm,10),
(troop_add_item, "trp_player","itm_power_player",0),
(troop_add_item, "trp_player","itm_dagger",0),
(troop_set_slot, "trp_player", slot_troop_player_knows_channeling, 1),
(troop_raise_skill, "trp_player","skl_fire",1),
(troop_raise_skill, "trp_player","skl_earth",1),
(troop_raise_skill, "trp_player","skl_spirit",1),
(troop_raise_skill, "trp_player","skl_water",1),
(troop_raise_skill, "trp_player","skl_air",1),
(troop_raise_skill, "trp_player","skl_channeling",1),
(else_try),
(eq,"$background_answer_2",cb_childhood_hunter),
(troop_raise_attribute, "trp_player",ca_agility,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_draw",1),
(troop_raise_skill, "trp_player","skl_tracking",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_add_item, "trp_player","itm_short_bow",0),
(troop_add_item, "trp_player","itm_arrows",0),
(else_try),
(eq,"$background_answer_2",cb_childhood_farmer),
(troop_raise_attribute, "trp_player",ca_strength,2),
(troop_raise_skill, "trp_player","skl_ironflesh",1),
(troop_raise_skill, "trp_player","skl_power_strike",1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_inventory_management",1),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_add_item, "trp_player","itm_scythe",0),
(else_try),
(eq,"$background_answer_2",cb_childhood_apprentice),
(troop_raise_attribute, "trp_player",ca_strength,1),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_skill, "trp_player","skl_power_throw",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_engineer",2),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_add_item, "trp_player","itm_crossbow",0),
(troop_add_item, "trp_player","itm_bolts",0),
(troop_add_item, "trp_player","itm_tools",0),
(else_try),
(eq,"$background_answer_2",cb_childhood_village_wisdom_assistant),
(troop_raise_attribute, "trp_player",ca_intelligence,1),
(troop_raise_attribute, "trp_player",ca_charisma,1),
(troop_raise_skill, "trp_player","skl_athletics",1),
(troop_raise_skill, "trp_player","skl_trainer",1),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_add_item, "trp_player","itm_cudgel",0),
(try_end),
############################
(try_begin),
(eq,"$background_answer_3",cb_young_adulthood_minor_noble),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_polearm,20),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_add_item, "trp_player","itm_leather_boots",0),
(troop_add_item, "trp_player","itm_segmented_helmet",0),
(troop_add_item, "trp_player","itm_padded_leather",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_gleeman),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_archery,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,30),
(troop_add_item, "trp_player","itm_woolen_hose",0),
(troop_add_item, "trp_player","itm_linen_tunic",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_warder),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,30),
(troop_raise_proficiency, "trp_player",wpt_archery,20),
(troop_add_item, "trp_player","itm_leather_boots",0),
(troop_add_item, "trp_player","itm_nordic_helmet",0),
(troop_add_item, "trp_player","itm_studded_leather_coat",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_accepted),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_firearm,15),
(troop_add_item, "trp_player","itm_accepted_dress",0),
(troop_raise_skill, "trp_player","skl_spirit",1),
(troop_raise_skill, "trp_player","skl_channeling",1),
(store_random_in_range, ":random", 1, 3),
(try_begin),
(eq, ":random", 1),
(troop_raise_skill, "trp_player","skl_water",1),
(else_try),
(troop_raise_skill, "trp_player","skl_air",1),
(try_end),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_active_wilder),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,15),
(troop_raise_proficiency, "trp_player",wpt_firearm,15),
(troop_raise_skill, "trp_player","skl_channeling",2),
(store_random_in_range, ":random", 1, 3),
(try_begin),
(eq, "$character_gender", 0),
(try_begin),
(eq, ":random", 1),
(troop_raise_skill, "trp_player","skl_fire",1),
(else_try),
(troop_raise_skill, "trp_player","skl_earth",1),
(try_end),
(else_try),
(try_begin),
(eq, ":random", 1),
(troop_raise_skill, "trp_player","skl_water",1),
(else_try),
(troop_raise_skill, "trp_player","skl_air",1),
(try_end),
(try_end),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_merchant),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,15),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,15),
(troop_add_item, "trp_player","itm_leather_boots",0),
(troop_add_item, "trp_player","itm_leather_warrior_cap",0),
(troop_add_item, "trp_player","itm_merchant_outfit",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_village_wisdom),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,15),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_raise_skill, "trp_player","skl_wound_treatment",1),
(troop_raise_skill, "trp_player","skl_first_aid",1),
(troop_raise_skill, "trp_player","skl_surgery",1),
(troop_add_item, "trp_player","itm_woolen_hose",0),
(troop_add_item, "trp_player","itm_homespun_dress",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_smuggler),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,20),
(troop_raise_proficiency, "trp_player",wpt_archery,20),
(troop_raise_proficiency, "trp_player",wpt_throwing,10),
(troop_add_item, "trp_player","itm_leather_jacket",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_merchant_guard),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,15),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_crossbow,15),
(troop_add_item, "trp_player","itm_leather_boots",0),
(troop_add_item, "trp_player","itm_skullcap",0),
(troop_add_item, "trp_player","itm_padded_leather",0),
(else_try),
(eq,"$background_answer_3",cb_young_adulthood_hunter_for_the_horn),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,10),
(troop_raise_proficiency, "trp_player",wpt_polearm,10),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_crossbow,10),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_add_item, "trp_player","itm_leather_boots",0),
(troop_add_item, "trp_player","itm_leather_jacket",0),
(try_end),
####################################
(try_begin),
(eq,"$background_answer_4",cb_crowning_achievement_noble_title),
(troop_raise_skill, "trp_player","skl_leadership",1),
(troop_add_gold, "trp_player", 500),
(call_script,"script_change_troop_renown", "trp_player", 20),
(troop_add_item, "trp_player","itm_tab_shield_round_d",0),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_captured_a_false_dragon),
(troop_raise_skill, "trp_player","skl_prisoner_management",1),
(troop_add_gold, "trp_player", 50),
(call_script,"script_change_troop_renown", "trp_player", 200),
(troop_add_item, "trp_player","itm_courtly_outfit",0),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_mastered_the_flame_and_void),
(troop_raise_skill, "trp_player","skl_weapon_master",1),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,30),
(call_script,"script_change_troop_renown", "trp_player", 20),
(troop_add_item, "trp_player","itm_khergit_sword_two_handed_a",0),
(store_attribute_level, ":strength", "trp_player", ca_strength),
(try_begin),
(lt, ":strength", 10),
(store_sub, ":difference", 10, ":strength"),
(troop_raise_attribute, "trp_player", ca_strength, ":difference"), # make sure they can use the two handed blade the are getting
(try_end),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_survived_journey_across_aiel_waste),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(call_script,"script_change_troop_renown", "trp_player", 50),
(troop_add_item, "trp_player","itm_aiel_spear",0),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_learned_to_speak_to_wolves),
(troop_raise_skill, "trp_player","skl_tracking",1),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_skill, "trp_player","skl_spotting",1),
(troop_add_item, "trp_player","itm_hammer",0),
(troop_add_item, "trp_player","itm_two_rivers_armor",0),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_saved_lord_at_tarwins_gap),
(troop_raise_skill, "trp_player","skl_riding",2),
(troop_raise_skill, "trp_player","skl_horse_archery",1),
(troop_add_gold, "trp_player", 100),
(call_script,"script_change_troop_renown", "trp_player", 100),
(troop_add_item, "trp_player","itm_courser",0),
(troop_add_item, "trp_player","itm_light_lance",0),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_rediscovered_lost_weaves),
(troop_raise_attribute, "trp_player",ca_intelligence,2),
(troop_raise_proficiency, "trp_player",wpt_firearm,10),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_became_wealthy_merchant),
(troop_raise_skill, "trp_player","skl_trade",1),
(troop_add_gold, "trp_player", 1000),
(call_script,"script_change_troop_renown", "trp_player", 50),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_stole_laurel_crown),
(troop_raise_skill, "trp_player","skl_looting",2),
(troop_add_gold, "trp_player", 300),
(call_script,"script_change_troop_renown", "trp_player", 100),
(else_try),
(eq,"$background_answer_4",cb_crowning_achievement_traveled_to_shayol_ghul),
(troop_raise_skill, "trp_player","skl_pathfinding",1),
(troop_raise_proficiency, "trp_player",wpt_one_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_two_handed_weapon,5),
(troop_raise_proficiency, "trp_player",wpt_polearm,5),
(troop_raise_proficiency, "trp_player",wpt_archery,5),
(troop_raise_proficiency, "trp_player",wpt_crossbow,5),
(troop_raise_proficiency, "trp_player",wpt_throwing,5),
(troop_raise_proficiency, "trp_player",wpt_firearm,5),
(troop_set_slot, "trp_player", slot_troop_darkfriend_buff, 1),
(try_end),
(try_begin),
(this_or_next|eq, "$background_type", cb_father_lord),
(this_or_next|eq, "$background_type_mother", cb_mother_lady),
(this_or_next|eq, "$background_answer_3", cb_young_adulthood_minor_noble),
(eq, "$background_answer_4", cb_crowning_achievement_noble_title),
(jump_to_menu, "mnu_auto_return"),
#normal_banner_begin
(start_presentation, "prsnt_banner_selection"),
#custom_banner_begin
# (start_presentation, "prsnt_custom_banner"),
(else_try),
(change_screen_return, 0),
(try_end),
(set_show_messages, 1),
]),
("go_back_dot",[],"Go back.",[
(jump_to_menu,"mnu_start_character_4"),
]),
]
),
########################################################
######## End Edited Character Creation for TGS
########################################################
(
"past_life_explanation",mnf_disable_all_keys,
"{s3}",
"none",
[
(try_begin),
(gt,"$current_string_reg",14),
(assign,"$current_string_reg",10),
(try_end),
(str_store_string_reg,s3,"$current_string_reg"),
(try_begin),
(ge,"$current_string_reg",14),
(str_store_string,s5,"@Back to the beginning..."),
(else_try),
(str_store_string,s5,"@View next segment..."),
(try_end),
],
[
("view_next",[],"{s5}",[
(val_add,"$current_string_reg",1),
(jump_to_menu, "mnu_past_life_explanation"),
]),
("continue",[],"Continue...",
[
]),
("go_back_dot",[],"Go back.",[
(jump_to_menu, "mnu_choose_skill"),
]),
]
),
(
"auto_return",0,
"{!}This menu automatically returns to caller.",
"none",
[(change_screen_return, 0)],
[
]
),
("morale_report",0,
"{s1}",
"none",
[
(call_script, "script_get_player_party_morale_values"),
#(party_set_morale, "p_main_party", reg0),
(assign, ":target_morale", reg0),
(assign, reg1, "$g_player_party_morale_modifier_party_size"),
(try_begin),
(gt, reg1, 0),
(str_store_string, s2, "@{!} -"),
(else_try),
(str_store_string, s2, "str_space"),
(try_end),
(assign, reg2, "$g_player_party_morale_modifier_leadership"),
(try_begin),
(gt, reg2, 0),
(str_store_string, s3, "@{!} +"),
(else_try),
(str_store_string, s3, "str_space"),
(try_end),
(try_begin),
(gt, "$g_player_party_morale_modifier_no_food", 0),
(assign, reg7, "$g_player_party_morale_modifier_no_food"),
(str_store_string, s5, "@^No food: -{reg7}"),
(else_try),
(str_store_string, s5, "str_space"),
(try_end),
(assign, reg3, "$g_player_party_morale_modifier_food"),
(try_begin),
(gt, reg3, 0),
(str_store_string, s4, "@{!} +"),
(else_try),
(str_store_string, s4, "str_space"),
(try_end),
(try_begin),
(gt, "$g_player_party_morale_modifier_debt", 0),
(assign, reg6, "$g_player_party_morale_modifier_debt"),
(str_store_string, s6, "@^Wage debt: -{reg6}"),
(else_try),
(str_store_string, s6, "str_space"),
(try_end),
(party_get_morale, reg5, "p_main_party"),
(store_sub, reg4, reg5, ":target_morale"),
(try_begin),
(gt, reg4, 0),
(str_store_string, s7, "@{!} +"),
(else_try),
(str_store_string, s7, "str_space"),
(try_end),
(assign, reg6, 50),
(str_store_string, s1, "str_current_party_morale_is_reg5_current_party_morale_modifiers_are__base_morale__50_party_size_s2reg1_leadership_s3reg2_food_variety_s4reg3s5s6_recent_events_s7reg4_total__reg5___"),
(try_for_range, ":kingdom_no", npc_kingdoms_begin, npc_kingdoms_end),
(faction_get_slot, ":faction_morale", ":kingdom_no", slot_faction_morale_of_player_troops),
(val_div, ":faction_morale", 100),
(neq, ":faction_morale", 0),
(assign, reg6, ":faction_morale"),
(str_store_faction_name, s9, ":kingdom_no"),
(str_store_string, s1, "str_s1extra_morale_for_s9_troops__reg6_"),
(try_end),
],
[
("continue",[],"Continue...",
[
(jump_to_menu, "mnu_reports"),
]),
]
),
("courtship_relations",0,
"{s1}",
"none",
[(str_store_string, s1, "str_courtships_in_progress_"),
(try_for_range, ":lady", kingdom_ladies_begin, kingdom_ladies_end),
(troop_slot_eq, ":lady", slot_troop_met, 2),
(call_script, "script_troop_get_relation_with_troop", "trp_player", ":lady"),
(gt, reg0, 0),
(assign, reg3, reg0),
(str_store_troop_name, s2, ":lady"),
(store_current_hours, ":hours_since_last_visit"),
(troop_get_slot, ":last_visit_hour", ":lady", slot_troop_last_talk_time),
(val_sub, ":hours_since_last_visit", ":last_visit_hour"),
(store_div, ":days_since_last_visit", ":hours_since_last_visit", 24),
(assign, reg4, ":days_since_last_visit"),
(str_store_string, s1, "str_s1_s2_relation_reg3_last_visit_reg4_days_ago"),
(try_end),
(str_store_string, s1, "str_s1__poems_known"),
(try_begin),
(gt, "$allegoric_poem_recitations", 0),
(str_store_string, s1, "str_s1_storming_the_castle_of_love_allegoric"),
(try_end),
(try_begin),
(gt, "$tragic_poem_recitations", 0),
(str_store_string, s1, "str_s1_kais_and_layali_tragic"),
(try_end),
(try_begin),
(gt, "$comic_poem_recitations", 0),
(str_store_string, s1, "str_s1_a_conversation_in_the_garden_comic"),
(try_end),
(try_begin),
(gt, "$heroic_poem_recitations", 0),
(str_store_string, s1, "str_s1_helgered_and_kara_epic"),
(try_end),
(try_begin),
(gt, "$mystic_poem_recitations", 0),
(str_store_string, s1, "str_s1_a_hearts_desire_mystic"),
(try_end),
],
[
("continue",[],"Continue...",
[(jump_to_menu, "mnu_reports"),
]
),
]
),
("lord_relations",0,
"{s1}",
"none",
[
##diplomacy start+
#Avoid unnecessary iterations, since below we only use slto_kingdom_hero troops.
(assign, ":met_lord_count", 0),
#Add support for promoted kingdom ladies.
#(try_for_range, ":active_npc", active_npcs_begin, active_npcs_end),
(try_for_range, ":active_npc", heroes_begin, heroes_end),
(troop_slot_eq, ":active_npc", slot_troop_occupation, slto_kingdom_hero),
(troop_slot_ge, ":active_npc", slot_troop_met, 1),
(val_add, ":met_lord_count", 1),
##diplomacy end+
(troop_set_slot, ":active_npc", slot_troop_temp_slot, 0),
(try_end),
(str_clear, s1),
##diplomacy start+
#Add support for promoted kingdom ladies.
#(try_for_range, ":unused", active_npcs_begin, active_npcs_end),#<- changed
#We counted the number of heroes, so we can cut down on the number of
#iterations (since expanding this from active_npcs to heroes means that
#a lot of them will not be lords).
(try_for_range, ":unused", 0, ":met_lord_count"),#<- added
(assign, ":score_to_beat", -100),
(assign, ":best_relation_remaining_npc", -1),
#Add support for promoted kingdom ladies
#(try_for_range, ":active_npc", active_npcs_begin, active_npcs_end),#<-changed
(try_for_range, ":active_npc", heroes_begin, heroes_end),#<-added
##diplomacy end+
(troop_slot_eq, ":active_npc", slot_troop_temp_slot, 0),
(troop_slot_eq, ":active_npc", slot_troop_occupation, slto_kingdom_hero),
(troop_slot_ge, ":active_npc", slot_troop_met, 1),
(call_script, "script_troop_get_player_relation", ":active_npc"),
(assign, ":relation_with_player", reg0),
(ge, ":relation_with_player", ":score_to_beat"),
(assign, ":score_to_beat", ":relation_with_player"),
(assign, ":best_relation_remaining_npc", ":active_npc"),
(try_end),
(gt, ":best_relation_remaining_npc", -1),
(str_store_troop_name_link, s4, ":best_relation_remaining_npc"),
(assign, reg4, ":score_to_beat"),
(str_store_string, s1, "@{!}{s1}^{s4}: {reg4}"),
(troop_set_slot, ":best_relation_remaining_npc", slot_troop_temp_slot, 1),
(try_end),
],
[
("continue",[],"Continue...",
[(jump_to_menu, "mnu_reports"),
]
),
]
),
("companion_report",0,
"{s7}{s1}",
"none",
[
(str_clear, s1),
(str_store_string, s7, "str_no_companions_in_service"),
(try_begin),
(troop_get_slot, ":spouse_or_betrothed", "trp_player", slot_troop_spouse),
(try_begin),
##diplomacy start+ Test gender with script
#(troop_get_type, ":is_female", "trp_player"),#<- replaced
(call_script, "script_cf_dplmc_troop_is_female", "trp_player"),
#(eq, ":is_female", 1),#<- replaced
##diplomacy end+
(str_store_string, s8, "str_husband"),
(else_try),
(str_store_string, s8, "str_wife"),
(try_end),
(try_begin),
(le, ":spouse_or_betrothed", 0),
(troop_get_slot, ":spouse_or_betrothed", "trp_player", slot_troop_betrothed),
(str_store_string, s8, "str_betrothed"),
(try_end),
(gt, ":spouse_or_betrothed", 0),
(str_store_troop_name, s4, ":spouse_or_betrothed"),
(troop_get_slot, ":cur_center", ":spouse_or_betrothed", slot_troop_cur_center),
(try_begin),
(is_between, ":cur_center", centers_begin, centers_end),
(str_store_party_name, s5, ":cur_center"),
(else_try),
(troop_slot_eq, ":spouse_or_betrothed", slot_troop_occupation, slto_kingdom_hero),
(str_store_string, s5, "str_leading_party"),
(else_try),
(str_store_string, s5, "str_whereabouts_unknown"),
(try_end),
(str_store_string, s3, "str_s4_s8_s5"),
(str_store_string, s2, s1),
(str_store_string, s1, "str_s2_s3"),
(try_end),
(try_begin),
(ge, "$cheat_mode", 1),
(ge, "$npc_to_rejoin_party", 0),
(str_store_troop_name, s5, "$npc_to_rejoin_party"),
(str_store_string, s1, "@{!}DEBUG -- {s1}^NPC in rejoin queue: {s5}^"),
(try_end),
(try_for_range, ":companion", companions_begin, companions_end),
(str_clear, s2),
(str_clear, s3),
(try_begin),
(troop_get_slot, ":days_left", ":companion", slot_troop_days_on_mission),
(troop_slot_eq, ":companion", slot_troop_occupation, slto_player_companion),
(str_store_troop_name, s4, ":companion"),
(try_begin),
(troop_slot_eq, ":companion", slot_troop_current_mission, npc_mission_kingsupport),
(str_store_string, s8, "str_gathering_support"),
(try_begin),
(eq, ":days_left", 1),
(str_store_string, s5, "str_expected_back_imminently"),
(else_try),
(assign, reg3, ":days_left"),
(str_store_string, s5, "str_expected_back_in_approximately_reg3_days"),
(try_end),
(else_try),
(troop_slot_eq, ":companion", slot_troop_current_mission, npc_mission_gather_intel),
(troop_get_slot, ":town_with_contacts", ":companion", slot_troop_town_with_contacts),
(str_store_party_name, s11, ":town_with_contacts"),
(str_store_string, s8, "str_gathering_intelligence"),
(try_begin),
(eq, ":days_left", 1),
(str_store_string, s5, "str_expected_back_imminently"),
(else_try),
(assign, reg3, ":days_left"),
(str_store_string, s5, "str_expected_back_in_approximately_reg3_days"),
(try_end),
(else_try), #This covers most diplomatic missions
(troop_slot_ge, ":companion", slot_troop_current_mission, npc_mission_peace_request),
##diplomacy begin
(neg|troop_slot_eq, ":companion", slot_troop_current_mission, 8),
##diplomacy end
(troop_get_slot, ":faction", ":companion", slot_troop_mission_object),
(str_store_faction_name, s9, ":faction"),
(str_store_string, s8, "str_diplomatic_embassy_to_s9"),
(try_begin),
(eq, ":days_left", 1),
(str_store_string, s5, "str_expected_back_imminently"),
(else_try),
(assign, reg3, ":days_left"),
(str_store_string, s5, "str_expected_back_in_approximately_reg3_days"),
(try_end),
(else_try),
(eq, ":companion", "$g_player_minister"),
(str_store_string, s8, "str_serving_as_minister"),
(try_begin),
(is_between, "$g_player_court", centers_begin, centers_end),
(str_store_party_name, s9, "$g_player_court"),
(str_store_string, s5, "str_in_your_court_at_s9"),
(else_try),
(str_store_string, s5, "str_whereabouts_unknown"),
(try_end),
(else_try),
(main_party_has_troop, ":companion"),
(str_store_string, s8, "str_under_arms"),
(str_store_string, s5, "str_in_your_party"),
(else_try),
(troop_slot_eq, ":companion", slot_troop_current_mission, npc_mission_rejoin_when_possible),
(str_store_string, s8, "str_attempting_to_rejoin_party"),
(str_store_string, s5, "str_whereabouts_unknown"),
(else_try), #Companions who are in a center
(troop_slot_ge, ":companion", slot_troop_cur_center, 1),
(str_store_string, s8, "str_separated_from_party"),
(str_store_string, s5, "str_whereabouts_unknown"),
(else_try), #Excludes companions who have occupation = retirement
(troop_set_slot, ":companion", slot_troop_current_mission, npc_mission_rejoin_when_possible),
(str_store_string, s8, "str_attempting_to_rejoin_party"),
(str_store_string, s5, "str_whereabouts_unknown"),
(try_begin),
(ge, "$cheat_mode", 1),
(troop_get_slot, reg2, ":companion", slot_troop_current_mission),
(troop_get_slot, reg3, ":companion", slot_troop_days_on_mission),
(troop_get_slot, reg4, ":companion", slot_troop_prisoner_of_party),
(troop_get_slot, reg4, ":companion", slot_troop_playerparty_history),
(display_message, "@{!}DEBUG: {s4} current mission: {reg2}, days on mission: {reg3}, prisoner: {reg4}, pphistory: {reg5}"),
(try_end),
(try_end),
(str_store_string, s3, "str_s4_s8_s5"),
(str_store_string, s2, s1),
(str_store_string, s1, "str_s2_s3"),
(str_clear, s7), #"no companions in service"
(else_try),
(neg|troop_slot_eq, ":companion", slot_troop_occupation, slto_kingdom_hero),
(troop_slot_ge, ":companion", slot_troop_prisoner_of_party, centers_begin),
(str_store_troop_name, s4, ":companion"),
(str_store_string, s8, "str_missing_after_battle"),
(str_store_string, s5, "str_whereabouts_unknown"),
(str_store_string, s3, "str_s4_s8_s5"),
(str_store_string, s2, s1),
(str_store_string, s1, "str_s2_s3"),
(str_clear, s7), #"no companions in service"
(try_end),
(try_end),
],
[
("continue",[],"Continue...",
[(jump_to_menu, "mnu_reports"),
]
),
]
),
("faction_orders",0,
"{!}{s9}",
"none",
[
(str_clear, s9),
(store_current_hours, ":cur_hours"),
(try_for_range, ":faction_no", kingdoms_begin, kingdoms_end),
(faction_slot_eq, ":faction_no", slot_faction_state, sfs_active),
(neq, ":faction_no", "fac_player_supporters_faction"),
(faction_get_slot, ":old_faction_ai_state", ":faction_no", slot_faction_ai_state),
(try_begin),
(faction_get_slot, ":faction_marshal", ":faction_no", slot_faction_marshall),
(gt, ":faction_marshal", -1),
(assign, ":faction_ai_decider", ":faction_marshal"),
(else_try),
(faction_get_slot, ":faction_ai_decider", ":faction_no", slot_faction_leader),
(try_end),
#(*1) these two lines moved to here from (*2)
(call_script, "script_npc_decision_checklist_faction_ai_alt", ":faction_ai_decider"),
(assign, ":new_strategy", reg0),
(str_store_string, s26, s14),
#(3*) these three lines moved to here from (*4)
(faction_get_slot, ":faction_ai_state", ":faction_no", slot_faction_ai_state),
(faction_get_slot, ":faction_ai_object", ":faction_no", slot_faction_ai_object),
(faction_get_slot, ":faction_marshall", ":faction_no", slot_faction_marshall),
(faction_get_slot, ":faction_ai_offensive_max_followers", ":faction_no", slot_faction_ai_offensive_max_followers),
(str_store_faction_name, s10, ":faction_no"),
(try_begin),
(faction_get_slot, ":faction_issue", ":faction_no", slot_faction_political_issue),
(try_begin),
(eq, ":faction_issue", 1),
(str_store_string, s11, "@Appoint next marshal"),
(else_try),
(is_between, ":faction_issue", centers_begin, centers_end),
(str_store_party_name, s12, ":faction_issue"),
(str_store_string, s11, "@Award {s12} as fief"),
(else_try),
(eq, ":faction_issue", 0),
(str_store_string, s11, "@None"),
(else_try),
(assign, reg3, ":faction_issue"),
(str_store_string, s11, "@{!}Error ({reg3})"),
(try_end),
(store_current_hours, reg4),
(faction_get_slot, ":faction_issue_put_on_agenda", ":faction_no", slot_faction_political_issue_time),
(val_sub, reg4, ":faction_issue_put_on_agenda"),
(str_store_string, s10, "@{!}{s10}^Faction political issue: {s11}"),
(try_begin),
(faction_slot_ge, ":faction_no", slot_faction_political_issue, 1),
(str_store_string, s10, "@{!}{s10} (on agenda {reg4} hours)"),
(try_end),
(try_end),
(assign, reg2, ":faction_ai_offensive_max_followers"),
(try_begin),
(eq, ":faction_ai_state", sfai_default),
(str_store_string, s11, "@{!}Defending"),
(else_try),
(eq, ":faction_ai_state", sfai_gathering_army),
(str_store_string, s11, "@{!}Gathering army"),
(else_try),
(eq, ":faction_ai_state", sfai_attacking_center),
(str_store_party_name, s11, ":faction_ai_object"),
(str_store_string, s11, "@{!}Besieging {s11}"),
(else_try),
(eq, ":faction_ai_state", sfai_raiding_village),
(str_store_party_name, s11, ":faction_ai_object"),
(str_store_string, s11, "@{!}Raiding {s11}"),
(else_try),
(eq, ":faction_ai_state", sfai_attacking_enemy_army),
(str_store_party_name, s11, ":faction_ai_object"),
(str_store_string, s11, "str_attacking_enemy_army_near_s11"),
(else_try),
(eq, ":faction_ai_state", sfai_feast),
(str_store_party_name, s11, ":faction_ai_object"),
(str_store_string, s11, "str_holding_feast_at_s11"),
(else_try),
(eq, ":faction_ai_state", sfai_attacking_enemies_around_center),
(str_store_party_name, s11, ":faction_ai_object"),
(str_store_string, s11, "@{!}Attacking enemies around {s11}"),
(else_try),
(assign, reg4, ":faction_ai_state"),
(str_store_string, s11, "str_sfai_reg4"),
(try_end),
(try_begin),
(lt, ":faction_marshall", 0),
(str_store_string, s12, "@No one"),
(else_try),
(str_store_troop_name, s12, ":faction_marshall"),
(troop_get_slot, reg21, ":faction_marshall", slot_troop_controversy),
(str_store_string, s12, "@{!}{s12} (controversy: {reg21})"),
(try_end),
(try_for_parties, ":screen_party"),
(party_slot_eq, ":screen_party", slot_party_ai_state, spai_screening_army),
(store_faction_of_party, ":screen_party_faction", ":screen_party"),
(eq, ":screen_party_faction", ":faction_no"),
(str_store_party_name, s38, ":screen_party"),
(str_store_string, s12, "@{!}{s12}^Screening party: {s38}"),
(try_end),
#(*2) these two lines moved to up (look *1)
#(call_script, "script_npc_decision_checklist_faction_ai", ":faction_no"),
#(assign, ":new_strategy", reg0),
#(try_begin),
# (this_or_next|eq, ":new_strategy", sfai_default),
# (eq, ":new_strategy", sfai_feast),
#
# (store_current_hours, ":hours"),
# (faction_set_slot, ":faction_no", slot_faction_ai_last_rest_time, ":hours"),
#(try_end),
(try_begin),
#new condition to rest, (a faction's new strategy should be feast or default) and (":hours_at_current_state" > 20)
(this_or_next|eq, ":new_strategy", sfai_default),
(eq, ":new_strategy", sfai_feast),
(store_current_hours, ":hours_at_current_state"),
(faction_get_slot, ":current_state_started", ":faction_no", slot_faction_ai_current_state_started),
(val_sub, ":hours_at_current_state", ":current_state_started"),
(ge, ":hours_at_current_state", 18),
(store_current_hours, ":hours"),
(faction_set_slot, ":faction_no", slot_faction_ai_last_rest_time, ":hours"),
(try_end),
#Change of strategy
(try_begin),
(neq, ":new_strategy", ":old_faction_ai_state"),
(store_current_hours, ":hours"),
(faction_set_slot, ":faction_no", slot_faction_ai_current_state_started, ":hours"),
(try_end),
(call_script, "script_evaluate_realm_stability", ":faction_no"),
(assign, ":disgruntled_lords", reg0),
(assign, ":restless_lords", reg1),
(faction_get_slot, ":last_feast_ended", ":faction_no", slot_faction_last_feast_start_time),
(store_sub, ":hours_since_last_feast", ":cur_hours", ":last_feast_ended"),
(val_sub, ":hours_since_last_feast", 72),
(faction_get_slot, ":current_state_started", ":faction_no", slot_faction_ai_current_state_started),
(store_sub, ":hours_at_current_state", ":cur_hours", ":current_state_started"),
(faction_get_slot, ":faction_ai_last_offensive_time", ":faction_no", slot_faction_last_offensive_concluded),
(store_sub, ":hours_since_last_offensive", ":cur_hours", ":faction_ai_last_offensive_time"),
(faction_get_slot, ":faction_ai_last_rest", ":faction_no", slot_faction_ai_last_rest_time),
(store_sub, ":hours_since_last_rest", ":cur_hours", ":faction_ai_last_rest"),
(faction_get_slot, ":faction_ai_last_decisive_event", ":faction_no", slot_faction_ai_last_decisive_event),
(store_sub, ":hours_since_last_decisive_event", ":cur_hours", ":faction_ai_last_decisive_event"),
(assign, reg3, ":hours_at_current_state"),
(assign, reg4, ":hours_since_last_offensive"),
(assign, reg5, ":hours_since_last_feast"),
(assign, reg7, ":disgruntled_lords"),
(assign, reg8, ":restless_lords"),
(assign, reg9, ":hours_since_last_rest"),
(assign, reg10, ":hours_since_last_decisive_event"),
(str_store_string, s14, s26),
(str_store_string, s9, "str_s9s10_current_state_s11_hours_at_current_state_reg3_current_strategic_thinking_s14_marshall_s12_since_the_last_offensive_ended_reg4_hours_since_the_decisive_event_reg10_hours_since_the_last_rest_reg9_hours_since_the_last_feast_ended_reg5_hours_percent_disgruntled_lords_reg7_percent_restless_lords_reg8__"),
(try_end),
(try_begin),
(neg|is_between, "$g_cheat_selected_faction", kingdoms_begin, kingdoms_end),
(call_script, "script_get_next_active_kingdom", kingdoms_end),
(assign, "$g_cheat_selected_faction", reg0),
(try_end),
(str_store_faction_name, s10, "$g_cheat_selected_faction"),
(str_store_string, s9, "@Selected faction is: {s10}^^{s9}"),
],
[
("faction_orders_next_faction", [],"{!}Select next faction.",
[
(call_script, "script_get_next_active_kingdom", "$g_cheat_selected_faction"),
(assign, "$g_cheat_selected_faction", reg0),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_political_collapse", [],"{!}CHEAT - Cause all lords in faction to fall out with their liege.",
[
(try_for_range, ":lord", active_npcs_begin, active_npcs_end),
(troop_slot_eq, ":lord", slot_troop_occupation, slto_kingdom_hero),
(store_faction_of_troop, ":troop_faction", ":lord"),
(eq, ":troop_faction", "$g_cheat_selected_faction"),
(faction_get_slot, ":faction_liege", ":troop_faction", slot_faction_leader),
(call_script, "script_troop_change_relation_with_troop", ":lord", ":faction_liege", -200),
(try_end),
]
),
("faction_orders_defend", [],"{!}Force defend.",
[
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_state, sfai_default),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_object, -1),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_feast", [],"{!}Force feast.",
[
(assign, ":location_high_score", 0),
(try_for_range, ":location", walled_centers_begin, walled_centers_end),
(neg|party_slot_ge, ":location", slot_center_is_besieged_by, 1),
(store_faction_of_party, ":location_faction", ":location"),
(eq, ":location_faction", "$g_cheat_selected_faction"),
(party_get_slot, ":location_lord", ":location", slot_town_lord),
(troop_get_slot, ":location_score", ":location_lord", slot_troop_renown),
(store_random_in_range, ":random", 0, 1000), #will probably be king or senior lord
(val_add, ":location_score", ":random"),
(gt, ":location_score", ":location_high_score"),
(assign, ":location_high_score", ":location_score"),
(assign, ":location_feast", ":location"),
(try_end),
(try_begin),
(gt, ":location_feast", centers_begin),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_state, sfai_feast),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_object, ":location_feast"),
(try_begin),
(eq, "$g_player_eligible_feast_center_no", ":location_feast"),
(assign, "$g_player_eligible_feast_center_no", -1),
(try_end),
(store_current_hours, ":hours"),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_last_feast_start_time, ":hours"),
(try_end),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_gather", [],"{!}Force gather army.",
[
(store_current_hours, ":cur_hours"),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_state, sfai_gathering_army),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_last_offensive_concluded, ":cur_hours"),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_offensive_max_followers, 1),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_ai_object, -1),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_increase_time", [],"{!}Increase last offensive time by 24 hours.",
[
(faction_get_slot, ":faction_ai_last_offensive_time", "$g_cheat_selected_faction", slot_faction_last_offensive_concluded),
(val_sub, ":faction_ai_last_offensive_time", 24),
(faction_set_slot, "$g_cheat_selected_faction", slot_faction_last_offensive_concluded, ":faction_ai_last_offensive_time"),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_rethink", [],"{!}Force rethink.",
[
(call_script, "script_init_ai_calculation"),
(call_script, "script_decide_faction_ai", "$g_cheat_selected_faction"),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_rethink_all", [],"{!}Force rethink for all factions.",
[
(call_script, "script_recalculate_ais"),
(jump_to_menu, "mnu_faction_orders"),
]
),
("enable_alt_ai",[(eq, "$g_use_alternative_ai", 2),],"{!}CHEAT! - enable alternative ai",
[
(assign, "$g_use_alternative_ai", 1),
(jump_to_menu, "mnu_faction_orders"),
]
),
("disable_alt_ai",[(eq, "$g_use_alternative_ai", 2)],"{!}CHEAT! - disable alternative ai",
[
(assign, "$g_use_alternative_ai", 0),
(jump_to_menu, "mnu_faction_orders"),
]
),
("faction_orders_init_econ", [],"{!}Initialize economic stats.",
[
(call_script, "script_initialize_economic_information"),
(jump_to_menu, "mnu_faction_orders"),
]
),
("go_back_dot",[],"{!}Go back.",
[(jump_to_menu, "mnu_reports"),
]
),
]
),
("character_report",0,
"{s9}",
"none",
[(try_begin),
(gt, "$g_player_reading_book", 0),
(player_has_item, "$g_player_reading_book"),
(str_store_item_name, s8, "$g_player_reading_book"),
(str_store_string, s9, "@You are currently reading {s8}."),
(else_try),
(assign, "$g_player_reading_book", 0),
(str_store_string, s9, "@You are not reading any books."),
(try_end),
(assign, ":num_friends", 0),
(assign, ":num_enemies", 0),
(str_store_string, s6,