How do I set the behavior for a custom Boss NPC?

Need help with any SMBX game-related issues? Ask your questions here.
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
Animebryan
Bit
Bit
Posts: 147
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

How do I set the behavior for a custom Boss NPC?

Postby Animebryan » Sun Nov 10, 2019 12:30 am

How do I set the behavior for a custom Boss NPC? Does it have to copy a pre-existing Boss NPC or can it be fully customizable, including generating other NPCs?
Need serious help with Lua based features :(

User avatar
1AmPlayer
Volcano Lotus
Volcano Lotus
Posts: 518
Joined: Sun May 21, 2017 3:36 am
Flair: I'm a hellspawn.
Current Project: SMB: Faraway Islands (Work in Progress Name)
Chat Username: IAmPx
Contact:

Re: How do I set the behavior for a custom Boss NPC?

Postby 1AmPlayer » Sun Nov 10, 2019 12:51 am

you can make a fully customizable ai for a boss npc if the npc id is in the custom range (751-1000). Creating an AI is the same process as how you would do it with custom NPCs. Generating other NPC is one of the simple ones, you can make it work on a timer, or certain conditions, then use NPC.spawn to spawn other NPCs.


Return to “Help and Support”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest