<mamecheat version="1">

  <cheat desc="Infinite Time">
    <script state="run">
      <action>maincpu.pb@FFC420=24</action>
    </script>
  </cheat>

  <cheat desc="Finish this Stage Now!"> <comment>This is for the Normal Stages not the Bonus Rounds! The Stage Clear message is unreadable</comment>
    <script state="on">
      <action>maincpu.pb@FFC0FC=00</action>
    </script>
  </cheat>

  <cheat desc=" "/>
  <cheat desc="Enable the starting round cheats on any of the animation or"/>
  <cheat desc="picture screens. If you clock the level past 46 then the"/>
  <cheat desc="round cheat won't work properly because the game is buggy."/>
  <cheat desc=" "/>

  <cheat desc="Select Starting Round"> <comment>Includes any tutorial screens if they are before that round</comment>
    <parameter>
      <item value="0x00">1</item>
      <item value="0x02">2</item>
      <item value="0x03">3</item>
      <item value="0x04">##Touch the Bud##</item>
      <item value="0x06">4</item>
      <item value="0x09">5</item>
      <item value="0x0A">6</item>
      <item value="0x0B">7</item>
      <item value="0x0E">8</item>
      <item value="0x0F">9</item>
      <item value="0x10">##Touch the Mushroom##</item>
      <item value="0x12">10</item>
      <item value="0x15">11</item>
      <item value="0x16">12</item>
      <item value="0x17">13</item>
      <item value="0x1A">14</item>
      <item value="0x1B">15</item>
      <item value="0x1C">16</item>
      <item value="0x1F">17</item>
      <item value="0x20">18</item>
      <item value="0x21">##Touch the Bud##</item>
      <item value="0x23">19</item>
      <item value="0x26">20</item>
      <item value="0x27">21</item>
      <item value="0x28">22</item>
      <item value="0x2A">23</item>
      <item value="0x2B">24</item>
      <item value="0x2C">##Touch the Mushroom##</item>
      <item value="0x2E">25</item>
      <item value="0x31">26</item>
      <item value="0x32">27</item>
      <item value="0x33">28</item>
      <item value="0x35">29</item>
      <item value="0x36">30</item>
      <item value="0x37">31</item>
      <item value="0x3A">32</item>
      <item value="0x3B">33</item>
      <item value="0x3C">##Touch the Bud##</item>
      <item value="0x3E">34</item>
      <item value="0x40">35</item>
      <item value="0x41">36</item>
      <item value="0x42">37</item>
      <item value="0x44">38</item>
      <item value="0x45">39</item>
      <item value="0x46">##Touch the Mushroom##</item>
      <item value="0x48">40</item>
      <item value="0x4A">41</item>
      <item value="0x4B">42</item>
      <item value="0x4C">43</item>
      <item value="0x4E">44</item>
      <item value="0x4F">45</item>
      <item value="0x50">46</item>
    </parameter>
    <script state="change">
      <action>maincpu.pb@FFD491=param</action>
    </script>
  </cheat>

  <!--  There is a bug with the levels, sometime it resets back to 1 after level 9, sometimes it resets -->
  <!--  at 70 ish to 46 ish, the cheats only goes upto level 45 because the location resets to 00 after that -->

  <cheat desc="Invincibility">
    <script state="on">
      <action>temp0 =maincpu.mb@00AE6B</action>
      <action>temp1 =maincpu.mb@00AE7F</action>
      <action>temp2 =maincpu.mb@00AE83</action>
      <action>temp3 =maincpu.mb@00AE8B</action>
      <action>temp4 =maincpu.mb@00AE93</action>
      <action>temp5 =maincpu.mb@00AE97</action>
      <action>temp6 =maincpu.mb@00AE9B</action>
    </script>
    <script state="run">
      <action>maincpu.mb@00AE6B=3E</action>
      <action>maincpu.mb@00AE7F=2A</action> <!-- 1st = Water, 2nd = Mouse -->
      <action>maincpu.mb@00AE83=26</action> <!-- Spider -->
      <action>maincpu.mb@00AE8B=1E</action> <!-- Sea -->
      <action>maincpu.mb@00AE93=16</action> <!-- Press -->
      <action>maincpu.mb@00AE97=12</action> <!-- Lava -->
      <action>maincpu.mb@00AE9B=0E</action> <!-- Electricity -->
    </script>
    <script state="off">
      <action>maincpu.mb@00AE6B=temp0 </action>
      <action>maincpu.mb@00AE7F=temp1 </action>
      <action>maincpu.mb@00AE83=temp2 </action>
      <action>maincpu.mb@00AE8B=temp3 </action>
      <action>maincpu.mb@00AE93=temp4 </action>
      <action>maincpu.mb@00AE97=temp5 </action>
      <action>maincpu.mb@00AE9B=temp6 </action>
    </script>
  </cheat>

  <cheat desc="Always Maximum Buds/Mushrooms">
    <script state="run">
      <action>maincpu.pb@FFC418=BD</action>
    </script>
  </cheat>

  <cheat desc=" "/>

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

  <cheat desc="Max Score PL1">
    <script state="run">
      <action>maincpu.pw@FFD402=9899</action>
    </script>
  </cheat>

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

  <cheat desc="Max Score PL2">
    <script state="run">
      <action>maincpu.pw@FFD442=9899</action>
    </script>
  </cheat>

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