<mamecheat version="1">

  <cheat desc="Infinite Credits">
    <script state="run">
      <action>maincpu.pb@45872=63</action>
    </script>
  </cheat>

  <cheat desc="Sound Test">
    <parameter min="1" max="17" step="1"/>
    <script state="change">
      <action condition="maincpu.pb@45872==00">maincpu.pb@45872=01</action>
      <action>maincpu.pb@44ECC=0</action>
      <action>maincpu.pb@44EDC=0</action>
      <action>maincpu.pb@44E9C=0</action>
      <action>maincpu.pb@44EAC=0</action>
      <action>maincpu.pb@44EBC=0</action>
      <action>maincpu.pb@44E0A=0</action>
      <action>maincpu.pb@44E13=0</action>
      <action condition="(param==1)">maincpu.pb@44ECC=1</action>
      <action condition="(param==1)">maincpu.pb@44EDC=1</action>
      <action condition="(param==2)">maincpu.pb@44E0A=69</action>
      <action condition="(param==2)">maincpu.pb@44E13=1</action>
      <action condition="(param==3)">maincpu.pb@44E0A=6c</action>
      <action condition="(param==3)">maincpu.pb@44E13=4</action>
      <action condition="(param==4)">maincpu.pb@44E0A=70</action>
      <action condition="(param==4)">maincpu.pb@44E13=8</action>
      <action condition="(param GE 2) and (param LE 4)">maincpu.pb@44ECC=2</action>
      <action condition="(param GE 2) and (param LE 4)">maincpu.pb@44EDC=2</action>
      <action condition="(param GE 5) and (param LE 6)">maincpu.pb@44E9C=80>>(C-param)</action>
      <action condition="(param GE 7) and (param LE C)">maincpu.pb@44EAC=80>>(D-param)</action>
      <action condition="(param GE D)">maincpu.pb@44EBC=80>>(14-param)</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Ms. Pac-Man"/>
  <cheat desc=" "/>

  <cheat desc="Infinite Lives">
    <script state="run">
      <action>maincpu.pw@44E14=0506</action>
    </script>
  </cheat>

  <cheat desc="Finish this Level Now!">
    <script state="on">
      <action condition="maincpu.pb@0430A==F4">maincpu.pb@44E0E=E0</action> <!-- Ms. Pac Board 0 -->
      <action condition="maincpu.pb@0430A==EB">maincpu.pb@44E0E=F4</action> <!-- Ms. Pac Board 1 -->
      <action condition="maincpu.pb@0430A==E9">maincpu.pb@44E0E=F2</action> <!-- Ms. Pac Board 2 -->
      <action condition="maincpu.pb@0430A==DF">maincpu.pb@44E0E=EE</action> <!-- Ms. Pac Board 3 -->
    </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">Orange</item>
      <item value="0x03">Pretzel</item>
      <item value="0x04">Apple</item>
      <item value="0x05">Pear</item>
      <item value="0x06">Banana</item>
      <item value="0x07">Multifruit 1a</item>
      <item value="0x08">Multifruit 1b</item>
      <item value="0x09">Multifruit 2</item>
    </parameter>
    <script state="run">
      <action condition="maincpu.mq@10923==00">maincpu.mq@10923=061FC34E1332023E</action>
      <action condition="maincpu.md@1061C==3A4E1332">maincpu.md@1061C=3A0923C3</action>
      <action condition="maincpu.pb@44E13==00">maincpu.mb@10924=param, maincpu.pb@44E13=param</action>
      <action condition="maincpu.pb@44E0A==68">maincpu.pb@44E0A=param + 0x68</action> <!-- NORMAL Difficulty -->
      <action condition="maincpu.pb@44E0A==7D">maincpu.pb@44E0A=param + 0x7D</action> <!-- HARD Difficulty -->
    </script>
    <script state="off">
      <action condition="maincpu.mq@10923==061FC34E1332023E">maincpu.mq@10923=00</action>
      <action condition="maincpu.md@1061C==3A0923C3">maincpu.md@1061C=3A4E1332</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@44DBD=param</action>
    </script>
  </cheat>

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

  <cheat desc="Red Ghost always blue">
    <script state="run">
      <action>maincpu.pb@44DA7=01</action>
    </script>
  </cheat>

  <cheat desc="Pink Ghost always blue">
    <script state="run">
      <action>maincpu.pb@44DA8=01</action>
    </script>
  </cheat>

  <cheat desc="Green Ghost always blue">
    <script state="run">
      <action>maincpu.pb@44DA9=01</action>
    </script>
  </cheat>

  <cheat desc="Orange Ghost always blue">
    <script state="run">
      <action>maincpu.pb@44DAA=01</action>
    </script>
  </cheat>

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

  <cheat desc=" "/>
  <cheat desc="Galaga"/>
  <cheat desc=" "/>

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

  <cheat desc="Perfect Challenge Stages">
    <script state="run">
      <action>maincpu.pb@49288=28</action>
    </script>
  </cheat>

  <cheat desc="Select Number of Challenge Stages">
    <parameter>
      <item value="0x00">All Challenge Stages</item>
      <item value="0x01">No Challenge Stages</item>
    </parameter>
    <script state="run">
      <action>maincpu.pb@49825=param</action>
    </script>
  </cheat>

  <cheat desc="Aliens don't fire">
    <script state="run">
      <action>maincpu.pd@49368=00000000</action>
      <action>maincpu.pd@4936C=00000000</action>
    </script>
  </cheat>

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