Preventing coins from changing into rupees

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

Moderator: Userbase Moderators

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Preventing coins from changing into rupees

Postby TheGameyFireBro105 » Thu May 28, 2020 9:13 am

I really need it for this thing I'm up to. I want to make a yoshi's island level, but every time I try to change the rupee graphics to the size of a coin, they become invisible.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Preventing coins from changing into rupees

Postby Emral » Thu May 28, 2020 10:23 am

Look near the bottom of this page to find the variables you need to set to determine the coins Link spawns:
https://wohlsoft.ru/pgewiki/SMBX_Fields

Example (in luna.lua):

Code: Select all

Defines.kill_drop_link_rupeeID1 = 10 --(SMB3 coin)
Last edited by Emral on Thu May 28, 2020 10:50 am, edited 1 time in total.

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Preventing coins from changing into rupees

Postby TheGameyFireBro105 » Thu May 28, 2020 10:28 am

I'm not the best at lua coding. Can you give me a lua script that does it?

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Preventing coins from changing into rupees

Postby Emral » Thu May 28, 2020 10:50 am

TheGameyFireBro105 wrote:
Thu May 28, 2020 10:28 am
I'm not the best at lua coding. Can you give me a lua script that does it?
Yes, I can. It's in the previous post. I trust you know how to make a file called luna.lua (it can be done through the SMBX2 editor, for instance, by using the "Script" menu at the top). My script only covers one of the 3 rupee ids. For the other two, I linked the docs for reference. The names are near the bottom of the page, but you can use CTRL+F to search for the name I used in my example, too.

TheGameyFireBro105
Eerie
Eerie
Posts: 747
Joined: Thu Jan 09, 2020 6:09 pm
Flair: Good at remakes
Pronouns: he/him

Re: Preventing coins from changing into rupees

Postby TheGameyFireBro105 » Thu May 28, 2020 11:33 am

Enjl wrote:
Thu May 28, 2020 10:50 am
TheGameyFireBro105 wrote:
Thu May 28, 2020 10:28 am
I'm not the best at lua coding. Can you give me a lua script that does it?
Yes, I can. It's in the previous post. I trust you know how to make a file called luna.lua (it can be done through the SMBX2 editor, for instance, by using the "Script" menu at the top). My script only covers one of the 3 rupee ids. For the other two, I linked the docs for reference. The names are near the bottom of the page, but you can use CTRL+F to search for the name I used in my example, too.
When i tried, it said thers a missing ) even though it isn't missing!

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9891
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Preventing coins from changing into rupees

Postby Emral » Thu May 28, 2020 11:36 am

TheGameyFireBro105 wrote:
Thu May 28, 2020 11:33 am
When i tried, it said thers a missing ) even though it isn't missing!
I will need to see the contents of your luna.lua to troubleshoot that.


Return to “LunaLua Help”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari