MAME Cheat to lua?

This FORUM is for posting requests and cheats for Arcade Emulators other than M.A.M.E.
Post Reply
BWRainbow
Posts: 1
Joined: Wed Jun 29, 2022 10:27 pm

MAME Cheat to lua?

Post by BWRainbow »

So I have the next cheat:

<cheat desc="Mai's boobs bouncing">
-<script state="run">
<action>maincpu.pb@10AC22=00</action>

And I try to convert to lua like this:

while true do
memory.writebyte (0x10AC22,0x00)
emu.frameadvance()
end

But it simply doesn't work. However, I did the same for infinite credits and it's working. I tried this cheat on MAME and it's working without issues, what am I doing wrong?
Post Reply