Cheat Codes, Custom NPC Codes, Hidden NPC Tab

Share guides you have written for SMBX, and related tools here.
Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Cheat Codes, Custom NPC Codes, Hidden NPC Tab

Postby Valtteri » Thu Jan 02, 2014 7:32 am

CHEAT CODES
Here is a list of all the cheats of SMBX.

While in the game, type one of these codes to apply it. The level window must be activated, so if the cheat won't work, try clicking inside the Level Window. Please remember that cheating will disable saving.

Debug cheats
These cheats are good for debugging levels and episodes.
  • shadowstar - Turns you into Black Mario, you can go through walls in this state.
    wherearemycarkeys - Spawns a Key in your hands (use in a Keyhole).
    stickyfingers - You can grab any NPC with this (enables Grab All).
    moneytree - Coins cound go up very quick, giving you a lot of 1-UPs.
    donthurtme - Makes you invincible (enables God Mode).
    stophittingme - Hits the player. Can kill you. Useful when you want to be hit or killed without turning the donthurtme cheat off temporarily.
    wingman - Makes flying power-ups (Raccoon, Tanooki, Fairy Link, Gold Link) and Yoshis fly without limits.
    sonicstooslow - Makes the player run really fast.
    ahippinandahoppin - Unlimited jumping, you can jump in the air.
    framerate - Shows your framerate on the top-left part of the game's screen. This doesn't turn off the ability to save.
    istillplaywithlegos - Resets all Blocks/Tiles in the level.
    speeddemon - sets Max FPS on (fast forward).
Item cheats (Item Stock)
These cheats spawn the item in question in your Item Stock (the item box). You'll have to catch the grabbable items in the air after dropping them from the box.
  • needashell - Spawns a green Koopa Shell in your Item Stock.
    needaredshell - Spawns a red Koopa Shell in your Item Stock.
    needablueshell - Spawns a blue Koopa Shell in your Item Stock.
    needayellowshell - Spawns a yellow Koopa Shell in your Item Stock.
    needaturnip - Spawns an SMB2 turnip in your Item Stock.
    needa1up - Spawns a 1-up (Extra life) in your Item Stock.
    needatanookisuit - Spawns a Tanooki Suit in your Item Stock.
    needahammersuit - Spawns a Hammer Suit in your Item Stock.
    needamushroom - Spawns a Mushroom in your Item Stock.
    needaflower - Spawns a Fire Flower in your Item Stock.
    needaleaf - Spawns a Leaf Power-up in your Item Stock.
    needanegg - Spawns an empty Yoshi Egg in your Item Stock.
    needaplant - Spawns a Toothie in your Item Stock.
    needagun - Spawns a Billy Gun in your Item Stock.
    needaswitch - Spawns a P-Switch in your Item Stock.
    needaclock - Spawns a green Stopwatch in your Item Stock.
    needabomb - Spawns an SMB2 Bomb in your Item Stock.
    needashoe - Spawns Kuribo's Shoe in your Item Stock.
    needaredshoe - Spawns Podoboo's Shoe in your Item Stock.
    needablueshoe - Spawns Lakitu's Shoe in your Item Stock.
    needaniceflower - Spawns an Ice flower in your Item Stock.
Item cheats (hands)
These cheats spawn the item in question in your hands. If you're not holding the run/alt run key, the player will release the item in one second.
  • boingyboing - Spawns an SMW Springboard in your hands.
    bombsaway - Spawns an SMB2 Bomb in your hands.
    firemissiles - Spawns a Bullet Bill in your hands.
    powhammer - Spawns a Pow Block in your hands.
    hammerinmypants - Spawns a Hammer Brother in your hands, that throws hammers to kill enemies.
    rainbowrider - Spawns a rideable Rainbow Shell in your hands.
    upandout - Spawns a Propeller Block in your hands.
    burnthehousedown - Spawns a Flamethrower in your hands.
Yoshi cheats
These cheats spawn the Yoshi Egg in question in your hands.
  • greenegg - Spawns a Green Yoshi Egg in your hands.
    blueegg - Spawns a Blue Yoshi Egg in your hands.
    yellowegg - Spawns a Yellow Yoshi Egg in your hands.
    redegg - Spawns a Red Yoshi Egg in your hands.
    blackegg - Spawns a Black Yoshi Egg in your hands.
    purpleegg - Spawns a Purple Yoshi Egg in your hands.
    pinkegg - Spawns a Pink Yoshi Egg in your hands.
    coldegg - Spawns an Ice Yoshi Egg in your hands.
