Page 1 of 1

Custom Cheat Code

Posted: Wed Aug 17, 2022 7:13 am
by iEnderman55
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?

Re: Custom Cheat Code

Posted: Wed Aug 17, 2022 7:30 am
by deice
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.