[NPC Creator 1.3.3] - A tool designed to make anything you want

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

[NPC Creator 1.3.3] - A tool designed to make anything you want

Postby MegaDood » Sat Apr 19, 2025 6:12 am

Image

The mystery NPC is finally here! And that mystery is the NPC Creator!!

A tool designed to make just about anything you want, without having to write ANY CODE!!!.

Just load the NPC Creator into your level, and use the provided extra settings to make the things of your dreams!

You can load any image, PNGs, GIFs, JPGs etc with any file name, and you can make them have a variety of behaviors or states.

So go ahead! Make the things you've always wanted to.

Gifs featuring the NPC Creator: show
Image
Image
Changelog: show

1.3.3 - Fixed a bug with redirectors.

1.3.2 - Adds some new stuff.
* Rotation can now be set to face the player
* NPCs that act as a spring dont need to have a bounce animation, check the green spring example to see what I mean.
* NPCs can now change states when grabbed.

1.3.1 - Fixes a bug where NPCs can be killed twice if currently dying.

1.3 - Adds the ability to gradually slow and NPC down when changing states, documentation and fixes some bugs.

[1.2]
* NPCs can now be set to follow line guides
* Fixed a bug where state changes could trigger on level load regardless of section
* Fixed noblockcollision being set to false when the npc loaded
* Fixed a bug where the NPC would repeatedly jump on slopes
* Added the ability to attach NPCs to redirectors
* Added a "shake" option, useful for indicating attacks or changing states
* Added the ability to fire multiple spawned npcs at once, and you can set how they spawn
* You can randomise the speed of each spawned npc!
* NPCs now act as a container, and will drop their contents on death
* NPCs have a new rotation option - the option to rotate in the air based on speed.
* You can now set NPCs to harm the player on jump per phase
* You can now set NPCs to act like a spring
* Spawned NPCs can now be set to die when the parent does
* Death effects can be handled internally, meaning you don't need a death effect if you don't want to. NPCs using this can spawn a squashed image of themselves, fall offscreen among other things!
* Sound effects and effects can be randomised like with states, and are handled better internally
* NPCs can be set to move like a Zelda 2 Bot
* A general timer that affects horizontal and vertical movement has been added. It does something different for each behaviour.
* NPCs are now affected by twisters, but you can blacklist it by removing the line "twisterai.whitelist(id)" in the AI file.
* NPCs can act as vines
* NPCs can act as coins, with a value you can set
* The UI has been improved a bit
* Paralyse code has been improved, and you can also set it to be paralysed from anything.
* NPCs can change states when colliding with the player, or any NPC.
* You can specify a starting phase for NPCs
* You can attach other NPCs to "trail" your creation. It can be set to be positioned anywhere, as well as following like a flame chomp and circling like a shield.
* You can make the NPC's animation be controlled with the state timer, rather than the usual one
* You can flip NPCs over like a galoomba
* You can set NPCs to be picked up and thrown on a per state basis
* Spawned effects can have X and Y speed
* You can now change states when entering / exiting water
* NPCs can be set to jump upon changing states
* NPCs can now be set to be affected by water physics
* NPCs can have a specific direction set when changing phases
* NPCs can now perform melee attacks, by sending out a hitbox that can be controlled, you can make them harm NPCs, blocks and even players!
* NPCs can now follow Waypoints, a separate NPC that must be linked with the NPC Creator. You can do this by giving the Waypoint an id via the extra settings, and typing that same id into the NPC Creator to refer to it. It
* Effects can now be spawned anytime, and at random spots.

1.1 - Many smaller updates idk what they were
1.0 - Released!
Documentation: https://docs.google.com/document/d/1VsO ... sp=sharing

Also, check out this thread to submit some of your own creations to the world!
viewtopic.php?t=30148





Download:
https://drive.google.com/file/d/1wKnIrE ... sp=sharing
Last edited by MegaDood on Sun May 18, 2025 8:35 am, edited 14 times in total.

