Can you enable a cheat when a level starts?

General discussion about Super Mario Bros. X.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on-topic/appropriate?
-Are you posting in the right forum/following the forum rules?
User avatar
SuperSpaceMan230
Cheep-Cheep
Cheep-Cheep
Posts: 13
Joined: Sat Nov 05, 2016 4:24 pm

Can you enable a cheat when a level starts?

Postby SuperSpaceMan230 » Wed Sep 04, 2019 6:48 pm

So, i found out of the rinkamania cheat code, and i had the idea of making a level out of it, how can i enable it when the player enters the level?

Image

Kirby's jam of the week


Eclipsed
Grinder
Grinder
Posts: 1097
Joined: Tue Mar 13, 2018 6:15 pm
Chat Username: Eclipsed

Re: Can you enable a cheat when a level starts?

Postby Eclipsed » Fri Sep 13, 2019 5:57 pm

Check the lua code in Memezuh by Ness-Wednesday, 3 cheat codes are enabled by default there
Check Out SMBX Servers List - It Hosts Every SMBX Server

Check out my channel for SMBX content and custom levels

My Best Speedruns:
[WR] Invasion 2 Any% All Characters in 28:28:602
Spoiler: show

[WR] The Princess Cliche in 7:16:263
Spoiler: show
[WR]Another Princess Cliche in 23:44:217
Spoiler: show
[WR] The Great Empire in 15:36:686
Spoiler: show
[WR]Super Mario Land Returns in 7:18:141
Spoiler: show
"I am the embodiment of Canada" - Darkonius Makavar

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7479
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Can you enable a cheat when a level starts?

Postby Enjl » Fri Sep 13, 2019 8:24 pm

For your lua file:

----------------------------------------------------
local rinkamaniacheat = Cheats.get("rinkamania")
if not rinkamaniacheat.active then
rinkamaniacheat:trigger(true)
end
----------------------------------------------------

True means there will be no sound effect.
ImageImageImageImage
ImageImageImageImageImageImage


Return to “General”

Who is online

Users browsing this forum: No registered users and 49 guests