Player cheats
These are the player based cheats.
  • 1player - Enables 1-player mode. (Also kills all your clones if used supermario2, supermario4 and up, if there are clones alive).
    2player - Enables 2-player mode.
    itsamemario - Changes your character to Mario if you're playing as someone else.
    itsameluigi - Changes your character to Luigi if you're playing as someone else.
    anothercastle - Changes your character to Toad if you're playing as someone else.
    ibakedacakeforyou - Changes your character to Peach if you're playing as someone else.
    iamerror - Changes your character to Link if you're playing as someone else.
Clone cheats
These cheats will make clones of you.
  • supermario128 - Makes 128 clones of the player.
    supermario64 - Makes 64 clones of the player.
    supermario32 - Makes 32 clones of the player.
    supermario16 - Makes 12 clones of the player.
    supermario8 - Makes 8 clones of the player.
    supermario4 - Makes 4 clones of the player.
    supermario2 - You can control 2 different characters with this, hold down and press the "Drop item" assigned key to switch playing character.
World map cheats
These cheats only work on the world map.
  • imtiredofallthiswalking - Shows you all paths and levels.
    illparkwhereiwant - Lets you walk anywhere you want.
Miscellaneous cheats
Most of these cheats were made just for fun.
  • wetwater - The level you're in becomes a water level, meaning you can swim everywhere.
    wariotime - Turn all enemies in screen into coins.
    captainn - Allows you to stop time by pressing the pause button (Does not work if "Pause" is set on the "Esc" key).
    flamethrower - Fire Flower, Ice Flower and Hammer Bro Suit shoots much faster.
    fairymagic - Makes your character turn into a fairy.
    iceage - Freezes all surrounding enemies.
    itsrainingmen - 1-UPs rain.
    donttypethis - Just don't.
Cheats that don't exist
These cheats have been claimed to exist on some SMBX cheat threads, but they really don't.
  • lavaplayer - Makes the player able to swim in lava.
    thedoorsunlockednow - Unlocks all the doors.
CUSTOM NPC CODES
How to use: add the wanted codes with their values on their own lines. Create a .txt file in the graphics folder for the level and name it after the NPC (if you want to apply codes to Goomba, name the .txt file as npc-1). Example:

playerblocktop=0
nofireball=1
jumphurt=1
score=6

The player would be able to walk on the Goomba, the Goomba would be invulnerable to fireballs, the Player would get hurt on top of it and the Goomba would add 1000 points to the player's total points when killed.

Here's the list of possible NPC codes. When applying 1 or 0, 1 means yes and 0 means no.