Margineanu65
Goomba
Goomba
Posts: 1
Joined: Thu Mar 20, 2025 2:36 pm
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want

Postby Margineanu65 » Sat Apr 19, 2025 6:30 am

this is so awesome holy moly

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: [NPC Creator] - A tool designed to make anything you want

Postby Blake Izayoi » Sat Apr 19, 2025 10:06 am

What an outstanding creation!! This will surely help out less experienced folks make levels with whatever kind of NPC their hearts desire. Fantastic work!!

Doodoxing
Swooper
Swooper
Posts: 64
Joined: Wed Feb 05, 2014 12:09 pm
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want

Postby Doodoxing » Sat Apr 19, 2025 10:17 am

A few dreams just came true. Before we've got a ton of new powerups and now this... Wonderful work! Sure that I will try this put. This tool is just perfect for people who don't know custom scripts, just like me.

Cat king
Buster Beetle
Buster Beetle
Posts: 85
Joined: Thu Feb 29, 2024 1:04 pm
Flair: Mario kart wii is #1
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want

Postby Cat king » Sat Apr 19, 2025 12:03 pm

When I saw this, my jaw dropped. This is awesome, man! Good work! :D :D :D :D :D :D 8-) 8-) 8-) 8-) 8-)
EDIT: Video doesn't work for me. It is probably just me because I have filter settings that are a little over-aggresive on that I never turned off.

Retro
2025 Egg Hunter
2025 Egg Hunter
Posts: 301
Joined: Thu Jul 25, 2024 5:34 am
Flair: fish
Pronouns: i identify as sand

Re: [NPC Creator] - A tool designed to make anything you want

Postby Retro » Sat Apr 19, 2025 12:31 pm

Well...Ill'be damned...

JackTBS
Shy Guy
Shy Guy
Posts: 5
Joined: Tue Aug 15, 2023 7:13 am
Pronouns: He/Him
Contact:

Re: [NPC Creator] - A tool designed to make anything you want

Postby JackTBS » Sat Apr 19, 2025 3:17 pm

AWESOME!! Whenever I try to open the properties, it takes a whole second just to load the whole thing. That's how you know it's good lol

mariobrigade2018
Rocky Wrench
Rocky Wrench
Posts: 628
Joined: Wed May 24, 2023 7:00 pm
Flair: OK in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want

Postby mariobrigade2018 » Sat Apr 19, 2025 3:33 pm

Ok what the hell is this peakitry

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby MegaDood » Sat Apr 19, 2025 11:47 pm

Small update: Optimizes some code to make things run better. Thanks MrDoubleA!
You'll notice a few things like block collision and hp may be messed up, just reset them on your npc and it'll work fine again.

Edit: Adds the ability to stun the player when the npc lands on the ground.
Be sure to check you have the latest version when copy pasting npcs from other people.

Alucard648
Flurry
Flurry
Posts: 176
Joined: Sun Aug 16, 2015 3:45 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby Alucard648 » Sun Apr 20, 2025 1:22 am

