Using coins to buy stuff?

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

12Me21
Swooper
Swooper
Posts: 74
Joined: Mon May 19, 2014 6:03 pm

Using coins to buy stuff?

Postby 12Me21 » Fri Jan 16, 2015 8:52 am

Is there a way to detect how many coins a player has? Like a shop where you can only get an item if you have, for example, 30 coins? I know you could make EVERY. SINGLE. COIN. trigger an event, but I don't want to do that.

Mivixion
Fuzzy
Fuzzy
Posts: 1052
Joined: Sat Dec 20, 2014 2:44 pm

Re: Using coins to buy stuff?

Postby Mivixion » Fri Jan 16, 2015 8:59 am

I think it's possible with LunaDLL and/or LunaLua, but I'm no expert on the code there.

HeroLinik
Larry Koopa
Larry Koopa
Posts: 3462
Joined: Fri Dec 20, 2013 1:28 pm
Contact:

Re: Using coins to buy stuff?

Postby HeroLinik » Fri Jan 16, 2015 9:48 am

12Me21 wrote:Is there a way to detect how many coins a player has? Like a shop where you can only get an item if you have, for example, 30 coins? I know you could make EVERY. SINGLE. COIN. trigger an event, but I don't want to do that.
No, it's not possible without LunaDLL. And it's not possible to set every single coin to its own individual event because there simply isn't enough space to fit all the events, and it suggests you have to collect the coins in a set order, when in reality you can do it in any order, screwing up the events.

12Me21
Swooper
Swooper
Posts: 74
Joined: Mon May 19, 2014 6:03 pm

Re: Using coins to buy stuff?

Postby 12Me21 » Fri Jan 16, 2015 1:06 pm

castlewars wrote: it's not possible to set every single coin to its own individual event because there simply isn't enough space to fit all the events, and it suggests you have to collect the coins in a set order, when in reality you can do it in any order, screwing up the events.
If there were only a few coins, you could... also there is a way of calculating how many coins, It's just very complicated

Veudekato
Guest

Re: Using coins to buy stuff?

Postby Veudekato » Fri Jan 16, 2015 4:16 pm



Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari