<mamecheat version="1">

  <cheat desc="Infinite Time"> <comment>Turn this cheat OFF on the Challenge Bonus Stages</comment>
    <script state="run">
      <action condition="(frame % 420 == 0)">maincpu.pw@40B368=1510</action>
    </script>
  </cheat>

  <cheat desc="Invincibility (Flicker Type)"> <comment>This gives you the standard flicker Invincibility without flicker - it does NOT offer protection against everything. Spikes, lava, water can still kill you.</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@007DF0</action>
      <action>temp1 =maincpu.mb@007E00</action>
      <action>temp2 =maincpu.mb@00CA3C</action>
    </script>
    <script state="run">
      <action>maincpu.mw@007DF0=6004</action>
      <action>maincpu.mb@007E00=60</action> <!-- ROM Cheat fixes flicker on 100079 cheat, Part 1 branches past decrement branch, Part 2 fixes flickering -->
      <action>maincpu.mb@00CA3C=60</action> <!-- Fixes actual Check (only checks if Part 1 or Invincibility is active) -->
    </script>
    <script state="off">
      <action>maincpu.mw@007DF0=temp0 </action>
      <action>maincpu.mb@007E00=temp1 </action>
      <action>maincpu.mb@00CA3C=temp2 </action>
    </script>
  </cheat>

  <cheat desc="Select Starting Round"> <comment>Turn this cheat OFF on the Challenge Bonus Stages</comment>
    <parameter>
      <item value="0x00">World 1 Area 1</item>
      <item value="0x01">World 1 Area 2</item>
      <item value="0x02">World 1 Area 3</item>
      <item value="0x03">World 1 Area 4</item>
      <item value="0x04">Challenge Bonus Stage 1</item>
      <item value="0x05">World 2 Area 1</item>
      <item value="0x06">World 2 Area 2</item>
      <item value="0x07">World 2 Area 3</item>
      <item value="0x08">World 2 Area 4</item>
      <item value="0x09">World 2 Area 5</item>
      <item value="0x0A">Challenge Bonus Stage 2</item>
      <item value="0x0B">World 3 Area 1</item>
      <item value="0x0C">World 3 Area 2</item>
      <item value="0x0D">World 3 Area 3</item>
      <item value="0x0E">World 3 Area 4</item>
      <item value="0x0F">Challenge Bonus Stage 3</item>
      <item value="0x10">World 4 Area 1</item>
      <item value="0x11">World 4 Area 2</item>
      <item value="0x12">World 4 Area 3</item>
      <item value="0x13">World 4 Area 4</item>
      <item value="0x14">Escape from The Castle</item>
    </parameter>
    <script state="run">
      <action condition="(maincpu.pb@409003==00)">maincpu.pb@409003=param</action>
    </script>
  </cheat>

  <cheat desc="Win the Tug of War Now!">
    <script state="on">
      <action>maincpu.pb@101F85=40</action>
    </script>
  </cheat>

  <cheat desc="Safe RollerCoaster Signs"> <comment>This stops the signs pushing you off the rollercoaster</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@00CB22</action>
    </script>
    <script state="run">
      <action>maincpu.mw@00CB22=4E75</action>
    </script>
    <script state="off">
      <action>maincpu.mw@00CB22=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Walk Across Gaps"> <comment>NOTE - Only protects you if walk off platforms,swings etc - if you jump you will drop normally.</comment>
    <script state="on">
      <action>temp0 =maincpu.mb@009F10</action>
    </script>
    <script state="run">
      <action>maincpu.mb@009F10=60</action>
    </script>
    <script state="off">
      <action>maincpu.mb@009F10=temp0 </action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Lives PL1">
    <script state="run">
      <action>maincpu.pb@40900B=09</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives PL2">
    <script state="run">
      <action>maincpu.pb@40904B=09</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Sound Test Timer Stop"> <comment>Works for all Namco Sys 2</comment>
    <script state="run">
      <action>maincpu.pb@10FE66=02</action>
    </script>
  </cheat>

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