Custom Cheat Code

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
iEnderman55
Bob-Omb
Bob-Omb
Posts: 23
Joined: Mon Aug 15, 2022 4:21 am
Pronouns: He

Custom Cheat Code

Postby iEnderman55 » Wed Aug 17, 2022 7:13 am

Hello, i don't know if for this question i can write on the LunaLua forum.
It's possible to create a custo cheat code.
I want to do this: name of the cheat: smwoverworld, Do this: change the music and the background of SMW Overworld.
Can I do this?

deice
Volcano Lotus
Volcano Lotus
Posts: 538
Joined: Fri Jul 23, 2021 7:35 am

Re: Custom Cheat Code

Postby deice » Wed Aug 17, 2022 7:30 am

while i can't test it myself right now, i believe custom cheat codes are implemented as such:

Code: Select all

Cheats.register("smwoverworld", {
	onActivate = function()
		-- put your lua code here
	end
})
your description is a little vague however so at the moment i can't really offer much beyond that.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari