Boomerang Suit?

Post here for help and support regarding LunaLua and SMBX2's libraries and features.

Moderator: Userbase Moderators

Maxjacinto2
Swooper
Swooper
Posts: 73
Joined: Sat Dec 28, 2013 5:21 pm
Flair: YNWA

Boomerang Suit?

Postby Maxjacinto2 » Thu Mar 26, 2020 3:50 pm

So, I was wondering if it is possible to add a new power-up (without replacing existing ones) that allow Luigi to throw Toad's boomerang. I have seen that somebody was able to make a Bubble power-up some years ago, but I don't know if a code similar to that would work.

PdizzleParker
Chain Chomp
Chain Chomp
Posts: 324
Joined: Fri Aug 10, 2018 11:26 am
Flair: doin your mom
Pronouns: they/them
Contact:

Re: Boomerang Suit?

Postby PdizzleParker » Thu Mar 26, 2020 3:54 pm

Maxjacinto2 wrote:
Thu Mar 26, 2020 3:50 pm
So, I was wondering if it is possible to add a new power-up (without replacing existing ones) that allow Luigi to throw Toad's boomerang. I have seen that somebody was able to make a Bubble power-up some years ago, but I don't know if a code similar to that would work.
That depends on what version of SMBX you're using are you using 2.0 or 38a?

Maxjacinto2
Swooper
Swooper
Posts: 73
Joined: Sat Dec 28, 2013 5:21 pm
Flair: YNWA

Re: Boomerang Suit?

Postby Maxjacinto2 » Thu Mar 26, 2020 3:57 pm

2.0 Beta 4 at the moment

DrMekar
Eerie
Eerie
Posts: 781
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: Boomerang Suit?

Postby DrMekar » Thu Mar 26, 2020 4:12 pm

Maxjacinto2 wrote:
Thu Mar 26, 2020 3:57 pm
2.0 Beta 4 at the moment
Okay, though without replacing another one it's NOT possible at the moment.

MrDoubleA
Ripper II
Ripper II
Posts: 394
Joined: Mon Aug 20, 2018 7:02 am
Flair: How much munchers?

Re: Boomerang Suit?

Postby MrDoubleA » Tue Mar 31, 2020 1:14 pm

DrMekar wrote:
Thu Mar 26, 2020 4:12 pm
Maxjacinto2 wrote:
Thu Mar 26, 2020 3:57 pm
2.0 Beta 4 at the moment
Okay, though without replacing another one it's NOT possible at the moment.
Even if it may not be possible to truly add new powerups, it is possible to create the illusion of new powerups at the moment. Regardless, it's not exactly easy at the moment. Personally, I'd wait for Novarender's Custom Powerups System (if he's still working on it, that is).

yoshiegg
Monty Mole
Monty Mole
Posts: 122
Joined: Mon Jan 25, 2016 9:20 am

Re: Boomerang Suit?

Postby yoshiegg » Mon Apr 20, 2020 1:11 pm

As we have a range of dummy npc since, I think, Beta 3, I imagine you could create a new NPC in that range having the same behavior and properties of a vanilla powerup and then make an onNPCKill event in lua setting a variable to true. Now you only need to set this variable back to false if the powerup state of the player is unequal to the one the new NPC turns the player into or if the player collects another powerup that makes him turn into that state. I have seen someone (TheDinoKing, if I remember correctly) using this method to add a superball flower over one of the three fireflower slots. However, I'm not the greatest expert there is when it comes to NPC modification so please correct me incase I'm wrong or approve if this is indeed possible.
Another thought of mine would be just making that NPC collectable, then toggle a variable to true when collecting it and make it change to false when the player is hit via a player:mem offset or when he collects a powerup via the onNPCKill event with if KiledNPC.id == 9 or killedNPC.id == 14 and so on (the npc ids of all powerups except for the mushrooms). Also I think you might want to look into the AnotherPowerup Script written by Enjl.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari