LunaLua Offical Thread - SMBX Usermod Framework

This is the place for discussion and support for LunaLua and related modifications and libraries.

Shall I steam some LunaLua live development?

Yes
171
92%
No
15
8%
 
Total votes: 186
User avatar
Hoeloe
Volcano Lotus
Volcano Lotus
Posts: 523
Joined: Sat Oct 03, 2015 6:18 pm

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby Hoeloe » Fri Jan 06, 2017 4:10 pm

MosaicMario wrote:Actually, i think i was just doing something wrong, it's working correctly now. but i want to know how to do this with regular coins
and for the value to be carried over to other stages.


If you read the wiki page just one line further, the code to do it for regular coins is literally right there.

As for getting it to save between levels, you need to use either the onExitLevel event or the coins:onCollect event. These will allow you to save the currency value either when you exit the level, or when you collect a coin.

User avatar
MosaicMario
Ludwig von Koopa
Ludwig von Koopa
Posts: 2510
Joined: Fri Feb 27, 2015 8:07 pm
Current Project: The Mosaic Group's Journey and Toad's SMB Adventure, Also, The Enemy's Boss Rush(yeah sure)
Location: California
Chat Username: Mosaic(Mario)

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby MosaicMario » Fri Jan 06, 2017 4:20 pm

Hoeloe wrote:
MosaicMario wrote:Actually, i think i was just doing something wrong, it's working correctly now. but i want to know how to do this with regular coins
and for the value to be carried over to other stages.


If you read the wiki page just one line further, the code to do it for regular coins is literally right there.

As for getting it to save between levels, you need to use either the onExitLevel event or the coins:onCollect event. These will allow you to save the currency value either when you exit the level, or when you collect a coin.


The Counter is there, but it won't go past 100 and resets whenever it reaches 100. How do i make it go past that?


where do you insert onCollect?
Image


Join For mafia games --> http://mosaicmafia.prophpbb.com/


My Level Thread


My Projects

Image

It also has a discord server! -> https://discord.gg/XGwG2AK

Image

Contests: show
Contests i'm currently in
TTK's Mountain Level Contest: Level Finished
TTK's Sky Level Contest: Level Finished
TTK's Castle Level Contest: Haven't Started Yet
Community Contest 13: Level In Development

Contests I've previously joined
Water Level Contest Placed 1st
Community Contest 12 Placed 39th
Underground Level Contest Level Placed 5th
SVLC 2 Placed 7th
Snow Level Contest Level Placed 5th
Funky Fresh Contest Never Finished
Artemis008's SMW Contest Results Terminated
SMBX Grand Extravaganza Placed 21st
and more...


Danny wrote:Here's some constructive criticism: What the hell.

I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.

User avatar
MosaicMario
Ludwig von Koopa
Ludwig von Koopa
Posts: 2510
Joined: Fri Feb 27, 2015 8:07 pm
Current Project: The Mosaic Group's Journey and Toad's SMB Adventure, Also, The Enemy's Boss Rush(yeah sure)
Location: California
Chat Username: Mosaic(Mario)

Re: LunaLua Offical Thread - SMBX Usermod Framework

Postby MosaicMario » Fri Jan 06, 2017 7:14 pm

I actually have a question unrelated to the currency system, how can you make a hammer bro throw hammers more rapidly?
does someone know how to make a script for that?
Image


Join For mafia games --> http://mosaicmafia.prophpbb.com/


My Level Thread


My Projects

Image

It also has a discord server! -> https://discord.gg/XGwG2AK

Image

Contests: show
Contests i'm currently in
TTK's Mountain Level Contest: Level Finished
TTK's Sky Level Contest: Level Finished
TTK's Castle Level Contest: Haven't Started Yet
Community Contest 13: Level In Development

Contests I've previously joined
Water Level Contest Placed 1st
Community Contest 12 Placed 39th
Underground Level Contest Level Placed 5th
SVLC 2 Placed 7th
Snow Level Contest Level Placed 5th
Funky Fresh Contest Never Finished
Artemis008's SMW Contest Results Terminated
SMBX Grand Extravaganza Placed 21st
and more...


Danny wrote:Here's some constructive criticism: What the hell.

I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 3 guests