Cheat Codes, Custom NPC Codes, Hidden NPC Tab

Share guides you have written for SMBX, and related tools here.
FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: SMBX NPC Code List

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

lighthouse64 wrote:BTW what language does SMBX use.
The codes are English. The interface is also English, but you can type whatever you want in layer and event name, event messages, and npc messages.

Marina
Cecil
Cecil
Posts: 2346
Joined: Sun May 25, 2014 7:01 am
Flair: Pachinko
Pronouns: she/her/they/them

Re: SMBX NPC Code List

Postby Marina » Fri Jun 13, 2014 11:48 am

Christian07 wrote:
lighthouse64 wrote:BTW what language does SMBX use.
Ehm...English.
Coding language you know-it-all :P

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 1:41 pm

NO I meant the code language.

Sorry

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

Re: SMBX NPC Code List

Postby Valtteri » Fri Jun 13, 2014 2:20 pm

lighthouse64 wrote:NO I meant the code language.

Sorry
Visual Basic.

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 3:01 pm

Is it possible to do actually coding for the npc's??? Like changing behavior? I'm expecting a no. :(

Mable
Ludwig
Ludwig
Posts: 5806
Joined: Sat Dec 21, 2013 4:23 am
Contact:

Re: SMBX NPC Code List

Postby Mable » Fri Jun 13, 2014 3:07 pm

You right no.

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

Re: SMBX Cheat Codes

Postby bossedit8 » Sat Jun 21, 2014 1:48 pm

More stuff what I did by cheating:



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

HenryRichard
Birdo
Birdo
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

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

Postby HenryRichard » Sat Jun 21, 2014 4:01 pm

The toad boomerang will return to you if it is buried, dug up, and thrown. Just thought I'd let the people know.

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

Re: SMBX NPC Code List

Postby lighthouse64 » Sun Jun 22, 2014 1:27 am

Valtteri wrote:
Spoiler: show
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 (0-7 are eighths of the default speed, 8 is the default speed and 9 and bigger are the default speeds multiplied**)
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, do not use decimals in NPC codes. It causes crashing on some people. Thank you.
**Frame speed value clarification:
Spoiler: show
    • framespeed=1 - eight times faster than the original frame speed.
      framespeed=2 - four times faster than the original speed.
      ...
      framespeed=4 - two times faster than the original speed.
      ...
      framespeed=8 - normal. No changes to the framespeed.
      ...
      framespeed=16 - half as fast as the original framespeed.
    So, if you're good at maths, you can see that the framespeed= values are eights of the original frame frequencies. 1 makes it 8 times faster, 8 does nothing and 16 makes it twice as slow. So, in percentage, the values would go like this:
    • framespeed=1 - 800%
      framespeed=2 - 400%
      framespeed=3 - 267% (rounded)
      framespeed=4 - 200%
      framespeed=5 - 160%
      framespeed=6 - 133% (rounded)
      framespeed=7 - 114% (rounded)
      framespeed=8 - 100%
      framespeed=9 - 89% (rounded)
      framespeed=10 - 80%
      framespeed=11 - 73% (rounded)
      framespeed=12 - 67% (rounded)
      framespeed=13 - 62% (rounded)
      framespeed=14 - 57% (rounded)
      framespeed=15 - 53% (rounded)
      framespeed=16 - 50%
***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.
]
What are the npc number codes??? Like a goomba from smb3 is npc-1.

Julia Pseudo
Ludwig
Ludwig
Posts: 5604
Joined: Wed Jan 08, 2014 12:04 am
Flair: gay gaymer girl
Pronouns: She/her

Re: SMBX NPC Code List

Postby Julia Pseudo » Sun Jun 22, 2014 3:15 am

^
This topic has all of the NPC numbers listed. See Magician's post a little way down in the first page for an easier to read version that includes the SMB2 NPCs.

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

Re: SMBX NPC Code List

Postby lighthouse64 » Sun Jun 22, 2014 1:38 pm

Thx so much. :D I checked that post out and it sure did have all the numbers.

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

Re: SMBX NPC Code List

Postby Axiom » Sun Jun 22, 2014 5:29 pm


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

Re: SMBX Cheat Codes

Postby lighthouse64 » Wed Jul 02, 2014 8:12 am

Christian07 wrote:
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.
I agree. Although they do make your game lag (especially supermario 128) they are really funny.

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

Re: SMBX Cheat Codes

Postby bossedit8 » Wed Jul 02, 2014 8:18 am

lighthouse64 wrote:Although they do make your game lag (especially supermario 128) they are really funny.
Well, it depends how strong your PC is. If there are a lot of objects (especially foreground objects like lava and keys) anyway no matter how strong your PC is it will lag.

Maruiki
Hoopster
Hoopster
Posts: 106
Joined: Thu Apr 17, 2014 12:33 pm

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

Postby Maruiki » Fri Jul 18, 2014 3:16 pm

This is pretty cool. But like you said, Valtteri, some of the things are buggy. There's not much else to say about it other than saying it's cool. :P

crusher169
Flurry
Flurry
Posts: 351
Joined: Tue Apr 22, 2014 9:09 am

Re: SMBX Cheat Codes

Postby crusher169 » Sat Jul 19, 2014 10:48 pm

well after beating an episode I usually play the episode again but with cheats.

Rare
Snifit
Snifit
Posts: 217
Joined: Mon Mar 17, 2014 1:18 am

Re: SMBX NPC Code List

Postby Rare » Sun Jul 20, 2014 5:11 pm

What if I wanted to make the NPC Bounce when stomped (like a goomba) is that possible because im trying to replace the SMW Checkpoint with a Crash Bandicoot Checkpoint Crate so when the player stomps on the NPC (Checkpoint) he bounces

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 Jul 20, 2014 6:02 pm

RarePairGaming wrote:What if I wanted to make the NPC Bounce when stomped (like a goomba) is that possible because im trying to replace the SMW Checkpoint with a Crash Bandicoot Checkpoint Crate so when the player stomps on the NPC (Checkpoint) he bounces
No. I can think of a few other ways though. You could apply playerblocktop=0 to npc-58 which will make the player bounce off it and then place it so the player will fall on it when he/she obtains the Checkpoint and make it disappear after a while if necessary.

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

Re: SMBX Cheat Codes

Postby lighthouse64 » Fri Jul 25, 2014 12:11 am

crusher169 wrote:well after beating an episode I usually play the episode again but with cheats.
LOL I'm such a fail at playing smbx levels (except for mine :P) so I use cheats a lot.

crusher169
Flurry
Flurry
Posts: 351
Joined: Tue Apr 22, 2014 9:09 am

Re: SMBX Cheat Codes

Postby crusher169 » Fri Jul 25, 2014 12:19 am

lol I suck at levels. I even got a game over on the first level of luigis fight for the mushroom kingdom. #FAIL


Return to “Guides”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari