[dkong]+ Loop current stage

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
furrykef
Posts: 3
Joined: Fri Jun 12, 2009 5:46 pm

[dkong]+ Loop current stage

Post by furrykef »

This code makes it so that completing a stage will repeat the stage instead of moving onto the next one. This is perfect for practicing one stage over and over, and I have used it myself for this purpose for a couple of days now. I find it more convenient than fiddling with save states, and unlike save states, the RNG won't keep getting reset to the same state.

Code: Select all

<cheat desc="Loop current stage">
    <comment>Repeat the current stage indefinitely</comment>
    <script state="on">
        <action>temp0=maincpu.mb@1792</action>
        <action>temp1=maincpu.mb@1940</action>
        <action>temp2=maincpu.mb@1954</action>
        <action>temp3=maincpu.md@195C</action>
    </script>
    <script state="off">
        <action>maincpu.mb@1792=temp0</action>
        <action>maincpu.mb@1940=temp1</action>
        <action>maincpu.mb@1954=temp2</action>
        <action>maincpu.md@195C=temp3</action>
    </script>
    <script state="run">
        <action>maincpu.mb@1792=00</action>
        <action>maincpu.mb@1940=00</action>
        <action>maincpu.mb@1954=00</action>
        <action>maincpu.mb@195C=00</action>
        <action>maincpu.mb@195D=00</action>
        <action>maincpu.mb@195E=00</action>
    </script>
</cheat>
Post Reply