1var stories = { 2 'introduction' : [ 3 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 4 {'action' : 'camera', 'details' : {'where' : Vector2(15, 3), 'zoom' : 2}, 'delay' : 0.5}, 5 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_INTRO_1', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 6 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_INTRO_2', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 7 {'action' : 'camera', 'details' : {'where' : Vector2(18, 13), 'zoom' : 2}, 'delay' : 0.5}, 8 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_INTRO_3', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 9 {'action' : 'unlock', 'details' : {}}, 10 ], 11 'landline' : [ 12 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 13 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_LANDLINE_1', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 14 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_LANDLINE_2', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 15 {'action' : 'unlock', 'details' : {}}, 16 ], 17 'comms_restored' : [ 18 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 19 {'action' : 'camera', 'details' : {'where' : Vector2(3, 12), 'zoom' : 2}, 'delay' : 0.5}, 20 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_HELP_1', 'portrait' : 'officer_blue', 'name' : 'ACTOR_BASE_COMMANDER', 'side' : 'right'}}, 21 {'action' : 'message', 'details': {'text' : 'MISSION_4_OFFICER_HELP_2', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 22 {'action' : 'trigger', 'details' : {'name' : 'reinforce', 'suspended' : false}}, 23 {'action' : 'unlock', 'details' : {}}, 24 ], 25 'reinforce' : [ 26 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 27 {'action' : 'camera', 'details' : {'where' : Vector2(18, 9), 'zoom' : 2}, 'delay' : 0.5}, 28 {'action' : 'message', 'details': {'text' : 'MISSION_4_RAPID_RESPONSE', 'portrait' : 'tank_blue', 'name' : 'ACTOR_TANK_COMMANDER', 'side' : 'right'}}, 29 {'action' : 'spawn', 'details' : {'where' : Vector2(18, 9), 'unit' : 'tank', 'side' : 'blue'}}, 30 {'action' : 'spawn', 'details' : {'where' : Vector2(18, 8), 'unit' : 'tank', 'side' : 'blue'}, 'delay' : 1}, 31 {'action' : 'move', 'details' : {'who' : Vector2(18, 9), 'where' : Vector2(17, 9)}}, 32 {'action' : 'move', 'details' : {'who' : Vector2(18, 8), 'where' : Vector2(17, 8)}, 'delay' : 1}, 33 {'action' : 'spawn', 'details' : {'where' : Vector2(18, 9), 'unit' : 'soldier', 'side' : 'blue'}}, 34 {'action' : 'spawn', 'details' : {'where' : Vector2(18, 8), 'unit' : 'soldier', 'side' : 'blue'}, 'delay' : 1}, 35 {'action' : 'unlock', 'details' : {}}, 36 ], 37 'forward_barrack' : [ 38 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 39 {'action' : 'camera', 'details' : {'where' : Vector2(8, 5), 'zoom' : 2}, 'delay' : 0.5}, 40 {'action' : 'message', 'details': {'text' : 'MISSION_4_FORWARD_BARRACK', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 41 {'action' : 'unlock', 'details' : {}}, 42 ], 43 'approach' : [ 44 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 45 {'action' : 'spawn', 'details' : {'where' : Vector2(6, 10), 'unit' : 'soldier', 'side' : 'blue'}}, 46 {'action' : 'camera', 'details' : {'where' : Vector2(6, 10), 'zoom' : 2}, 'delay' : 0.5}, 47 {'action' : 'message', 'details': {'text' : 'MISSION_4_GUARD_WARN', 'portrait' : 'officer_blue', 'name' : 'ACTOR_GUARD', 'side' : 'right'}}, 48 {'action' : 'unlock', 'details' : {}}, 49 ], 50 'comms_cut' : [ 51 {'action' : 'lock', 'details' : {}, 'delay' : 0.5}, 52 {'action' : 'camera', 'details' : {'where' : Vector2(3, 6), 'zoom' : 2}, 'delay' : 1}, 53 {'action' : 'camera', 'details' : {'where' : Vector2(3, 13), 'zoom' : 2}, 'delay' : 1}, 54 {'action' : 'message', 'details': {'text' : 'MISSION_4_COMM_CUT_1', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 55 {'action' : 'message', 'details': {'text' : 'MISSION_4_COMM_CUT_2', 'portrait' : 'officer_blue', 'name' : 'ACTOR_BASE_COMMANDER', 'side' : 'right'}}, 56 {'action' : 'message', 'details': {'text' : 'MISSION_4_COMM_CUT_3', 'portrait' : 'officer_red', 'name' : 'ACTOR_MILITIA_OFFICER', 'side' : 'left'}}, 57 {'action' : 'trigger', 'details' : {'name' : 'comms_restored', 'suspended' : true}}, 58 {'action' : 'unlock', 'details' : {}}, 59 ], 60} 61 62var triggers = { 63 'introduction' : {'type' : 'turn', 'story' : 'introduction', 'details' : { 'turn' : 1 }, 'one_off' : true}, 64 'landline' : {'type' : 'turn', 'story' : 'landline', 'details' : { 'turn' : 2 }, 'one_off' : true}, 65 'comms_restored' : {'type' : 'turn', 'story' : 'comms_restored', 'details' : { 'turn' : 8 }, 'one_off' : true}, 66 'reinforce' : {'type' : 'turn', 'story' : 'reinforce', 'details' : { 'turn' : 10 }, 'one_off' : true, 'suspended' : true}, 67 'forward_barrack' : {'type' : 'move', 'story' : 'forward_barrack', 'details' : { 'fields' : [Vector2(9, 3), Vector2(10, 3), Vector2(11, 3), Vector2(9, 4), Vector2(10, 4), Vector2(11, 4), Vector2(10, 5), Vector2(11, 5), Vector2(9, 6), Vector2(10, 6), Vector2(11, 6), Vector2(10, 7), Vector2(11, 7), Vector2(9, 8), Vector2(10, 8), Vector2(11, 8)], 'player' : 1 }, 'one_off' : true}, 68 'approach' : {'type' : 'move', 'story' : 'approach', 'details' : { 'fields' : [Vector2(7, 8), Vector2(8, 8), Vector2(7, 9), Vector2(8, 9), Vector2(9, 9), Vector2(7, 10), Vector2(8, 10), Vector2(9, 10), Vector2(7, 11)], 'player' : 1 }, 'one_off' : true}, 69 'comms_cut' : {'type' : 'domination', 'story' : 'comms_cut', 'details' : { 'amount' : 2, 'list' : [Vector2(3, 6), Vector2(3, 13)], 'player' : 1 }, 'one_off' : true}, 70} 71