Another fantastic work! Especially long-awaited Instant-killer option for NPCs (used by Omniman in demo).
Bugs found:
If SMW Skewer (ID#423 and 424) hits Omniman, the script crashes:
ImageImage
Same thing happens when NPC is hit by it`s own explosion.

As for room for improvement, an option to move like Graf/Van De Graf would be great addition.

Squishy Rex
Tellah
Tellah
Posts: 1985
Joined: Sat Dec 21, 2013 4:30 am
Pronouns: he/him
Contact:

Re: [NPC Creator] - A tool designed to make anything you want

Postby Squishy Rex » Sun Apr 20, 2025 1:30 am

Alucard648 wrote:
Sun Apr 20, 2025 1:22 am
If SMW Skewer (ID#423 and 424) hits Omniman, the script crashes:
I'm sorry but that second screenshot is absolutely cursed.

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby MegaDood » Sun Apr 20, 2025 2:19 am

Another update!
Lets you change states via triggering events, play a sound when the npc gets hit and you can spawn offset spawned effects!

Added in 30 minutes 18 seconds:
Alucard648 wrote:
Sun Apr 20, 2025 1:22 am
Another fantastic work! Especially long-awaited Instant-killer option for NPCs (used by Omniman in demo).
Bugs found:
If SMW Skewer (ID#423 and 424) hits Omniman, the script crashes:
ImageImage
Same thing happens when NPC is hit by it`s own explosion.

As for room for improvement, an option to move like Graf/Van De Graf would be great addition.
Fixed!
Check the download link

Alucard648
Flurry
Flurry
Posts: 176
Joined: Sun Aug 16, 2015 3:45 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby Alucard648 » Sun Apr 20, 2025 4:55 am

MegaDood wrote:
Sun Apr 20, 2025 2:49 am
Fixed!
Check the download link
Bugfix confirmed. Thanks.

AlphaBlue1011
Spiny
Spiny
Posts: 29
Joined: Sun Feb 02, 2025 3:00 pm
Flair: never underestimate hyperfixations :3
Pronouns: she/her or they/them

Re: [NPC Creator] - A tool designed to make anything you want

Postby AlphaBlue1011 » Sun Apr 20, 2025 8:59 pm

Would there ever be documentation for this? Would be nice for anyone like me trying to figure out how things like phases work.

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby MegaDood » Sun Apr 20, 2025 11:20 pm

AlphaBlue1011 wrote:
Sun Apr 20, 2025 8:59 pm
Would there ever be documentation for this? Would be nice for anyone like me trying to figure out how things like phases work.
I havent made one yet but I might in the future, depends on how much time I get free since I've got work coming up.

In the meantime, released another update! Adds two new general movement options: Flame Chomp and Phanto movement.

Alucard648
Flurry
Flurry
Posts: 176
Joined: Sun Aug 16, 2015 3:45 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby Alucard648 » Mon Apr 21, 2025 6:44 am

Got some ideas:
1. Use random number from given list, to define phase to shift to.
2. Option for NPC to work with line guides.
3. Option to define NPC as container, so it can release it`s contents, when killed, regardless of current phase.
4. Continuous SFX play with fixed interval (Mad Piano: "Chomp, Chomp, Chomp...").
5. Multiple spawning NPCs at time (spread shot projectile attack).

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby MegaDood » Mon Apr 21, 2025 7:23 am

Released another small update, just mostly bugfixes but yeah

Cat king
Buster Beetle
Buster Beetle
Posts: 85
Joined: Thu Feb 29, 2024 1:04 pm
Flair: Mario kart wii is #1
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want

Postby Cat king » Mon Apr 21, 2025 11:36 am

One idea I had if possible is could one make the phases in different tabs of sorts? Currently the current system is really annoying scrolling through such a long list but if they were separated on a phase to phase basis then it would make it a lot easier. Good Work nonetheless!

MegaDood
Charged Spiny
Charged Spiny
Posts: 1816
Joined: Wed Nov 01, 2017 2:43 am

Re: [NPC Creator] - A tool designed to make anything you want

Postby MegaDood » Mon Apr 21, 2025 5:55 pm

Cat king wrote:
Mon Apr 21, 2025 11:36 am
One idea I had if possible is could one make the phases in different tabs of sorts? Currently the current system is really annoying scrolling through such a long list but if they were separated on a phase to phase basis then it would make it a lot easier. Good Work nonetheless!
Thanks, that was my original plan but unfortunately SMBX2 extra settings dont allow multiple pages

Cat king
Buster Beetle
Buster Beetle
Posts: 85
Joined: Thu Feb 29, 2024 1:04 pm
Flair: Mario kart wii is #1
Pronouns: he/him

Re: [NPC Creator] - A tool designed to make anything you want [1.1]

Postby Cat king » Tue Apr 22, 2025 5:38 pm

Not sure if this is a bug or not, but if the setting 'Jump Over blocks' is turned on then the NPC will jump whenever it encounters slopes. This is also an issue if the setting 'Jump Over Gaps' is turned on, jumping whenever it encounters slopes.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari