Page 1 of 1
Preventing coins from changing into rupees
Posted: Thu May 28, 2020 9:13 am
by TheGameyFireBro105
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.
Re: Preventing coins from changing into rupees
Posted: Thu May 28, 2020 10:23 am
by Emral
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)
Re: Preventing coins from changing into rupees
Posted: Thu May 28, 2020 10:28 am
by TheGameyFireBro105
I'm not the best at lua coding. Can you give me a lua script that does it?
Re: Preventing coins from changing into rupees
Posted: Thu May 28, 2020 10:50 am
by Emral
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.
Re: Preventing coins from changing into rupees
Posted: Thu May 28, 2020 11:33 am
by TheGameyFireBro105
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!
Re: Preventing coins from changing into rupees
Posted: Thu May 28, 2020 11:36 am
by Emral
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.