[kidniki]+ Kid Niki/Yanchamaru

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
jman
Posts: 1315
Joined: Tue Dec 01, 2020 1:24 pm
Been thanked: 9 times

[kidniki]+ Kid Niki/Yanchamaru

Post by jman »

kidniki.xml, kidnikiu.xml, kidnikib.xml, yanchamr.xml and lithero.xml

Code: Select all

    <cheat desc="Finish this Level Now">
        <script state="on">
            <action>maincpu.pb@E003 |= 10</action>
        </script>
    </cheat>

    <cheat desc="Always have Weapon">
        <script state="run">
            <action>maincpu.pb@E003 &amp;= ~40</action>
        </script>
    </cheat>
$E003 is not value but bit field so that setting/clearing bit may be correct instead of writing value.
Therefore, It's desirable that "Start this Level Again" in the official database based on 0.264 is the following.

Code: Select all

    <cheat desc="Start this Level Again">
        <script state="on">
            <action>maincpu.pb@E003 |= 03</action>
        </script>
    </cheat>
It's handy to use "|=" (bit set) or "&=" (bit clear) though you need to replace "&=" with "&amp;=" in xml format.
jman

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