gfxoffsetx=[+/- numbers] (moves the graphic in the x direction)
gfxoffsety=[+/- numbers] (moves the graphic in the y direction)
width=[+ numbers] (NPC's width)
height=[+ numbers] (NPC's height)
gfxwidth=[+ numbers] (graphics width)
gfxheight=[+ numbers] (graphics height)
score=[1-12] (score you get by killing: 10 100 200 400 800 1000 2000 4000 8000 1up 2up 5up)
playerblock=[1,0] (makes NPCs act like blocks to the players)
playerblocktop=[1,0] (makes the player able to stand on the NPC)
npcblock=[1,0] (makes the NPC act like a block to other NPCs)
npcblocktop=[1,0] (makes NPCs able to stand on the NPC)
grabside=[1,0] (gives the player the ability to grab NPCs from the side)
grabtop=[1,0] (gives Mario the ability to grab NPC's like shy guys)
jumphurt=[1,0] (if set to 1, the player gets hit from landing on the enemy)
nohurt=[1,0] (if true the NPC doesn't hurt you)
noblockcollision=[1,0] (if true the NPC doesn't interact with blocks)
cliffturn=[1,0] (if true enemy turn on a cliff)
noyoshi=[1,0] (if true you can't eat the NPC)
foreground=[1,0] (if true the NPC is in front of everything)
speed=[+/- numbers] - how fast the NPC moves (the number is what the speed is multiplied by: 0 = no speed, 1 = default, 2 = twice as fast as default, 3 = thrice as fast etc.* Negative values make it move backwards.)
nofireball=[1,0] (if true the NPC can't be killed by fireballs)
nogravity=[1,0] (if true the NPC walks in the air)
frames=[+ number] (sets the number of frames the NPC should have)
framespeed=# - how fast the NPC animates (1-7 is faster than the default speed of ~8 frames per second, 8 is the default speed and 9 or bigger is slower**)
framestyle=[0,1,2] (names the style the frames should switch***)
noiceball=[1,0] (if true enemy can't freeze when an ice ball touches it)

*Speed value clarification:
Spoiler: show
    • speed=0 - the NPC stands still. If the player is able to stand on this NPC (playerblocktop=1), the NPC acts like a conveyor belt to the player (and other NPCs).
      speed=1 - does no change to the NPCs speed. It's like multiplying the speed by 1 which does nothing if you know maths at all.
      speed=2 - makes the NPC twice as fast as the original speed.
      speed=3 - makes the NPC thrice as fast as the original speed (and so on).
    So, basically, the value you put to the speed= code is the number that the speed is multiplied by.
Also, some people like to use decimals (e.g. 1.5) in the speed= NPC code, because without them you can't change the NPCs speed to other than 200%, 300%, 400% etc. and, what's more important, you can't make the NPC slower. E.g. with the value 0.5 you can make the NPC two times slower, and with 1.5 you can make the NPCs speed one and half times higher. Decimals work on some people, but on a good portion of people, they make the level crash on load.

So, please do not use decimals in NPC codes. It causes crashing for some people. Thank you.
**Frame speed value clarification:
Spoiler: show
    • framespeed=1 - ~64 frames per second
      framespeed=2 - ~32 frames per second
      framespeed=3 - ~21 frames per second
      framespeed=4 - ~16 frames per second
      framespeed=5 - ~13 frames per second
      framespeed=6 - ~11 frames per second
      framespeed=7 - ~9 frames per second
      framespeed=8 - ~8 frames per second
      framespeed=9 - ~7 frames per second
      framespeed=10 - ~6 frames per second
      framespeed=11 - ~6 frames per second
      framespeed=12 - ~5 frames per second
      ...
    So, if you're good at maths, you can see that the framespeed= values mean the ratio of the NPC's frames changing per second relative to that of SMBX's (1/0.0156 ≈ 64 FPS). framespeed=1 means one frame in the NPC per 1 frame in SMBX, framespeed=2 means one frame in the NPC per 2 frames in SMBX etc.
***Framestyle number meanings:
Spoiler: show
  • framestyle=0 - acts like a goomba, means, both left and right movement use the same sprite.
    franestyle=1 - the NPC have sprites for both left and right, the first half of the sprite sheet is for left movement, the later half is for the right movement.
    framestyle=2 - NPC has both left and right movement, and upside down movement for when the NPC is grabbed (such as the SMB2 enemies).
Also, the value 0 on the NPC codes with a "no" beginning won't do anything. EXCEPT:
  • Most SMB2 enemies can be made vulnerable to fireballs by applying nofireball=0.
  • The donut block and conveyor belt NPCs can be made hurtful by applying nohurt=0.
[/list]

HIDDEN "THE LAKITUS ARE THROWING LAKITUS!" TAB
This secret The Lakitus are throwing Lakitus! Level Editor tab was one of the new things in the last update of SMBX. It has all the NPCs that the editor couldn't access before, like the NPC projectiles and other miscellaneous stuff. It also has this lesser known ridable airship piece that, while a skillful user may be able to use really creatively, is really glitchy.

Here's a picture of the hidden tab:

Image

The way to find this tab was first revealed to beta testers only, but it was soon found by a regular SMBX user. His way to find the tab is complicated, and I'm going to reveal the actual way now.
  • 1. Test the level. You can also do it after you've done the following steps, but it takes less time if you do step 5 in the real time level editor (in the testing mode).

    2. Open the NPCs window.
    • Image
    3. Set Lakitu to Yes.
    • Image
    4. Change the Game selection tab to something else.
    • Image
    5. Place the Lakitu into the level.
    • Image
    6. Wait until the Lakitu throws a Lakitu.
    • Image
    7. The Lakitus are throwing Lakitus! tab will appear as the Lakitu throws a Lakitu.
    • Image
    8. Done. You can now go back to the editor mode by pressing Esc, and the tab will be there.
Note: do not place a Lakitu that throws Lakitus in a level permanently. It spawns more Lakitus exponentially, and will eventually cause the game to crash or be unplayable. If you placed the Lakitu and then saved and tested, remove it as soon as you get the tab. If you placed the Lakitu in the real time editor, either press Esc before before they crash the game or type wariotime. It will turn them all into coins. :D

Also, here's what the secret NPCs do (in order):
Spoiler: show
  • Player Fireball: Falls down and poofs when touches the ground. Kills an enemy at contact.
    Link's Sword Beam: Floats in the air for a second, then poofs. Kills enemies at contact.
    Peach Bomb: Falls down and explodes when touches the ground. Kills enemies at contact.
    Ice Yoshi Ice Cube: Nothing.
    Ice Flower Ice Cube: Animates with two 32x32 pieces of the graphic as the frames when holding with the cursor, but is invisible after placing in the editor and in the playing mode. However, the player can hold it and throw it at enemies.
    Bubble: Pops.
    SMB3 Bowser Flame: Floats in the air. Hits the player at contact.
    SMW Little Flame: Floats in the air. Hits the player at contact.
    Venus Fire Trap Fireball: Floats in the air. Hits the player at contact.
    Rinka: Floats in the air for a moment, then starts moving towards the player. Hits the player at contact.
    Wart Bubble: Falls off screen. Hits the player at contact.
    Snifit Bullet: Floats in the air. Hits the player at contact.
    Blue Beach Koopa: Walks, cliffturns, kicks the shells on its way. The only difference to the one in the SMW tab is that this one can't kick the SMB3 carriable bricks.
    Larry Koopa Shell: Chases the player for a while, then turns into Larry Koopa.
    Airship piece: The player can ride it much like the Clown Car, but this doesn't kill enemies and Mario can easily fall off by hitting any sort of blocks. Quite glitchy.
    Iceflower Iceball: Falls down and poofs. Freezes an enemy at contact.
    Hammersuit Hammer: Falls down. Kills enemies at contact.
    Toad Boomerang: Flies ridiculously fast off screen. Kills enemies at contact.
    Yoshi Fireball: Flies left or right and kills enemies on its way.
    Toothy without the pipe: Disappears immediately.
    Herb without contents: Floats 16 pixels higher than the actual Herb. When picked up, the player gets an invisible object in his/her hands. When thrown, the player can jump on it and get bounced off it, and it will fall off screen. It can't hurt enemies.
    Diggable Sand: Can be dug. The only difference from the one in the SMB2 blocks tab is that the poof effect doesn't lift up. It just poofs at the place where the sand would be if the player could hold it.
    Ludwig von Koopa Flame: Floats in the air. Hits the player at contact.
    Volcano Lotus Fireball: Slowly falls off screen. Hits the player at contact.
    Larry Koopa Magic Ring: Floats in the air. Hits the player at contact.
    Hammer Bro. Hammer: Falls off screen. Hits the player at contact.
    Birdo Egg: Falls off screen. Hits the player at contact.
    SMW Lakitu: Flies around at the top part of the screen and throws Lakitus that throw more Lakitus (they spawn exponentially).
    Ludwig von Koopa Shell: Chases the player jumping a bit for a while, then turns into Ludwig von Koopa.
Most of these can also be thrown by Lakitu, buried, put inside eggs and bubbles and put in a generator.
I hope this helps. If you have any questions, post them here.
Last edited by Valtteri on Mon Feb 10, 2014 8:23 am, edited 2 times in total.

FallingSnow
Nipper
Nipper
Posts: 822
Joined: Sat Dec 21, 2013 4:32 am

Re: SMBX NPC Code List

Postby FallingSnow » Sun Jan 05, 2014 12:37 pm

As far as decimals crashing for people, I'm curious if replacing the periods with commas would fix it. I know some other languages switch the two. If some people whose PCs crashes when using periods could try that, it might help to find if there is a solution.

Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: SMBX NPC Code List

Postby Valtteri » Sun Jan 05, 2014 6:10 pm

FallingSnow wrote:As far as decimals crashing for people, I'm curious if replacing the periods with commas would fix it. I know some other languages switch the two. If some people whose PCs crashes when using periods could try that, it might help to find if there is a solution.
It doesn't work. SMBX doesn't recognize commas.

FutureNyanCat
Rocky Wrench
Rocky Wrench
Posts: 696
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

Re: SMBX NPC Code List

Postby FutureNyanCat » Thu Jan 16, 2014 7:36 am

Also, the way SMBX recognizes if there are periods or not could be based on your keyboard layout, I think...

Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: SMBX NPC Code List

Postby Valtteri » Thu Jan 16, 2014 9:48 am

There is no other solution. You just mustn't use decimals if you want everyone to be able to play your level.

Bj007pro
Guest

Re: SMBX NPC Code List

Postby Bj007pro » Sat Jan 25, 2014 5:20 pm

What the hell doso boolean mean?

Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: SMBX NPC Code List

Postby Valtteri » Sat Jan 25, 2014 5:42 pm

Boolean means 1 (or higher) for yes and 0 for no. My original list had it explained in a simple way but somebody felt the need to make it look more complex than it really is.

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: SMBX Cheat Code Index

Postby bossedit8 » Mon Jan 27, 2014 12:13 am

Here is what I did with at least some of the cheat codes:



No Ingame Sounds (mostly) because Videospeed.

Bj007pro
Guest

Re: SMBX Cheat Code Index

Postby Bj007pro » Mon Jan 27, 2014 12:28 am

bossedit8 wrote:Here is what I did with at least some of the cheat codes:



No Ingame Sounds (mostly) because Videospeed.

How do you have Supermariobros1/2/4/8/16/32/64/128 and give all the flamethrower cheat, and how do you freeze the the game instantly without typing the clock cheat code?

icemario12
Tweeter
Tweeter
Posts: 157
Joined: Thu Dec 26, 2013 5:49 pm
Pronouns: He/Him
Contact:

Re: SMBX NPC Code List

Postby icemario12 » Wed Mar 05, 2014 4:46 pm

Valtteri wrote:
FallingSnow wrote:As far as decimals crashing for people, I'm curious if replacing the periods with commas would fix it. I know some other languages switch the two. If some people whose PCs crashes when using periods could try that, it might help to find if there is a solution.
It doesn't work. SMBX doesn't recognize commas.
Actually, my computer is XP and can read decimals with commas. It can't read those with periods. Thanks to that I couldn't play 3 whole episodes :oops:

Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

Re: SMBX NPC Code List

Postby Valtteri » Wed Mar 05, 2014 5:32 pm

icemario12 wrote:Actually, my computer is XP and can read decimals with commas. It can't read those with periods. Thanks to that I couldn't play 3 whole episodes :oops:
That's surprising. Replacing the periods with commas does not fix the crashing problem for me.

Axiom
Foo
Foo
Posts: 1471
Joined: Tue Dec 24, 2013 2:23 pm

Re: SMBX NPC Code List

Postby Axiom » Sat Mar 29, 2014 8:15 pm

http://stackoverflow.com/questions/6428 ... -separator

This might have to do with why
Not sure as to how much of this applies to VB6 but I know that in .NET I have to be careful with decimals and such.

Veudekato
Guest

Re: SMBX Cheat Codes

Postby Veudekato » Tue Apr 29, 2014 10:08 am

he typing cheatcode. but delete from video moments when he type

Tango
Volcano Lotus
Volcano Lotus
Posts: 575
Joined: Fri Apr 25, 2014 12:06 pm
Contact:

Re: SMBX Cheat Codes

Postby Tango » Tue Apr 29, 2014 1:55 pm

I don't like use cheats, mainly why this erase the fun of the game. But yes, who never used supermario128 cheat?

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: SMBX Cheat Codes

Postby bossedit8 » Tue Apr 29, 2014 3:07 pm

Miles Troopa wrote:I don't like use cheats, mainly why this erase the fun of the game. But yes, who never used supermario128 cheat?
If I am bored, getting fun or making a Video about it, I will use it because I really like it.



Original Link: http://www.youtube.com/watch?v=d7YucCEtBRE

zlaker
Birdo
Birdo
Posts: 2844
Joined: Fri Dec 20, 2013 1:46 pm

Re: SMBX Cheat Codes

Postby zlaker » Tue Apr 29, 2014 5:07 pm

When I test levels I don't use them. Even if the level is super hard I don't use it. I use it for fun sometimes though..

RudeGuy
Fry Guy
Fry Guy
Posts: 4993
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: SMBX Cheat Codes

Postby RudeGuy » Wed Apr 30, 2014 9:37 am

Miles Troopa wrote:I don't like use cheats, mainly why this erase the fun of the game. But yes, who never used supermario128 cheat?
the cheats supermario2, supermario4, supermario128 etc. are used just for fun. Also one time I used the supermario4 cheat to make 4 different player (in-game) and show a screenshot of it.

bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: The Secret "The Lakitus are throwing Lakitus!" Editor Ta

Postby bossedit8 » Thu May 01, 2014 11:23 am

Experiment on "The Lakitus are throwing Lakitus!" I did:



Original YouTube Video Link: http://www.youtube.com/watch?v=Zb_eoe8Trto

lighthouse64
Charged Spiny
Charged Spiny
Posts: 1804
Joined: Sat Apr 26, 2014 6:28 am

Re: SMBX NPC Code List

Postby lighthouse64 » Fri Jun 13, 2014 11:44 am

BTW what language does SMBX use.

RudeGuy
Fry Guy
Fry Guy
Posts: 4993
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: SMBX NPC Code List

Postby RudeGuy » Fri Jun 13, 2014 11:47 am

lighthouse64 wrote:BTW what language does SMBX use.
Ehm...English.


Return to “Guides”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari