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.