Page 1 of 1

Using coins to buy stuff?

Posted: Fri Jan 16, 2015 8:52 am
by 12Me21
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.

Re: Using coins to buy stuff?

Posted: Fri Jan 16, 2015 8:59 am
by Mivixion
I think it's possible with LunaDLL and/or LunaLua, but I'm no expert on the code there.

Re: Using coins to buy stuff?

Posted: Fri Jan 16, 2015 9:48 am
by HeroLinik
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.

Re: Using coins to buy stuff?

Posted: Fri Jan 16, 2015 1:06 pm
by 12Me21
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

Re: Using coins to buy stuff?

Posted: Fri Jan 16, 2015 4:16 pm
by Veudekato