<mamecheat version="1">

  <cheat desc="Select Starting Room"> <comment>Enable on Game Mode Selection screen. Code 0x80 (Room 128 - Main Gate) is the ending</comment>
    <parameter min="1" max="128" step="1"/>
    <script state="on">
      <action>cpu1.pb@1E25=FF</action>
    </script>
    <script state="change">
      <action>cpu1.pb@1E25=(param-1)</action>
    </script>
  </cheat>

  <cheat desc="Infinite Time">
    <script state="run">
      <action>cpu2.pd@0310=FFFFFFFF</action>
      <action>cpu2.pd@0314=FFFFFFFF</action>
      <action>cpu2.pd@0318=FFFFFFFF</action>
      <action>cpu2.pd@031C=FFFFFFFF</action>
      <action>cpu2.pd@0320=FFFFFFFF</action>
      <action>cpu2.pd@0324=FFFFFFFF</action>
      <action>cpu2.pd@0328=FFFFFFFF</action>
      <action>cpu2.pd@032C=FFFFFFFF</action>
      <action>cpu2.pd@0330=FFFFFFFF</action>
      <action>cpu2.pd@0334=FFFFFFFF</action>
      <action>cpu2.pd@0338=FFFFFFFF</action>
      <action>cpu2.pd@033C=FFFFFFFF</action>
      <action>cpu2.pd@0340=FFFFFFFF</action>
      <action>cpu2.pd@0344=FFFFFFFF</action>
      <action>cpu2.pd@0348=FFFFFFFF</action>
      <action>cpu2.pd@034C=FFFFFFFF</action>
      <action>cpu2.pd@0350=FFFFFFFF</action>
      <action>cpu2.pd@0354=FFFFFFFF</action>
      <action>cpu2.pd@0358=FFFFFFFF</action>
      <action>cpu2.pd@035C=FFFFFFFF</action>
      <action>cpu2.pd@0360=FFFFFFFF</action>
      <action>cpu2.pd@0364=FFFFFFFF</action>
      <action>cpu2.pd@0368=FFFFFFFF</action>
      <action>cpu2.pd@036C=FFFFFFFF</action>
      <action>cpu2.pd@0370=FFFFFFFF</action>
      <action>cpu2.pd@0374=FFFFFFFF</action>
      <action>cpu2.pd@0378=FFFFFFFF</action>
      <action>cpu2.pd@037C=FFFFFFFF</action>
      <action>cpu2.pd@0380=FFFFFFFF</action>
      <action>cpu2.pd@0384=FFFFFFFF</action>
      <action>cpu2.pd@0388=FFFFFFFF</action>
      <action>cpu2.pd@038C=FFFFFFFF</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="run">
      <action>cpu1.pb@1ECD=00</action>
    </script>
  </cheat>

  <cheat desc="Gil Infinite H.P.">
    <script state="run">
      <action>cpu1.pw@1EA7=03E7</action>
      <action>cpu1.pd@1E74=03E70000|(cpu1.pd@1E74 BAND ~FFFFFF00)</action>
    </script>
  </cheat>

  <cheat desc="Gil Always Maximum A.C.">
    <script state="run">
      <action>cpu1.pb@1ED9=03</action>
    </script>
  </cheat>

  <cheat desc="Gil Always Maximum EXP">
    <script state="run">
      <action>cpu1.pb@1F30=FF</action>
    </script>
  </cheat>

  <cheat desc="Gil Always Have Paralyze">
    <script state="on">
      <action>temp0 =cpu1.pb@1EEA</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EEA=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EEA=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Gil Always Have Poison">
    <script state="on">
      <action>temp0 =cpu1.pb@1EEB</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EEB=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EEB=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Gil Always Good Status">
    <script state="on">
      <action>temp0 =cpu1.pw@1EEA</action>
    </script>
    <script state="run">
      <action>cpu1.pw@1EEA=0000</action>
    </script>
    <script state="off">
      <action>cpu1.pw@1EEA=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Ki Infinite M.P."> <comment>Enable to use all magics</comment>
    <script state="run">
      <action>cpu1.pw@1EE4=FFFF</action>
      <action>cpu1.pw@1EE7=FFFF</action>
    </script>
  </cheat>

  <cheat desc="Ki Always Maximum EXP">
    <script state="run">
      <action>cpu1.pw@1EE6=00FF</action>
    </script>
  </cheat>

  <cheat desc="-=The Magic of Attack=-"/>

  <cheat desc="Always Use Press">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF7</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF7=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF7=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Heat Body"> <comment>Make Gil Invincibility except Will-O-Wisp and Archin</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1ECA</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ECA=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ECA=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Thunder Bolt">
    <script state="on">
      <action>temp0 =cpu1.pb@1EDE</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EDE=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EDE=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Big Burn">
    <script state="on">
      <action>temp0 =cpu1.pb@1EDF</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EDF=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EDF=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-=The Magic of Protect=-"/>

  <cheat desc="Always Use Protection">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF1</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF1=FF</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF1=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Sword Barrier">
    <script state="on">
      <action>temp0 =cpu1.pb@1EFC</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EFC=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EFC=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Reflect Spell I">
    <script state="on">
      <action>temp0 =cpu1.pb@1EE9</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EE9=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EE9=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Reflect Spell II">
    <script state="on">
      <action>temp0 =cpu1.pb@1EE9</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EE9=02</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EE9=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Alway Use High Speed">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF6</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF6=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF6=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-=The Magic of Assist=-"/>

  <cheat desc="Always Use Sleep">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF2</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF2=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF2=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Rock Hold I">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF3</action>
      <action>temp1 =cpu1.pb@1F32</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF3=01</action>
      <action>cpu1.pb@1F32=0F</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF3=temp0 </action>
      <action>cpu1.pb@1F32=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Rock Hold II">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF3</action>
      <action>temp1 =cpu1.pb@1F32</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF3=FF</action>
      <action>cpu1.pb@1F32=0F</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF3=temp0 </action>
      <action>cpu1.pb@1F32=temp1 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Rock to Mud">
    <script state="on">
      <action>temp0 =cpu1.pb@1EF4</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF4=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF4=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Panic">
    <script state="on">
      <action>temp0 =cpu1.pb@1EDD</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EDD=0F</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EDD=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Silence"> <comment>Seal Mage's magic</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1F3A</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1F3A=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1F3A=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Wizard Lock"> <comment>Seal All Magician's magic</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1E51</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E51=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E51=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-=The Magic of Light=-"/>

  <cheat desc="Always Use Identify Monster I">
    <script state="on">
      <action>temp0 =cpu1.pb@1ED4</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ED4=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ED4=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Identify Monster II">
    <script state="on">
      <action>temp0 =cpu1.pb@1ED4</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ED4=FF</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ED4=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Identify Door">
    <script state="on">
      <action>temp0 =cpu1.pb@1ED7</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ED7=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ED7=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Detect Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1ED8</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ED8=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ED8=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Detect Monster">
    <script state="on">
      <action>temp0 =cpu1.pb@1EC8</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EC8=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EC8=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Detect Magic">
    <script state="on">
      <action>temp0 =cpu1.pb@1EED</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EED=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EED=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Find Trap Door">
    <script state="on">
      <action>temp0 =cpu1.pb@1EDB</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EDB=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EDB=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Find Secret Passage"> <comment>Use in the Room 81 or 126</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1EEF</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EEF=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EEF=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Find Magic Ladder"> <comment>Only use in the Room 113</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1EF5</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF5=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF5=temp0 </action>
    </script>
  </cheat>

  <cheat desc="-=The Magic of Special=-"/>

  <cheat desc="Always Use See Status"> <comment>Displayed timer</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1EDC</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EDC=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EDC=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Extrasensory Hearing"> <comment>Stop music</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1EF9</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EF9=00</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EF9=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Unseen Servant"> <comment>Enemy try to escape from you</comment>
    <script state="on">
      <action>temp0 =cpu1.pb@1EE1</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EE1=FF</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EE1=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Metamorphose">
    <script state="on">
      <action>temp0 =cpu1.pb@1EE0</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1EE0=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1EE0=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Use Time Stop">
    <script state="on">
      <action>temp0 =cpu1.pb@1ECB</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1ECB=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1ECB=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Red Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E26</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E26=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E26=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Blue Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E27</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E27=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E27=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Green Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E28</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E28=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E28=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Yellow Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E29</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E29=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E29=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have White Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E2A</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E2A=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E2A=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Violet Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E2B</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E2B=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E2B=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Orange Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E2C</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E2C=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E2C=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Always Have Light Blue Key">
    <script state="on">
      <action>temp0 =cpu1.pb@1E2D</action>
    </script>
    <script state="run">
      <action>cpu1.pb@1E2D=01</action>
    </script>
    <script state="off">
      <action>cpu1.pb@1E2D=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Sound Test">
    <parameter min="1" max="24" step="1"/>
    <script state="change">
      <action>cpu1.pb@temp1=00</action>
      <action>temp0=4284+param</action>
      <action>cpu1.pb@temp0=01</action>
      <action>temp1=temp0</action>
    </script>
  </cheat>

</mamecheat>
<!-- Cheat file downloaded from http://www.mamecheat.co.uk, see cheat.txt for list of contributors. -->
