Hey .
What am I doing wrong?
(WFAS MS)
CODE
Adding to the mission
Error
What am I doing wrong?
(WFAS MS)
CODE
Code:
breakable_lances_trigger = [(
ti_on_agent_hit, 0, 0, [],
[
(store_trigger_param_2, ":attacker"),
(store_trigger_param_3, ":damage"),
(assign, ":weapon", reg0),
(try_begin),
(gt, ":attacker", 0),
(agent_is_human, ":attacker"),
(gt, ":weapon", 0),
(gt, ":damage", 100),
(eq, ":weapon", "itm_great_lance"),
(agent_unequip_item,":attacker",":weapon"),
(agent_equip_item,":attacker","itm_great_lance_broken"),
(agent_set_wielded_item, ":attacker", "itm_great_lance_broken"),
(try_end),
])]
Adding to the mission
Code:
(56,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(57,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(58,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(59,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(60,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(61,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(62,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
(63,mtef_visitor_source|mtef_team_1,0,aif_start_alarmed,1,[]),
],
[
breakable_lances_trigger, <====== HERE
multiplayer_server_check_polls,
(ti_on_agent_spawn, 0, 0, [],
[
(store_trigger_param_1, ":agent_no"),
(call_script, "script_multiplayer_server_on_agent_spawn_common", ":agent_no"),
]),
(ti_server_player_joined, 0, 0, [],
[
(store_trigger_param_1, ":player_no"),
(call_script, "script_multiplayer_server_player_joined_common", ":player_no"),
]),
Error
Code:
Initializing...
Compiling all global variables...
Error in mission template:
('multiplayer_duel', 2, -1, 'You lead your men to battle.', [(0, 4112, 0, 16, 1, []), (1, 4112, 0, 16, 1, []), (2, 4112, 0, 16, 1, []), (3, 4112, 0, 16, 1, []), (4, 4112, 0, 16, 1, []), (5, 4112, 0, 16, 1, []), (6, 4112, 0, 16, 1, []), (7, 4112, 0, 16, 1, []), (8, 4112, 0, 16, 1, []), (9, 4112, 0, 16, 1, []), (10, 4112, 0, 16, 1, []), (11, 4112, 0, 16, 1, []), (12, 4112, 0, 16, 1, []), (13, 4112, 0, 16, 1, []), (14, 4112, 0, 16, 1, []), (15, 4112, 0, 16, 1, []), (16, 4112, 0, 16, 1, []), (17, 4112, 0, 16, 1, []), (18, 4112, 0, 16, 1, []), (19, 4112, 0, 16, 1, []), (20, 4112, 0, 16, 1, []), (21, 4112, 0, 16, 1, []), (22, 4112, 0, 16, 1, []), (23, 4112, 0, 16, 1, []), (24, 4112, 0, 16, 1, []), (25, 4112, 0, 16, 1, []), (26, 4112, 0, 16, 1, []), (27, 4112, 0, 16, 1, []), (28, 4112, 0, 16, 1, []), (29, 4112, 0, 16, 1, []), (30, 4112, 0, 16, 1, []), (31, 4112, 0, 16, 1, []), (32, 8208, 0, 16, 1, []), (33, 8208, 0, 16, 1, []), (34, 8208, 0, 16, 1, []), (35, 8208, 0, 16, 1, []), (36, 8208, 0, 16, 1, []), (37, 8208, 0, 16, 1, []), (38, 8208, 0, 16, 1, []), (39, 8208, 0, 16, 1, []), (40, 8208, 0, 16, 1, []), (41, 8208, 0, 16, 1, []), (42, 8208, 0, 16, 1, []), (43, 8208, 0, 16, 1, []), (44, 8208, 0, 16, 1, []), (45, 8208, 0, 16, 1, []), (46, 8208, 0, 16, 1, []), (47, 8208, 0, 16, 1, []), (48, 8208, 0, 16, 1, []), (49, 8208, 0, 16, 1, []), (50, 8208, 0, 16, 1, []), (51, 8208, 0, 16, 1, []), (52, 8208, 0, 16, 1, []), (53, 8208, 0, 16, 1, []), (54, 8208, 0, 16, 1, []), (55, 8208, 0, 16, 1, []), (56, 8208, 0, 16, 1, []), (57, 8208, 0, 16, 1, []), (58, 8208, 0, 16, 1, []), (59, 8208, 0, 16, 1, []), (60, 8208, 0, 16, 1, []), (61, 8208, 0, 16, 1, []), (62, 8208, 0, 16, 1, []), (63, 8208, 0, 16, 1, [])], [[(-28.0, 0, 0, [], [(2072, ':attacker'), (2073, ':damage'), (2133, ':weapon', 72057594037927936L), 4, (32, ':attacker', 0), (1704, ':attacker'), (32, ':weapon', 0), (32, ':damage', 100), (31, ':weapon', 'itm_great_lance'), (1774, ':attacker', ':weapon'), (1779, ':attacker', 'itm_great_lance_broken'), (1747, ':attacker', 'itm_great_lance_broken'), 3])], (1, 5, 0, [417, (31, '$g_multiplayer_poll_running', 1), (31, '$g_multiplayer_poll_ended', 0), (2370, ':mission_timer'), (2120, ':total_votes', '$g_multiplayer_poll_no_count', '$g_multiplayer_poll_yes_count'), (1073741855, ':total_votes', '$g_multiplayer_poll_num_sent'), (32, ':mission_timer', '$g_multiplayer_poll_end_time'), (1, 'script_cf_multiplayer_evaluate_poll')], [(2133, '$g_multiplayer_poll_running', 0), 4, (1073741855, '$g_multiplayer_poll_to_show', 0), (31, '$g_multiplayer_poll_to_show', 3), (1, 'script_game_multiplayer_get_game_type_mission_template', '$g_multiplayer_game_type'), (470, 72057594037927936L, '$g_multiplayer_poll_value_to_show', 1), (1, 'script_game_set_multiplayer_mission_end'), 3]), (-25.0, 0, 0, [], [(2071, ':agent_no'), (1, 'script_multiplayer_server_on_agent_spawn_common', ':agent_no')]), (-15.0, 0, 0, [], [(2071, ':player_no'), (1, 'script_multiplayer_server_player_joined_common', ':player_no')]), (-19.0, 0, 0, [], [(2133, '$g_multiplayer_game_type', 6), (1, 'script_multiplayer_server_before_mission_start_common'), (1796, 0, 0, 1), (1796, 0, 1, 1), (1796, 1, 1, 1), (2006, 1), (1, 'script_multiplayer_init_mission_variables'), (1, 'script_multiplayer_remove_destroy_mod_targets'), (1, 'script_multiplayer_remove_headquarters_flags')]), (-20.0, 0, 0, [], [(426, 0, -1), (426, 1, -1), (1, 'script_initialize_all_scene_prop_slots'), (1, 'script_multiplayer_move_moveable_objects_initial_positions'), (2133, '$g_multiplayer_ready_for_spawning_agent', 1)]), (-16.0, 0, 0, [], [(1, 'script_multiplayer_event_mission_end'), (2133, '$g_multiplayer_stats_chart_opened_manually', 0), (900, 'prsnt_multiplayer_stats_chart_deathmatch')]), (-26.0, 0, 0, [], [(2071, ':dead_agent_no'), (2072, ':killer_agent_no'), (1, 'script_multiplayer_server_on_agent_killed_or_wounded_common', ':dead_agent_no', ':killer_agent_no'), 4, (1700, ':player_agent'), (1712, ':player_agent'), (565, ':player_agent', 23, 0), 4, (31, ':dead_agent_no', ':player_agent'), (1106, 'str_you_have_lost_a_duel'), 5, (545, ':player_agent', 23, ':dead_agent_no'), (1106, 'str_you_have_won_a_duel'), 3, 3, 4, (565, ':dead_agent_no', 23, 0), (525, ':duelist_agent_no', ':dead_agent_no', 23), (505, ':dead_agent_no', 23, -1), 4, (1712, ':duelist_agent_no'), (505, ':duelist_agent_no', 23, -1), (1802, ':duelist_agent_no'), 4, (1724, ':duelist_player_no', ':duelist_agent_no'), (2147484049L, ':duelist_player_no'), (1732, ':duelist_agent_no'), 3, 3, 3]), (1, 0, 0, [], [417, (400, ':num_players'), (6, ':player_no', 0, ':num_players'), (401, ':player_no'), (2147484086L, ':player_no'), (402, ':player_team', ':player_no'), (2147483678L, ':player_team', 2), (404, ':player_troop', ':player_no'), (30, ':player_troop', 0), (406, ':player_agent', ':player_no'), (2133, ':spawn_new', 0), 4, (528, ':player_first_spawn', ':player_no', 24), (31, ':player_first_spawn', 1), (2133, ':spawn_new', 1), (508, ':player_no', 24, 0), 5, 4, (2147483678L, ':player_agent', 0), (2133, ':spawn_new', 1), 5, (2147485350L, ':player_agent'), (1760, ':elapsed_time', ':player_agent'), (32, ':elapsed_time', '$g_multiplayer_respawn_period'), (2133, ':spawn_new', 1), 3, 3, (31, ':spawn_new', 1), (1, 'script_multiplayer_buy_agent_equipment', ':player_no'), (1541, ':has_item', ':player_troop', 8), 4, (30, ':has_item', 0), (2133, ':is_horseman', 1), 5, (2133, ':is_horseman', 0), 3, (1, 'script_multiplayer_find_spawn_point', ':player_team', 0, ':is_horseman'), (409, ':player_no', 72057594037927936L), 3]), (1, 0, 0, [417, (1073741856, '$g_multiplayer_num_bots_team_1', 0), (32, '$g_multiplayer_num_bots_team_2', 0)], [(2370, ':mission_timer'), (30, ':mission_timer', 2), (2133, ':team_1_count', 0), (2133, ':team_2_count', 0), (12, ':cur_agent'), (1707, ':cur_agent'), (1704, ':cur_agent'), (2133, ':will_be_counted', 0), 4, (1702, ':cur_agent'), (2133, ':will_be_counted', 1), 5, (1760, ':elapsed_time', ':cur_agent'), (2147483680L, ':elapsed_time', '$g_multiplayer_respawn_period'), (2133, ':will_be_counted', 1), 3, (31, ':will_be_counted', 1), (1770, ':cur_team', ':cur_agent'), 4, (31, ':cur_team', 0), (2105, ':team_1_count', 1), 5, (31, ':cur_team', 1), (2105, ':team_2_count', 1), 3, 3, (2121, '$g_multiplayer_num_bots_required_team_1', '$g_multiplayer_num_bots_team_1', ':team_1_count'), (2121, '$g_multiplayer_num_bots_required_team_2', '$g_multiplayer_num_bots_team_2', ':team_2_count'), (2111, '$g_multiplayer_num_bots_required_team_1', 0), (2111, '$g_multiplayer_num_bots_required_team_2', 0)]), (0, 0, 0, [], [417, (31, '$g_multiplayer_ready_for_spawning_agent', 1), (2120, ':total_req', '$g_multiplayer_num_bots_required_team_1', '$g_multiplayer_num_bots_required_team_2'), 4, (32, ':total_req', 0), (2136, ':random_req', 0, ':total_req'), (2106, ':random_req', '$g_multiplayer_num_bots_required_team_1'), 4, (2147483678L, ':random_req', 0), (2133, ':selected_team', 0), (2106, '$g_multiplayer_num_bots_required_team_1', 1), 5, (2133, ':selected_team', 1), (2106, '$g_multiplayer_num_bots_required_team_2', 1), 3, (458, ':team_faction_no', ':selected_team'), (2133, ':available_troops_in_faction', 0), (6, ':troop_no', 'trp_swadian_crossbowman_multiplayer_ai', 'trp_swadian_crossbowman_multiplayer'), (2173, ':troop_faction', ':troop_no'), (31, ':troop_faction', ':team_faction_no'), (2105, ':available_troops_in_faction', 1), 3, (2136, ':random_troop_index', 0, ':available_troops_in_faction'), (2133, ':end_cond', 'trp_swadian_crossbowman_multiplayer'), (6, ':troop_no', 'trp_swadian_crossbowman_multiplayer_ai', ':end_cond'), (2173, ':troop_faction', ':troop_no'), (31, ':troop_faction', ':team_faction_no'), (2106, ':random_troop_index', 1), (2147483678L, ':random_troop_index', 0), (2133, ':end_cond', 0), (2133, ':selected_troop', ':troop_no'), 3, (1541, ':has_item', ':selected_troop', 8), 4, (30, ':has_item', 0), (2133, ':is_horseman', 1), 5, (2133, ':is_horseman', 0), 3, (1, 'script_multiplayer_find_spawn_point', ':selected_team', 0, ':is_horseman'), (2211, ':cur_scene'), (1261, ':cur_scene'), (1265, 72057594037927936L, ':selected_troop', 1, ':selected_team', -1), (2133, '$g_multiplayer_ready_for_spawning_agent', 0), 3]), (1, 0, 0, [], [417, (2133, ':end_map', 0), 4, (2370, ':mission_timer'), (2122, ':game_max_seconds', '$g_multiplayer_game_max_minutes', 60), (32, ':mission_timer', ':game_max_seconds'), (2133, ':end_map', 1), 3, 4, (31, ':end_map', 1), (1, 'script_game_multiplayer_get_game_type_mission_template', '$g_multiplayer_game_type'), (470, 72057594037927936L, '$g_multiplayer_selected_map', 0), (1, 'script_game_set_multiplayer_mission_end'), 3]), (-21.0, 0, 0, [], [4, (31, '$g_multiplayer_mission_end_screen', 0), (2133, '$g_multiplayer_stats_chart_opened_manually', 1), (900, 'prsnt_multiplayer_stats_chart_deathmatch'), 3]), (0, 0, 100000000.0, [], [(900, 'prsnt_multiplayer_welcome_message')]), (-23.0, 0, 0, [], [(2147484551L, 'prsnt_multiplayer_escape_menu'), (2147484551L, 'prsnt_multiplayer_stats_chart_deathmatch'), (31, '$g_waiting_for_confirmation_to_terminate', 0), (900, 'prsnt_multiplayer_escape_menu')]), (1, 0, 0, [], [(2370, ':mission_timer'), (2121, ':duel_start_time', ':mission_timer', 3), (12, ':cur_agent'), (565, ':cur_agent', 23, 0), (525, ':duel_time', ':cur_agent', 24), (30, ':duel_time', 0), (2147483680L, ':duel_time', ':duel_start_time'), (505, ':cur_agent', 24, -1), (525, ':opponent_agent', ':cur_agent', 23), (1712, ':opponent_agent'), (1803, ':cur_agent', ':opponent_agent', -1), (1732, ':cur_agent'), 3])])
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting map icons...
Creating new tag_uses.txt file...
Creating new quick_strings.txt file...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting troops data
Exporting particle data...
Exporting scene props...
Exporting tableau materials data...
Exporting presentations...
Exporting party_template data...
Exporting parties
Exporting quest data...
Exporting info_page data...
Exporting scripts...
Exporting mission_template data...
Traceback (most recent call last):
File "process_mission_tmps.py", line 64, in <module>
save_mission_templates(variables,variable_uses,tag_uses,quick_strings)
File "process_mission_tmps.py", line 48, in save_mission_templates
save_triggers(file,convert_to_identifier(mission_template[mission_template_name_pos]), mission_template[mission_template_triggers_pos],variables,variable_uses,tag_uses,quick_strings)
File "process_mission_tmps.py", line 21, in save_triggers
file.write("%f %f %f "%(trigger[trigger_check_pos],trigger[trigger_delay_pos],trigger[trigger_rearm_pos]))
IndexError: list index out of range
Exporting game menus data...
exporting simple triggers...
exporting triggers...
exporting dialogs...
Checking global variable usages...
WARNING: Global variable never used: g_battle_result
WARNING: Global variable never used: scene_num_total_gourds_destroyed
WARNING: Global variable never used: g_train_peasants_against_bandits_training_succeeded
WARNING: Global variable never used: belfry_positioned
WARNING: Global variable never used: trainer_help_message
WARNING: Global variable never used: g_base_flag_team_1
WARNING: Global variable never used: g_base_flag_team_2
WARNING: Global variable never used: server_mission_timer_while_player_joined
WARNING: Global variable never used: g_tw_tutorial_mode
WARNING: Global variable never used: g_multiplayer_ccoop_next_wave_start_time
WARNING: Global variable never used: g_multiplayer_ccoop_spawn_alive_player_squad_and_minus_one_first_spawn_slots_and_minus_one_first_spawn_slots
Exporting postfx_params...
______________________________
Script processing has ended.
Press any key to exit. . .