Code Request: Power-Up Mario Hurt Transition

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
electricpretzel0
Fighter Fly
Fighter Fly
Posts: 60
Joined: Sun Jan 26, 2014 5:27 pm

Code Request: Power-Up Mario Hurt Transition

Postby electricpretzel0 » Sat Nov 16, 2019 11:15 am

Hi everyone,

This is my first code request, so excuse me if it is not the proper way to do so.

I've noticed in SMBX 38A when Mario is powered up (Not just a mushroom) and he gets hurt, he become small again. In NSMB, this is not the case. A powered up Mario goes directly to his super form, big Mario, instead of his small form. What I'm proposing is code that could overwrite the memory location for this transition such that a powered up Mario becomes super Mario instead.

Any help is appreciated.

Thanks
I want a brand new python-support SMBpy one day.

User avatar
Cedur
Blue Yoshi Egg
Blue Yoshi Egg
Posts: 5151
Joined: Tue Jun 28, 2016 10:14 am
Flair: Save climate, cut fridays for whole-week future
Current Project: various playthroughs and tests

Re: Code Request: Power-Up Mario Hurt Transition

Postby Cedur » Sat Nov 16, 2019 1:17 pm

There does exist code for this both for 38A (Teascript) and X2 (LunaLua). It shouldn't take too long to find 38A episodes that do this
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why.

iphtechnologies wrote: NEO super mario world x is a really nice game. This Episode is 2,7 GB large at the moment.That`s crazy!
Please find similar post:
[ads]

User avatar
Daring Tombstone
Bit
Bit
Posts: 129
Joined: Mon Aug 28, 2017 10:57 pm
Flair: Sad I didn't fight Jirachi
Current Project: Something Maybe
Chat Username: Chaperone

Re: Code Request: Power-Up Mario Hurt Transition

Postby Daring Tombstone » Sun Nov 17, 2019 12:28 pm

It's very simple as far as X2 goes but you would need to have a local copy of altpsystem in your episode folder. For the PAL version you would need to go into data/scripts/Legacy and copy the "altpsystem" file into you episode folder. Rename this file in your episode folder to "local_altpsystem". Then write a lua script like this.

Image

It's as simple as that. When you have a fire flower/leaf whatever you won't go straight to small when you take damage anymore.

For teascript though I would have no idea. I've never dabbled in 1.4.
Happy Dance
Image
Check out my completed episode
Spoiler: show
Image
Check out my halloween level
Spoiler: show
Image

User avatar
electricpretzel0
Fighter Fly
Fighter Fly
Posts: 60
Joined: Sun Jan 26, 2014 5:27 pm

Power-Up Mario Hurt Transition

Postby electricpretzel0 » Sun Nov 17, 2019 7:26 pm

Hi guys,

I want code that overwrites the behavior of getting hurt. Even if you're powered up beyond a mushroom, you return to your smallest form when getting hurt, however in NSMB, this is not the case. Getting hurt means returning to your next highest state, so if you had a fire flower, you would lose your power up but retain the mushroom (being big).

Does anyone know what memory locations need to be overwritten for this to work?

Thanks in advance.
I want a brand new python-support SMBpy one day.

User avatar
Cedur
Blue Yoshi Egg
Blue Yoshi Egg
Posts: 5151
Joined: Tue Jun 28, 2016 10:14 am
Flair: Save climate, cut fridays for whole-week future
Current Project: various playthroughs and tests

Re: Power-Up Mario Hurt Transition

Postby Cedur » Mon Nov 18, 2019 2:55 am

You were given the answer already in your previous thread that was moved to Help & Support.

If you're looking for the 38A version then this is still the wrong place.
Image
More Supports: show

Image
Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why.

iphtechnologies wrote: NEO super mario world x is a really nice game. This Episode is 2,7 GB large at the moment.That`s crazy!
Please find similar post:
[ads]

User avatar
electricpretzel0
Fighter Fly
Fighter Fly
Posts: 60
Joined: Sun Jan 26, 2014 5:27 pm

Re: Code Request: Power-Up Mario Hurt Transition

Postby electricpretzel0 » Mon Nov 18, 2019 12:47 pm

Thanks for the solution.

Also, I thought my post disappeared because I couldn't find it. That's why I have that weird reply on this same thread. Please excuse me; Haven't posted anything in years xD
I want a brand new python-support SMBpy one day.


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 2 guests