[mspacman] Add the Junor Bonus as an 8th level, and include it in the Random Fruits List

This forum is for posting M.A.M.E. arcade cheats. Requests will be fulfilled here....but please keep the requests to the requests forum.
Post Reply
pac_man_fan2
Posts: 66
Joined: Fri Dec 06, 2019 1:49 pm

[mspacman] Add the Junor Bonus as an 8th level, and include it in the Random Fruits List

Post by pac_man_fan2 »

Code: Select all

<cheat desc="Make Level 8 Junior Board (after Banana) and Include Jr in Random Fruit Odds"> <comment>Junior randomly appears on MultiFruit Levels</comment>
  <parameter>
    <item value="0x00">Junior Bonus is Visible</item>
    <item value="0x01">Junior Bonus is Invisible</item>
  </parameter>
  <script state="run">
    <action>maincpu.mb@18763=08</action>	<!-- Random to Include 8th Fruit -->
    <action>maincpu.mb@18767=08</action>	<!-- Random to Utilize 8th Fruit -->
    <action condition="(param==00)">maincpu.mb@187B3=16</action>	<!-- Jr Fruit Visible -->
    <action condition="(param==01)">maincpu.mb@187B3=00</action>	<!-- Jr Fruit Invisible -->
    <action>maincpu.mb@187B4=0C</action>	<!-- Jr Fruit Score Sprite Correction -->
  </script>
  <script state="off">
    <action>maincpu.mb@18763=07</action>	<!-- Restore Random Code -->
    <action>maincpu.mb@18767=07</action>	<!-- Restore Random Code -->
    <action>maincpu.mb@187B3=00</action>	<!-- Jr Fruit Color Normally Invisible 00 -->
    <action>maincpu.mb@187B4=0D</action>	<!-- Jr Fruit Score Sprite -->
  </script>
</cheat>
jman
Posts: 1311
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

Re: [mspacman] Add the Junor Bonus as an 8th level, and include it in the Random Fruits List

Post by jman »

Code: Select all

    <cheat desc="Junior Randomly Appears on MultiFruit Levels">
        <comment>Make Level 8 Junior Board (after Banana) and Include Jr in Random Fruit Odd</comment>
        <parameter>
            <item value="0x16">Jr is Visible</item>
            <item value="0x00">Jr is Invisible</item>
        </parameter>
        <script state="on">
            <action>temp0 = maincpu.mb@18763</action>
            <action>temp1 = maincpu.mb@18767</action>
            <action>temp2 = maincpu.mw@187B3</action>
        </script>
        <script state="run">
            <action>maincpu.mb@18763 = 08</action> <!-- Random to Include 8th Fruit -->
            <action>maincpu.mb@18767 = 08</action> <!-- Random to Utilize 8th Fruit -->
            <action>maincpu.mb@187B3 = param</action>
            <action>maincpu.mb@187B4 = 0C</action> <!-- Jr Fruit Score Sprite Correction -->
        </script>
        <script state="off">
            <action>maincpu.mb@18763 = temp0</action>
            <action>maincpu.mb@18767 = temp1</action>
            <action>maincpu.mw@187B3 = temp2</action>
        </script>
    </cheat>

</mamecheat>
"Make Level 8 Junior Board (after Banana) and Include Jr in Random Fruit Odds" is too long description. So title is broken in the cheat menu.
I doubt that you add "Invisible" factor in the cheat code because of useless. What value for player?
jman

my wip cheat database back-up (06/01/2025 ver.)
https://u3.getuploader.com/...../download/58
downloadpass : jman2020
Post Reply