<mamecheat version="1">

  <cheat desc=" "/>
  <cheat desc="Ghost Muncher"/> <!-- Game can be selected from the DIP switch menu -->
  <cheat desc="---------------"/>

  <cheat desc="Enable Speed Hack"> <comment>This will greatly speed up your character.</comment>
    <script state="on">
      <action>temp0 =maincpu.mw@1180B</action>
    </script>
    <script state="run">
      <action>maincpu.mw@1180B=3218</action>
    </script>
    <script state="off">
      <action>maincpu.mw@1180B=temp0 </action>
    </script>
  </cheat>

  <cheat desc="Finish this Level Now!">
    <script state="on">
      <action>maincpu.pb@0420E=F4</action>
    </script>
  </cheat>

  <cheat desc="Select Starting Level"> <comment>For the best effect deactivate this cheat after you've started the Level</comment>
    <parameter>
      <item value="0x01">Strawberry</item>
      <item value="0x02">1st Orange</item>
      <item value="0x03">2nd Orange</item>
      <item value="0x04">1st Apple</item>
      <item value="0x05">2nd Apple</item>
      <item value="0x06">1st Pineapple</item>
      <item value="0x07">2nd Pineapple</item>
      <item value="0x08">1st Galaxian</item>
      <item value="0x09">2nd Galaxian</item>
      <item value="0x0A">1st Bell</item>
      <item value="0x0B">2nd Bell</item>
      <item value="0x0C">1st Key</item>
      <item value="0x0D">2nd Key</item>
    </parameter>
    <script state="run">
      <action condition="maincpu.pb@4213==00">maincpu.pb@4213=param</action>
      <action condition="(param LT 0x0C) AND (maincpu.pb@420A==68)">maincpu.pb@420A=param + 0x7D</action>
      <action condition="(param GE 0x0C) AND (maincpu.pb@420A==68)">maincpu.pb@420A=param + 0x7B</action>
    </script>
  </cheat>

  <cheat desc="Select Level (for Practice)"> <comment>Do NOT use in conjunction with the standard Select Starting Level cheat</comment>
    <parameter>
      <item value="0x00">Cherry</item>
      <item value="0x01">Strawberry</item>
      <item value="0x02">1st Orange</item>
      <item value="0x03">2nd Orange</item>
      <item value="0x04">1st Apple</item>
      <item value="0x05">2nd Apple</item>
      <item value="0x06">1st Pineapple</item>
      <item value="0x07">2nd Pineapple</item>
      <item value="0x08">1st Galaxian</item>
      <item value="0x09">2nd Galaxian</item>
      <item value="0x0A">1st Bell</item>
      <item value="0x0B">2nd Bell</item>
      <item value="0x0C">1st Key</item>
      <item value="0x0D">2nd Key</item>
      <item value="0xFF">Split-Screen (Unplayable)</item>
      <item value="0xFE">No maze or dots(Unfinishable)</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@04213=param</action>
    </script>
  </cheat>

  <cheat desc="Select Ghost Changeback Speed">
    <parameter>
      <item value="0x0000">Stay blue until eaten</item>
      <item value="0x0258">Slow</item>
      <item value="0x0168">Moderate</item>
      <item value="0x00F0">Quick</item>
      <item value="0x0078">Lightning</item>
      <item value="0x0001">No change to blue</item>
    </parameter>
    <script state="run">
      <action>maincpu.pw@041BD=param</action>
    </script>
  </cheat>

  <cheat desc="---------------------"/>
  <cheat desc="Ghost Status Cheats"/>
  <cheat desc="---------------------"/>

  <cheat desc="Yellow always Blue">
    <script state="run">
      <action>maincpu.pb@041A7=01</action>
    </script>
  </cheat>

  <cheat desc="Red always Blue">
    <script state="run">
      <action>maincpu.pb@041A8=01</action>
    </script>
  </cheat>

  <cheat desc="Green always Blue">
    <script state="run">
      <action>maincpu.pb@041A9=01</action>
    </script>
  </cheat>

  <cheat desc="Lgt.Blue always Blue">
    <script state="run">
      <action>maincpu.pb@041AA=01</action>
    </script>
  </cheat>

  <cheat desc="Ghosts Always Edible (No Pts)">
    <script state="run">
      <action>maincpu.pb@041A5=00</action>
    </script>
  </cheat>

  <cheat desc=" "/>

  <cheat desc="Infinite Lives PL1">
    <script state="run">
      <action>maincpu.pb@04214=02</action>
    </script>
  </cheat>

  <cheat desc="Infinite Lives PL2">
    <script state="run">
      <action>maincpu.pb@04215=02</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Galaxian"/> <!-- Game can be selected from the DIP switch menu -->
  <cheat desc="----------"/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pb@0421D=06</action>
    </script>
  </cheat>

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.rb@012D9</action>
    </script>
    <script state="run">
      <action>maincpu.rb@012D9=C9</action>
    </script>
    <script state="off">
      <action>maincpu.rb@012D9=temp0 </action>
    </script>
  </cheat>

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