This is the repository for Yandols' Bachelor's Degree Final Year Project Game (2019). Game created in Construct 2 and Launcher/Updater is created with AHK.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ResistanceSaga/Event sheets/ES - LevelCommons.xml

444 lines
26 KiB

<?xml version="1.0" encoding="utf-8" ?>
<c2eventsheet>
<!--All the 'name' attributes are ignored by Construct 2 - they are there for readability only.-->
<name>ES - LevelCommons</name>
<events>
<comment>Common Level Mechanics that should be included in every level via #include tag.</comment>
<comment>------------</comment>
<comment>Text Dialogue System Handlers</comment>
<event-group description="" sid="961082826652232" title="Text Dialogue System Handlers">
<sub-events>
<event-block sid="257121130706734">
<conditions>
<condition behavior="Typing" id="3" name="Is text typing" sid="150612460295062" type="IS_TFDialogue" />
</conditions>
<actions>
<action id="-42" name="Signal" sid="629439662997499" type="System">
<param id="0" name="Tag">&quot;StartOfADialogue&quot;</param>
</action>
<action id="7" name="Play (by name)" sid="562540816938127" type="Audio">
<param id="0" name="Folder">0</param>
<param id="1" name="Audio file name">&quot;SoundDialogueBeep.ogg&quot;</param>
<param id="3" name="Loop">0</param>
<param id="4" name="Volume">-5</param>
<param id="2" name="Tag (optional)">&quot;DialogueBeep&quot;</param>
</action>
<action id="7" name="Play (by name)" sid="758172772575115" type="Audio">
<param id="0" name="Folder">0</param>
<param id="1" name="Audio file name">&quot;SoundDialogueLoop&quot;</param>
<param id="3" name="Loop">1</param>
<param id="4" name="Volume">-5</param>
<param id="2" name="Tag (optional)">&quot;DialogueLoop&quot;</param>
</action>
</actions>
</event-block>
<event-block sid="950275107793305">
<conditions>
<condition behavior="Typing" id="2" name="On typing completed" sid="920969416003376" type="IS_TFDialogue" />
</conditions>
<actions>
<action id="6" name="Stop" sid="867999951908527" type="Audio">
<param id="0" name="Tag">&quot;DialogueBeep&quot;</param>
</action>
<action id="1" name="Set looping" sid="118359785304702" type="Audio">
<param id="0" name="Tag">&quot;DialogueLoop&quot;</param>
<param id="1" name="State">1</param>
</action>
<action id="6" name="Stop" sid="126458607018990" type="Audio">
<param id="0" name="Tag">&quot;DialogueLoop&quot;</param>
</action>
<action id="-42" name="Signal" sid="967110789447823" type="System">
<param id="0" name="Tag">&quot;EndOfADialogue&quot;</param>
</action>
</actions>
</event-block>
</sub-events>
</event-group>
<comment>Character Movement and Manipulation</comment>
<variable constant="0" name="LC_PlayerUncontrollable" sid="539922814098423" static="0" type="number">0</variable>
<comment>|-- Animations</comment>
<variable constant="0" name="LC_IsJumping" sid="518626443838438" static="0" type="number">0</variable>
<event-group description="" sid="154334308256555" title="Cutscene Player Control Handling">
<sub-events>
<event-block sid="266396749302946">
<conditions>
<condition id="-14" name="Compare variable" sid="115622893406059" type="System">
<param id="0" name="Variable">LC_PlayerUncontrollable</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">1</param>
</condition>
</conditions>
<actions>
<action id="-12" name="Set group active" sid="413376456962713" type="System">
<param id="0" name="Group name">&quot;Controls&quot;</param>
<param id="1" name="State">0</param>
</action>
<action id="-12" name="Set group active" sid="117201735998472" type="System">
<param id="0" name="Group name">&quot;Mirroring&quot;</param>
<param id="1" name="State">0</param>
</action>
</actions>
</event-block>
<event-block sid="519919705796631">
<conditions>
<condition id="-14" name="Compare variable" sid="448807467152952" type="System">
<param id="0" name="Variable">LC_PlayerUncontrollable</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">0</param>
</condition>
</conditions>
<actions>
<action id="-12" name="Set group active" sid="859862134332008" type="System">
<param id="0" name="Group name">&quot;Controls&quot;</param>
<param id="1" name="State">1</param>
</action>
<action id="-12" name="Set group active" sid="369219902500017" type="System">
<param id="0" name="Group name">&quot;Mirroring&quot;</param>
<param id="1" name="State">1</param>
</action>
</actions>
</event-block>
</sub-events>
</event-group>
<event-group description="" sid="965440355590317" title="Animations">
<sub-events>
<event-block sid="979018922277397">
<conditions>
<condition id="-2" name="On start of layout" sid="642409658079208" type="System" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="522513900810149" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block any="1" disabled="1" sid="842783479501066">
<conditions>
<condition id="3" name="On key released" sid="519798776913989" type="Keyboard">
<param id="0" name="Key">37 (Left arrow)</param>
</condition>
<condition id="3" name="On key released" sid="673419022502519" type="Keyboard">
<param id="0" name="Key">65 (A)</param>
</condition>
</conditions>
<actions>
<action id="2" name="Stop" sid="191876160478413" type="PlayerCharacter" />
<action id="4" name="Set animation" sid="696640404694579" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block any="1" disabled="1" sid="277876413588792">
<conditions>
<condition id="3" name="On key released" sid="492199571495927" type="Keyboard">
<param id="0" name="Key">39 (Right arrow)</param>
</condition>
<condition id="3" name="On key released" sid="488892111099282" type="Keyboard">
<param id="0" name="Key">68 (D)</param>
</condition>
</conditions>
<actions>
<action id="2" name="Stop" sid="495748762032451" type="PlayerCharacter" />
<action id="4" name="Set animation" sid="739460350143974" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<comment></comment>
<event-block sid="407224959855039">
<conditions>
<condition behavior="Platform" id="5" name="On jump" sid="353206472867036" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="982090868409905" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Jumping&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="374629949228228">
<conditions>
<condition behavior="Platform" id="4" name="Is falling" sid="225142945563294" type="PlayerCharacter" />
<condition behavior="Platform" id="3" inverted="1" name="Is jumping" sid="788314759201760" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="440792824137948" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Jumping&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block sid="946569529723309">
<conditions>
<condition behavior="Platform" id="9" name="On landed" sid="638104913526250" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="108990400178833" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block sid="589672320242883">
<conditions>
<condition behavior="Platform" id="0" name="Is moving" sid="690980256516962" type="PlayerCharacter" />
<condition behavior="Platform" id="2" name="Is on floor" sid="523510518116654" type="PlayerCharacter" />
<condition id="2" inverted="1" name="Is playing" sid="336317674387268" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Jumping&quot;</param>
</condition>
</conditions>
<actions>
<action id="4" name="Set animation" sid="160306665852122" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Running&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block sid="329017325029688">
<conditions>
<condition behavior="Platform" id="7" name="On stopped" sid="136173911263687" type="PlayerCharacter" />
<condition behavior="Platform" id="0" inverted="1" name="Is moving" sid="585308551044958" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="163229269580725" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<comment></comment>
<event-block disabled="1" sid="286733567626066">
<conditions>
<condition behavior="Platform" id="3" name="Is jumping" sid="430902716876276" type="PlayerCharacter" />
<condition id="-14" name="Compare variable" sid="528717953095466" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">0</param>
</condition>
<condition id="-4" name="Trigger once while true" sid="469231424862733" type="System" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="661551837770165" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Jumping&quot;</param>
<param id="1" name="From">1</param>
</action>
<action id="-9" name="Set value" sid="156894752177835" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Value">1</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="408083771165990">
<conditions>
<condition behavior="Platform" id="4" name="Is falling" sid="200481242275500" type="PlayerCharacter" />
<condition id="-14" name="Compare variable" sid="620345027468495" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">0</param>
</condition>
<condition id="-4" name="Trigger once while true" sid="327737856371475" type="System" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="622570801904200" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Jumping&quot;</param>
<param id="1" name="From">1</param>
</action>
<action id="-9" name="Set value" sid="860392254015368" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Value">1</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="498430287071734">
<conditions>
<condition behavior="Platform" id="3" inverted="1" name="Is jumping" sid="951735156844939" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="667850405947242" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="673269507854640">
<conditions>
<condition behavior="Platform" id="4" inverted="1" name="Is falling" sid="768506088064226" type="PlayerCharacter" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="746598912700993" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="263010275327281">
<conditions>
<condition behavior="Platform" id="2" name="Is on floor" sid="656852721424379" type="PlayerCharacter" />
<condition id="-14" name="Compare variable" sid="793986691945545" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">1</param>
</condition>
<condition id="-4" name="Trigger once while true" sid="543266453976941" type="System" />
</conditions>
<actions>
<action id="4" name="Set animation" sid="438735235495254" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
<action id="-9" name="Set value" sid="132228087340252" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Value">0</param>
</action>
</actions>
</event-block>
<event-block disabled="1" sid="861847953376631">
<conditions>
<condition behavior="Platform" id="9" name="On landed" sid="805153410806846" type="PlayerCharacter" />
<condition behavior="Platform" disabled="1" id="2" name="Is on floor" sid="106842668005886" type="PlayerCharacter" />
<condition disabled="1" id="-14" name="Compare variable" sid="554010588605562" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Comparison">0</param>
<param id="2" name="Value">1</param>
</condition>
<condition id="-4" name="Trigger once while true" sid="149848786926601" type="System" />
</conditions>
<actions>
<action id="2" name="Stop" sid="974268171832802" type="PlayerCharacter" />
<action id="4" name="Set animation" sid="849212307033135" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Default&quot;</param>
<param id="1" name="From">1</param>
</action>
<action id="-9" name="Set value" sid="245642764896241" type="System">
<param id="0" name="Variable">LC_IsJumping</param>
<param id="1" name="Value">0</param>
</action>
</actions>
</event-block>
<event-block sid="683812094178216">
<conditions />
<actions />
</event-block>
</sub-events>
</event-group>
<comment>|-- Controls</comment>
<event-group description="" sid="800254851492620" title="Controls">
<sub-events>
<event-block any="1" sid="790230518839906">
<conditions>
<condition id="2" name="Key is down" sid="319318192562448" type="Keyboard">
<param id="0" name="Key">38 (Up arrow)</param>
</condition>
<condition id="2" name="Key is down" sid="160054305484790" type="Keyboard">
<param id="0" name="Key">87 (W)</param>
</condition>
<condition id="2" name="Key is down" sid="577213599430796" type="Keyboard">
<param id="0" name="Key">32 (Space)</param>
</condition>
</conditions>
<actions>
<action behavior="Platform" id="7" name="Simulate control" sid="376557600738439" type="PlayerCharacter">
<param id="0" name="Control">2</param>
</action>
</actions>
</event-block>
<event-block any="1" sid="511184078937768">
<conditions>
<condition id="2" name="Key is down" sid="599499780886822" type="Keyboard">
<param id="0" name="Key">37 (Left arrow)</param>
</condition>
<condition id="2" name="Key is down" sid="618026877193701" type="Keyboard">
<param id="0" name="Key">65 (A)</param>
</condition>
</conditions>
<actions>
<action disabled="1" id="4" name="Set animation" sid="904454167761879" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Running&quot;</param>
<param id="1" name="From">1</param>
</action>
<action behavior="Platform" id="7" name="Simulate control" sid="341078456674437" type="PlayerCharacter">
<param id="0" name="Control">0</param>
</action>
</actions>
</event-block>
<event-block any="1" sid="141189891790799">
<conditions>
<condition id="2" name="Key is down" sid="651405994039656" type="Keyboard">
<param id="0" name="Key">40 (Down arrow)</param>
</condition>
<condition id="2" name="Key is down" sid="286330678103602" type="Keyboard">
<param id="0" name="Key">83 (S)</param>
</condition>
</conditions>
<actions>
<action behavior="Platform" id="12" name="Fall through" sid="490662333941146" type="PlayerCharacter" />
</actions>
</event-block>
<event-block any="1" sid="562032440228283">
<conditions>
<condition id="2" name="Key is down" sid="940683699633914" type="Keyboard">
<param id="0" name="Key">39 (Right arrow)</param>
</condition>
<condition id="2" name="Key is down" sid="186838029782548" type="Keyboard">
<param id="0" name="Key">68 (D)</param>
</condition>
</conditions>
<actions>
<action disabled="1" id="4" name="Set animation" sid="267598505157893" type="PlayerCharacter">
<param id="0" name="Animation">&quot;Running&quot;</param>
<param id="1" name="From">1</param>
</action>
<action behavior="Platform" id="7" name="Simulate control" sid="290848473999287" type="PlayerCharacter">
<param id="0" name="Control">1</param>
</action>
</actions>
</event-block>
<event-block sid="264727846955023">
<conditions />
<actions />
</event-block>
</sub-events>
</event-group>
<comment>|-- Mirroring</comment>
<event-group description="" sid="438924834348330" title="Mirroring">
<sub-events>
<event-block any="1" sid="834363177308800">
<conditions>
<condition id="0" name="On key pressed" sid="413111849062160" type="Keyboard">
<param id="0" name="Key">37 (Left arrow)</param>
</condition>
<condition id="0" name="On key pressed" sid="859766358522103" type="Keyboard">
<param id="0" name="Key">65 (A)</param>
</condition>
</conditions>
<actions>
<action id="7" name="Set mirrored" sid="373387588857551" type="PlayerCharacter">
<param id="0" name="State">0</param>
</action>
</actions>
</event-block>
<event-block any="1" sid="896799897449194">
<conditions>
<condition id="0" name="On key pressed" sid="915536992803195" type="Keyboard">
<param id="0" name="Key">39 (Right arrow)</param>
</condition>
<condition id="0" name="On key pressed" sid="423230768445451" type="Keyboard">
<param id="0" name="Key">68 (D)</param>
</condition>
</conditions>
<actions>
<action id="7" name="Set mirrored" sid="435505470828138" type="PlayerCharacter">
<param id="0" name="State">1</param>
</action>
</actions>
</event-block>
</sub-events>
</event-group>
<comment>Health System</comment>
<variable constant="0" name="AA_PlayerHealth" sid="236543163504189" static="0" type="number">5</variable>
</events>
</c2eventsheet>