[NPC/Block] Extension Pack (2.1)

Share and discuss custom LunaLua code and content packs for SMBX2.
mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Thu May 09, 2024 2:56 pm

ComparatorClock wrote:
Thu May 09, 2024 1:43 pm
ComparatorClock wrote:
Thu May 09, 2024 1:28 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm


How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg
update: everything works now, thx!
Yea, Core forgot to mention that in her post when she introduced the ice bro and Venus Ice Trap. Glad to see it working now!

RotisserieSalad
Koopa
Koopa
Posts: 16
Joined: Tue Feb 06, 2024 3:57 pm
Flair: the terrible tormentor of twinks /j
Pronouns: he/him or they/them
Contact:

Re: [NPC/Block] Extension Pack (2.1)

Postby RotisserieSalad » Fri May 24, 2024 8:42 am

dragonfan96 wrote:
Wed May 08, 2024 12:25 am
RotisserieSalad wrote:
Tue May 07, 2024 7:43 pm
hey this is really cool but does anybody know how to change the time limit on the frog switch?
Open up the lua file for the frog switch, should be line 26 where it's apart of a table where it says "time = 180"
180 would equal 3:00 however you can change this to whatever you like, every 60 is 1:00(1 minute) for the timer

I recommend Notepad++ or Visual Studio Code for reading Lua script files, if you are unable to open them, or make modifying the file easier
thank you!

KJPopcorn
Fighter Fly
Fighter Fly
Posts: 41
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Sun May 26, 2024 11:58 pm

ComparatorClock wrote:
Thu May 09, 2024 1:43 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm
ComparatorClock wrote:
Tue May 07, 2024 1:30 pm
Hey, just an FYI, but the ice ball for the ice bros (aka NPC 832) is broken and needs to be fixed for beta 5.
How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg

Added in 15 minutes 31 seconds:
ComparatorClock wrote:
Thu May 09, 2024 1:28 pm
mariobrigade2018 wrote:
Tue May 07, 2024 6:15 pm


How is it broken? It works fine for me. Did you also copy the lua file for npc-263 (the ice cube)?
oh **** I was missing a lua file? gtg
update: everything works now, thx!
When I copy the 263 lua file, it doesn't work. I don't get it. =(

mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 3:29 am

KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?

KJPopcorn
Fighter Fly
Fighter Fly
Posts: 41
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 12:06 pm

mariobrigade2018 wrote:
Mon May 27, 2024 3:29 am
KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?
In the ice bro lua code.

mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 12:11 pm

KJPopcorn wrote:
Mon May 27, 2024 12:06 pm
mariobrigade2018 wrote:
Mon May 27, 2024 3:29 am
KJPopcorn wrote:
Sun May 26, 2024 11:58 pm
When I copy the 263 lua file, it doesn't work. I don't get it. =(
Where are you putting it?
In the ice bro lua code.
That's the problem. It will only work if it's in the npc-263 lua file, like this:

Image

(ignore the CGFX there, it's irrelevant)

KJPopcorn
Fighter Fly
Fighter Fly
Posts: 41
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 1:46 pm

Ok. So I copied the npc-833 lua code into the npc-263 code. And this is what happened:
Image
I'm losing hope. :(

P.s., I had the Ice Bro. reskinned for SMB1

mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 5:45 pm

KJPopcorn wrote:
Mon May 27, 2024 1:46 pm
Ok. So I copied the npc-833 lua code into the npc-263 code. And this is what happened:
Image
I'm losing hope. :(

P.s., I had the Ice Bro. reskinned for SMB1
NO! DON’T DO THAT! *sighs deeply* you copy the actual file for npc-263 (NOT THE CODE. THE ACTUAL FILE.) into your level/episode folder. If someone could post a gif of what I’m talking about, that would be greatly appreciated.

KJPopcorn
Fighter Fly
Fighter Fly
Posts: 41
Joined: Wed Mar 20, 2024 8:14 pm
Pronouns: He/Him

Re: [NPC/Block] Extension Pack (2.1)

Postby KJPopcorn » Mon May 27, 2024 6:18 pm

Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.

mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 7:51 pm

KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
And that’s unfortunately out of the scope for (almost) everyone. Maybe Core can add a alt version for it if you yell at her enough.

TLtimelord
Red Yoshi Egg
Red Yoshi Egg
Posts: 2673
Joined: Sat Dec 21, 2013 5:16 pm
Flair: Info under raps

Re: [NPC/Block] Extension Pack (2.1)

Postby TLtimelord » Mon May 27, 2024 11:13 pm

KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
setting it to "don't move" should do just fine. Otherwise, speed=0

mariobrigade2018
Flurry
Flurry
Posts: 354
Joined: Wed May 24, 2023 7:00 pm
Flair: Normie in coding who dreams of making a Mario game
Pronouns: he/him

Re: [NPC/Block] Extension Pack (2.1)

Postby mariobrigade2018 » Mon May 27, 2024 11:30 pm

TLtimelord wrote:
Mon May 27, 2024 11:13 pm
KJPopcorn wrote:
Mon May 27, 2024 6:18 pm
Image
Ok. Everything works now. Just got a little confused there. Heh heh heh. If only I could get it to sit still, though.
setting it to "don't move" should do just fine. Otherwise, speed=0
He means the enemy ice cube acting like the NSMB series (or 38a).


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 0 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari