Page 1 of 1

[kidniki]+ Kid Niki/Yanchamaru

Posted: Wed Apr 30, 2025 10:52 am
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.