(
"joutes",0,-1,
"joutes",
[
(0,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(1,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(2,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(3,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(4,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(5,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(6,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(7,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(8,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(9,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(10,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(11,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(12,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(13,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(14,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(15,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(16,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(17,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(18,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(19,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(20,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(21,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(22,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(23,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(24,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(25,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(26,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(27,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(28,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(29,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(30,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(31,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
#32
(32, mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(33,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(34,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(35,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(36, mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(37,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(38,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(39,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
#40-49 not used yet
(40,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(41,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(42,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(43,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(44,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(45,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(46,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(47,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(48,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(49,mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[]),
(50, mtef_scene_source,af_override_horse|af_override_weapons|af_override_head,0,1,[]),
(51, mtef_visitor_source,af_override_horse|af_override_weapons|af_override_head,0,1,[]),
(52, mtef_scene_source,af_override_horse,0,1,[]),#not used yet:
(53, mtef_scene_source,af_override_horse,0,1,[]),
(54, mtef_scene_source,af_override_horse,0,1,[]),
(55, mtef_scene_source,af_override_horse,0,1,[]),
#used for torunament master scene
(56, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
(57, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
(58, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
(59, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
(60, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, [itm_new_joutes_horse_blue, itm_new_hourglass_gauntlets, itm_new_steel_greaves, itm_new_churburg_13_brass_blue,itm_new_helmet_tournament_blue_1, itm_newlance_joutes_joueur]),
(61, mtef_visitor_source|mtef_team_1, af_override_all, aif_start_alarmed, 1, [itm_new_joutes_horse_red, itm_new_wisby_gauntlets_red, itm_new_shynbaulds, itm_new_churburg_13_brass_red,itm_new_helmet_tournament_red_1, itm_newlance_joutes_enemi]),
(62, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
(63, mtef_visitor_source|mtef_team_0, af_override_all, aif_start_alarmed, 1, []),
],
[
(ti_before_mission_start, 0, 0, [],
[
(call_script, "script_change_banners_and_chest"),
]),
(ti_tab_pressed, 0, 0,
[
(jump_to_menu, "mnu_tournament_withdraw_verify"),
(finish_mission),
],
[]),
(ti_on_agent_spawn, 0, 0, [],[
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(eq, ":cur_agent_troop", "trp_player"),
(try_begin),
(agent_get_wielded_item, ":cur_wielded_item", ":cur_agent", 0),
(assign, ":cur_wielded_item", "itm_newlance_joutes_joueur"),
(agent_set_wielded_item, ":cur_agent", ":cur_wielded_item"),
(try_end),
]),
(0, 0, ti_once,
[],
[
(play_sound, "snd_public_loop", sf_looping),
]),
(1, 0, 0,[#celui la est pour : concurrent allez en ligne droite a un entry point contre la barriere de separation
],
[
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(neq, ":cur_agent_troop", "trp_player"),
(neq, ":cur_agent_troop", "trp_town_1_arena_master"),
(neq, ":cur_agent_troop", "trp_town_2_arena_master"),
(neq, ":cur_agent_troop", "trp_town_3_arena_master"),
(neq, ":cur_agent_troop", "trp_town_4_arena_master"),
(neq, ":cur_agent_troop", "trp_town_5_arena_master"),
(neq, ":cur_agent_troop", "trp_town_6_arena_master"),
(neq, ":cur_agent_troop", "trp_town_7_arena_master"),
(neq, ":cur_agent_troop", "trp_town_8_arena_master"),
(neq, ":cur_agent_troop", "trp_town_9_arena_master"),
(neq, ":cur_agent_troop", "trp_town_10_arena_master"),
(neq, ":cur_agent_troop", "trp_town_11_arena_master"),
(neq, ":cur_agent_troop", "trp_town_12_arena_master"),
(neq, ":cur_agent_troop", "trp_town_13_arena_master"),
(neq, ":cur_agent_troop", "trp_town_14_arena_master"),
(neq, ":cur_agent_troop", "trp_town_15_arena_master"),
(neq, ":cur_agent_troop", "trp_town_16_arena_master"),
(neq, ":cur_agent_troop", "trp_town_17_arena_master"),
(neq, ":cur_agent_troop", "trp_town_18_arena_master"),
(neq, ":cur_agent_troop", "trp_town_19_arena_master"),
(neq, ":cur_agent_troop", "trp_town_20_arena_master"),
(neq, ":cur_agent_troop", "trp_town_21_arena_master"),
(neq, ":cur_agent_troop", "trp_town_22_arena_master"),
(agent_is_human, ":cur_agent_troop"),
(assign, ":guard_agent", ":cur_agent"),
(try_end),
(assign, ":target_entry_point", 63),
(try_begin),
(agent_set_slot, ":guard_agent", 0, ":target_entry_point"),
(entry_point_get_position, pos1, ":target_entry_point"),
(try_begin),
(init_position, pos2),
(position_set_y, pos2, 250),
(position_transform_position_to_parent, pos1, pos1, pos2),
(try_end),
(agent_set_scripted_destination, ":guard_agent", pos1, 0),
(try_end),
]),
(0, 0, 0,
[
],
[#celui la est pour : concurent a une certaine distance d'un scene prop invisible on va au menu"personne n'as gagné" (car si il va jusqu'au bout du couloir c'est que je ne l'ai pas touché, et qu'il ne m'as pas eu non plus).
(scene_prop_get_instance, ":cur_instance_id", "spr_111_tournois_result_enemi", 0),
(ge, ":cur_instance_id", 0),
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(neq, ":cur_agent_troop", "trp_player"),
(neq, ":cur_agent_troop", "trp_town_1_arena_master"),
(neq, ":cur_agent_troop", "trp_town_2_arena_master"),
(neq, ":cur_agent_troop", "trp_town_3_arena_master"),
(neq, ":cur_agent_troop", "trp_town_4_arena_master"),
(neq, ":cur_agent_troop", "trp_town_5_arena_master"),
(neq, ":cur_agent_troop", "trp_town_6_arena_master"),
(neq, ":cur_agent_troop", "trp_town_7_arena_master"),
(neq, ":cur_agent_troop", "trp_town_8_arena_master"),
(neq, ":cur_agent_troop", "trp_town_9_arena_master"),
(neq, ":cur_agent_troop", "trp_town_10_arena_master"),
(neq, ":cur_agent_troop", "trp_town_11_arena_master"),
(neq, ":cur_agent_troop", "trp_town_12_arena_master"),
(neq, ":cur_agent_troop", "trp_town_13_arena_master"),
(neq, ":cur_agent_troop", "trp_town_14_arena_master"),
(neq, ":cur_agent_troop", "trp_town_15_arena_master"),
(neq, ":cur_agent_troop", "trp_town_16_arena_master"),
(neq, ":cur_agent_troop", "trp_town_17_arena_master"),
(neq, ":cur_agent_troop", "trp_town_18_arena_master"),
(neq, ":cur_agent_troop", "trp_town_19_arena_master"),
(neq, ":cur_agent_troop", "trp_town_20_arena_master"),
(neq, ":cur_agent_troop", "trp_town_21_arena_master"),
(neq, ":cur_agent_troop", "trp_town_22_arena_master"),
(agent_is_human, ":cur_agent_troop"),
(assign, ":guard_agent", ":cur_agent"),
(try_begin),
(agent_get_position, pos10, ":guard_agent"),
(prop_instance_get_position, pos11, ":cur_instance_id"),
(get_distance_between_positions, ":dist", pos10, pos11),
(lt, ":dist", 300),
(play_sound, "snd_defaite_joute"),
(eq, "$message_pas_repete_joutes", 0),
(display_message, "@Aucun jouteur ne s'est distingué, vous re-commancez la joute."),
(jump_to_menu, "mnu_town_tournament_joutes"),
(assign, "$message_pas_repete_joutes", 1),
(finish_mission),
(try_end),
(try_end),
]),
(1, 0, 0,[#celui la est pour : a une certaine distance du joueur, le concurrent le frappe sans dévier de sa trajectoire contre la barriere de séparation
],
[
(try_for_agents, ":cur_agent"),
(agent_get_troop_id, ":cur_agent_troop", ":cur_agent"),
(neq, ":cur_agent_troop", "trp_player"),
(neq, ":cur_agent_troop", "trp_town_1_arena_master"),
(neq, ":cur_agent_troop", "trp_town_2_arena_master"),
(neq, ":cur_agent_troop", "trp_town_3_arena_master"),
(neq, ":cur_agent_troop", "trp_town_4_arena_master"),
(neq, ":cur_agent_troop", "trp_town_5_arena_master"),
(neq, ":cur_agent_troop", "trp_town_6_arena_master"),
(neq, ":cur_agent_troop", "trp_town_7_arena_master"),
(neq, ":cur_agent_troop", "trp_town_8_arena_master"),
(neq, ":cur_agent_troop", "trp_town_9_arena_master"),
(neq, ":cur_agent_troop", "trp_town_10_arena_master"),
(neq, ":cur_agent_troop", "trp_town_11_arena_master"),
(neq, ":cur_agent_troop", "trp_town_12_arena_master"),
(neq, ":cur_agent_troop", "trp_town_13_arena_master"),
(neq, ":cur_agent_troop", "trp_town_14_arena_master"),
(neq, ":cur_agent_troop", "trp_town_15_arena_master"),
(neq, ":cur_agent_troop", "trp_town_16_arena_master"),
(neq, ":cur_agent_troop", "trp_town_17_arena_master"),
(neq, ":cur_agent_troop", "trp_town_18_arena_master"),
(neq, ":cur_agent_troop", "trp_town_19_arena_master"),
(neq, ":cur_agent_troop", "trp_town_20_arena_master"),
(neq, ":cur_agent_troop", "trp_town_21_arena_master"),
(neq, ":cur_agent_troop", "trp_town_22_arena_master"),
(agent_is_human, ":cur_agent_troop"),
(assign, ":guard_agent", ":cur_agent"),
(try_begin),
(get_player_agent_no, ":player_agent"),
(agent_set_look_target_agent, ":guard_agent", ":player_agent"),
(agent_get_position, pos0, ":guard_agent"),
(agent_get_position, pos1, ":player_agent"),
(get_distance_between_positions, ":dist", pos0, pos1),
(le, ":dist", 300),
(agent_set_attack_action, ":guard_agent", 0, 0), #value: -2 = clear any attack action, 0 = thrust, 1 = slashright, 2 = slashleft, 3 = overswing - second value 0 = ready and release, 1 = ready and hold
(try_end),
(try_end),
]),
(0, 0, 0,
[
],
[
(store_trigger_param_1, ":dead_agent_no"),
(store_trigger_param_2, ":killer_agent_no"),
(get_player_agent_no, ":my_agent"),
(try_begin),
(eq, ":my_agent", ":killer_agent_no"), # if I killed the agent
(neg|agent_is_human, ":dead_agent_no"),#if it is not human => it is horse
(agent_get_item_id, ":horse_item_id", ":dead_agent_no"),
(eq, ":horse_item_id", "itm_new_joutes_horse_red"),
(eq, "$message_pas_repete_joutes", 0),
(play_sound, "snd_mort_cheval_joute"),
(display_message, "@Vous avez blessé le cheval du concurent, vous etes disqualifié."),
(assign, "$horse_joustes_dead", 1),
(assign, "$message_pas_repete_joutes", 1),
(try_end),
]),
(1, 3, ti_once, [(main_hero_fallen,0)],
[
(play_sound, "snd_defaite_joute"),
]),
(1, 3, ti_once, [(main_hero_fallen,0)],
[
(display_message, "@Vous avez perdu cette joute."),
(jump_to_menu, "mnu_tournois_lost"),
(finish_mission),
]),
(1, 3, ti_once,
[
(num_active_teams_le, 1),
(neg|main_hero_fallen),
],
[
(play_sound, "snd_victoire_manche"),
]),
(1, 3, ti_once,
[
(store_mission_timer_a, reg1),
(ge, reg1, 4),
(num_active_teams_le, 1),
(neg|main_hero_fallen),
],
[
(display_message, "@Vous avez remporté cette joute !"),
(call_script, "script_reglage_tours"),
(jump_to_menu, "mnu_town_tournament_joutes"),
(finish_mission),
]),
(1, 3, ti_once,
[
(store_mission_timer_a, reg1),
(ge, reg1, 4),
(eq, "$horse_joustes_dead", 1),
],
[
(jump_to_menu, "mnu_tournois_lost"),
(finish_mission),
]),
],
),