jik
Knight
ok, so I have been having this problem with the music, now it seems that my mission end trigger is miss firing... Here it is:
pretty simple. Now the oddest thing. It worked fine before, but all of a sudden, when I finish the mission (all the zombies are dead and the player is still alive) the 2 scripts (search_find and search_end) run, but it seems that the game then jumps to the player_defeat menu. No too sure how this can be happening... could it be something with the menus:
It specifically goes to the defeat menu at the bottom. I'm confused...
###Round Ending Trigger
(10, 0, ti_once,
[
(ge,"$zombies_spawned","$max_zombies"), ##Make sure the mission has started
(this_or_next|main_hero_fallen),
(num_active_teams_le, 1),
],
[
(try_begin),
(neg|main_hero_fallen), ##You have defeated this wave of zombies!
(assign,reg23,"$searched"),
(call_script,"script_cf_search_find"), ##works out what serachers found
(call_script,"script_cf_search_end",), ##calculates XP for fighters
(jump_to_menu,"mnu_search_more"),
(finish_mission),
(else_try), ##You have fallen in battle...
(dialog_box,"@The Zombies have overcome your party...","@Player Defeated"),
(jump_to_menu,"mnu_player_defeat"),
(finish_mission),
(try_end),
]
),
(10, 0, ti_once,
[
(ge,"$zombies_spawned","$max_zombies"), ##Make sure the mission has started
(this_or_next|main_hero_fallen),
(num_active_teams_le, 1),
],
[
(try_begin),
(neg|main_hero_fallen), ##You have defeated this wave of zombies!
(assign,reg23,"$searched"),
(call_script,"script_cf_search_find"), ##works out what serachers found
(call_script,"script_cf_search_end",), ##calculates XP for fighters
(jump_to_menu,"mnu_search_more"),
(finish_mission),
(else_try), ##You have fallen in battle...
(dialog_box,"@The Zombies have overcome your party...","@Player Defeated"),
(jump_to_menu,"mnu_player_defeat"),
(finish_mission),
(try_end),
]
),
pretty simple. Now the oddest thing. It worked fine before, but all of a sudden, when I finish the mission (all the zombies are dead and the player is still alive) the 2 scripts (search_find and search_end) run, but it seems that the game then jumps to the player_defeat menu. No too sure how this can be happening... could it be something with the menus:
("search_more",0,
###Use reg20,21 and 22 to store food, wood and steel found. Script it at the end of a successful mission
"After fighting off the mob of zombies, you contemplate how safe it is to keep searching.^You have gathered {reg20} food, {reg21} Wood, and {reg22} Steel!^You have currently searched for {reg23} hours.",
"none",[], ##Assign searched hours to reg23 at the successful end of the mission
[##option Choices
("search_1",[(stop_all_sounds,1)],"Search the city for an additional hour",
[
(set_jump_mission, "mt_city_zombies"),
(reset_visitors),
(modify_visitors_at_site, "scn_zombie_town"),
(set_visitor, 0, "trp_player"),
(call_script,"script_search_party","p_main_party",40), ##bring in up to 40 of the fighting type units into the fight
(jump_to_scene, "scn_zombie_town"),
(change_screen_mission),
]
),
("back",[(eq,1,1)],"Leave with your spoils.",
[
(change_screen_return),
]
),
]
),
("zombie_run",0,
"Unable to fight off the zombie onslaught, you and your men are chased from the city.^You soon loose the slow moving mob, but also any spoils you were gathering.","none",[],
[##option Choices
("back",[(eq,1,1)],"Back to the map.",
[
(change_screen_return),
]
),
]
),
("player_defeat",0,
"Unable to fight off the zombie onslaught, you and your men are overcome.^Maybe being a zombie won't be soo bad....^(Normally this would be the end...)","none",[],
[##option Choices
("back",[(eq,1,1)],"Back to the map.",
[
(change_screen_return),
]
),
]
),
###Use reg20,21 and 22 to store food, wood and steel found. Script it at the end of a successful mission
"After fighting off the mob of zombies, you contemplate how safe it is to keep searching.^You have gathered {reg20} food, {reg21} Wood, and {reg22} Steel!^You have currently searched for {reg23} hours.",
"none",[], ##Assign searched hours to reg23 at the successful end of the mission
[##option Choices
("search_1",[(stop_all_sounds,1)],"Search the city for an additional hour",
[
(set_jump_mission, "mt_city_zombies"),
(reset_visitors),
(modify_visitors_at_site, "scn_zombie_town"),
(set_visitor, 0, "trp_player"),
(call_script,"script_search_party","p_main_party",40), ##bring in up to 40 of the fighting type units into the fight
(jump_to_scene, "scn_zombie_town"),
(change_screen_mission),
]
),
("back",[(eq,1,1)],"Leave with your spoils.",
[
(change_screen_return),
]
),
]
),
("zombie_run",0,
"Unable to fight off the zombie onslaught, you and your men are chased from the city.^You soon loose the slow moving mob, but also any spoils you were gathering.","none",[],
[##option Choices
("back",[(eq,1,1)],"Back to the map.",
[
(change_screen_return),
]
),
]
),
("player_defeat",0,
"Unable to fight off the zombie onslaught, you and your men are overcome.^Maybe being a zombie won't be soo bad....^(Normally this would be the end...)","none",[],
[##option Choices
("back",[(eq,1,1)],"Back to the map.",
[
(change_screen_return),
]
),
]
),
It specifically goes to the defeat menu at the bottom. I'm confused...