(
"duel_with_fastrada",mtf_arena_fight|mtf_commit_casualties,-1,
"You enter a melee fight in the arena.",#for some reason, this text doesn't show up . . . however, the mission works
[
(0, mtef_visitor_source|mtef_team_0,af_override_all,aif_start_alarmed,1,[itm_we_pla_sword_templar,itm_arena_tunic_blue]),
(16, mtef_visitor_source|mtef_team_1,af_override_all,aif_start_alarmed,1,[itm_we_pla_sword_templar,itm_arena_tunic_blue]),
],#don't fiddle with the 0 and 16 unless you know exactly what you are doing. Contrary to JIK's tutorial, DO NOT change these to 56 and 58 - your dueling partner will not show up or the player will show up twice.
[
common_inventory_not_available,
(ti_tab_pressed, 0, 0, [(display_message, "str_cannot_leave_now")], []),#you can change this per JIK's tutorial if you want
(ti_before_mission_start, 0, 0, [], [(call_script, "script_change_banners_and_chest")]),#not too important but keep anyway
(0, 0, ti_once, [],
[
(call_script, "script_music_set_situation_with_culture", mtf_sit_arena),#not too important but keep
]),
(1, 4, ti_once, [
(main_hero_fallen)#the only condition you need to satisfy for the "quest_current_state" to be set to 4, a failure
],
[
(quest_set_slot,"qst_duel_fastrada",slot_quest_current_state, 4), #this changes the quest's state to 4; you really #don't need to do this if, like me and JIK's tutorial, your default state is failure per the consequence block in you dialogs #((quest_set_slot,"qst_duel_fastrada",slot_quest_current_state, 4)). On the other hand, if your default state is neutral (say, 2), you need this trigger in order to lose
(call_script, "script_fail_quest", "qst_duel_fastrada"),
(finish_mission),
]),
(1, 4, ti_once, [
(neg|main_hero_fallen), #the two conditions that you need to change the "quest_current_state" to 3, a win
(all_enemies_defeated,1),#you need this condition, otherwise the battle will end prematurely; you'll win without ever touching #the other troop; without this, the game is told to make you win just by surviving for a few seconds
],
[
(quest_set_slot,"qst_duel_fastrada",slot_quest_current_state, 3),#the victory state
(call_script, "script_succeed_quest", "qst_duel_fastrada"),#you can insert this script either here or at the end of your #conversation consequence block in module_dialogs by inserting (succeed_quest,"qst_duel_fastrada"). Same with #(fail_quest,"qst_duel_fastrada").
(finish_mission),
]),
]
),