LunaDLL Function Examples

General discussion about Super Mario Bros. X.
User avatar
DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

LunaDLL Function Examples

Postby DarkShadeX » Mon Mar 17, 2014 1:56 pm

This may help people making some stuff in their levels :3
Spoiler: show
///Deactivate Spin Jump:
#0
PlayerMemSet,0,0x120,0,0,0,w


///Deactivate Flying (Only Gliding is possible (similar to Super Mario 3D World))
#0
PlayerMemSet,0,0x16C,0,0,0,w
PlayerMemSet,0,0x16E,0,0,0,w

///Deactivates Cheating in levels:
#0
ClearInputString,0,0,0,0,0,0

///Change the Section Music:
PlayMusic,0,Section with a new custom music (needs to be an unused section),0,0,Delay (set it to 50/60 or 100 to prevent the game to freeze for a Second...),0

///Disable/Remove all mounts,yoshis or shoes when the level is loading:
#-1
FilterMount,0,0,0,0,0,0

///Change the Player:
FilterPlayer,0,Current Character ID,New Character ID,0,0,0

^^ As a little help for you:
ID - Character
0 = Noone (Should not be used)
1 = Mario
2 = Luigi
3 = Princess Peach
4 = Toad
5 = Link

///Draw a text/string on the screen:
#0
ShowText,0,X Position,Y Position,Font(1,2,3 (Use 3 for Best Result)),0,TEXT! (ALWAYS ENABLE CAPS FOR THIS!)

///Trigger an SMBX Event:
#1
TriggerSMBXEvent,0,0,0,0,1,EVENT NAME!

///Give the player more lives:
MemAssign,0x00B2C5AC,Ammount of lives that you want to add,1

///Add a custom cheat to the level:
#0
//This will activate a lunadll event of your choice when you type in the cheat:
OnCustomCheat,0,0,0,#EVENT-NUMBER,0,cheatname

" example:

#0
OnCustomCheat,0,0,0,2000,0,ineedafewlifes

//Give the Player 6 extra lifes:
#2000
MemAssign,0x00B2C5AC,6,1 " (Remove the "")

///Disable Tail Swipe:
#0
PlayerMemSet,0,0x164,0xFFFF,0,0,w
If you need help with a function or even a example then Simply ask here ; )

(Will be Updated soon with a few more examples)
Last edited by DarkShadeX on Mon Mar 17, 2014 3:30 pm, edited 2 times in total.

User avatar
FanofSMBX
Bowser
Bowser
Posts: 3884
Joined: Sun Dec 22, 2013 12:01 pm

Re: LunaDLL Function Examples

Postby FanofSMBX » Mon Mar 17, 2014 2:52 pm

Could you please make a function to disable tail spin and flying, similar to Bunny Carrot?

I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.
My graphics pack!
Supporting forums:

Spoiler: show
SMBX Galaxy forum by Pivot40Channel
http://smbxgalaxy.prophpbb.com/
Come to the SMBX+ forums by illias3000. There is a whole forum category dedicated to the boss rush series with official rushes, submit bosses, and fan boss rushes! It is still open but AirSeus Forums is now open:
http://nsmbx.prophpbb.com/
AirSeus Forums the new home of the Boss Rush series:
http://smbxairseusforums.prophpbb.com/
Spoiler: show
First to discover:
Spark
Eerie
Grinder
Rainbow Shell
Birdo
Boom Boom
Image
Image
Image
Image
Image
KINGBOWSER112 RULES!


User avatar
DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: LunaDLL Function Examples

Postby DarkShadeX » Mon Mar 17, 2014 3:25 pm

There is already an No Flying code in the spoiler...
Anyways:
Heres the TAIL SPIN code:

Code: Select all

PlayerMemSet,0,0x164,0xFFFF,0,0,w

User avatar
icez
Mega Mole
Mega Mole
Posts: 261
Joined: Fri Dec 20, 2013 7:21 pm

Re: LunaDLL Function Examples

Postby icez » Mon Mar 17, 2014 6:59 pm

I am trying to hit modifier to work for the bosses I managed to get the script working where the mother brain already has 9 hits already inflicted on it. The problem I am having is trying to change it to something like 8 or 12 or something like that every time I experiment around with it, it ether stays at 10 or the npc has a infinite number of hits.if you know what I have to do that would be great if you could let me know.

User avatar
meowflash
Blooper
Blooper
Posts: 194
Joined: Mon Jan 20, 2014 3:27 pm

Re: LunaDLL Function Examples

Postby meowflash » Mon Mar 17, 2014 7:07 pm

Make a function that gives the Goomba more health!
Mah Staph: I Support The Following Below...
Spoiler: show
Image
Image
Image
Image
Image
Image
Image

User avatar
FanofSMBX
Bowser
Bowser
Posts: 3884
Joined: Sun Dec 22, 2013 12:01 pm

Re: LunaDLL Function Examples

Postby FanofSMBX » Mon Mar 17, 2014 7:18 pm

Could you please make a fixed multiple checkpoints?

I believe in Jesus Christ as my Lord and Savior. If you do, put this in your signature.
My graphics pack!
Supporting forums:

Spoiler: show
SMBX Galaxy forum by Pivot40Channel
http://smbxgalaxy.prophpbb.com/
Come to the SMBX+ forums by illias3000. There is a whole forum category dedicated to the boss rush series with official rushes, submit bosses, and fan boss rushes! It is still open but AirSeus Forums is now open:
http://nsmbx.prophpbb.com/
AirSeus Forums the new home of the Boss Rush series:
http://smbxairseusforums.prophpbb.com/
Spoiler: show
First to discover:
Spark
Eerie
Grinder
Rainbow Shell
Birdo
Boom Boom
Image
Image
Image
Image
Image
KINGBOWSER112 RULES!


User avatar
Fuyu
Wart
Wart
Posts: 3059
Joined: Sat Dec 21, 2013 2:40 pm

Re: LunaDLL Function Examples

Postby Fuyu » Mon Mar 17, 2014 7:58 pm

The text one could be useful if you want to introduce your bosses' names on a LoZ like style, nice, really nice of you to bring this to us.
Image

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6307
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: LunaDLL Function Examples

Postby MECHDRAGON777 » Mon Mar 17, 2014 10:57 pm

could you make it so cheats are unlock-able and you can only use a cheat so many times in a level? Also, could you make a video on how to do these things! Thank you if you can! The Creat a cheat would be nice and cheat dis abler is also good! Forcing a character on level start is very good! With a video, I see this as very useful!

ImageImageImage
Image

Image

User avatar
beanluv
Swooper
Swooper
Posts: 115
Joined: Sat Dec 21, 2013 11:26 am
Flair: go commit springlock
Contact:

Re: LunaDLL Function Examples

Postby beanluv » Tue Mar 18, 2014 2:43 pm

Maybe A Health Meter For A Certain Npc? That Would Be Cool!
Image
This also means anything I share that's SMBX related will be for the 38A version. You are more than welcome to make masked versions of my graphic submissions for any versions of SMBX that use sprite masks. Please just let me know.

Come join the SMBX 38A Server!
Image

User avatar
zlaker
Ludwig von Koopa
Ludwig von Koopa
Posts: 2827
Joined: Fri Dec 20, 2013 1:46 pm

Re: LunaDLL Function Examples

Postby zlaker » Tue Mar 18, 2014 2:47 pm

That's not possible. Sorry
ImageImageImageImageImageImageImageImageImageImage
I make art lol

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6307
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: LunaDLL Function Examples

Postby MECHDRAGON777 » Tue Mar 18, 2014 5:51 pm

zlakerboy357 wrote:That's not possible. Sorry
What is not possible? I guess Functioning Star/Moon coins is also impossible?

ImageImageImage
Image

Image

leif_erikson
Hoopster
Hoopster
Posts: 167
Joined: Thu Feb 06, 2014 12:23 pm

Re: LunaDLL Function Examples

Postby leif_erikson » Tue Mar 18, 2014 8:04 pm

I dunno what those are. Anyway, you can't make custom sprites unless you program them in C and compile custom versions of lunadll.
DON'T PM me. Post your questions in the help thread so that others may benefit from the answers.

User avatar
MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6307
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: LunaDLL Function Examples

Postby MECHDRAGON777 » Sun Mar 23, 2014 11:32 pm

Darkchaox100 wrote:
///Add a custom cheat to the level:
#0
//This will activate a lunadll event of your choice when you type in the cheat:
OnCustomCheat,0,0,0,#EVENT-NUMBER,0,cheatname

" example:

#0
OnCustomCheat,0,0,0,2000,0,ineedafewlifes

//Give the Player 6 extra lifes:
#2000
MemAssign,0x00B2C5AC,6,1 " (Remove the "")
Can you show a cheat where it takes you to the World map when entered?

ImageImageImage
Image

Image

User avatar
Imaynotbehere4long
Kamikaze Koopa
Kamikaze Koopa
Posts: 1389
Joined: Thu Jan 23, 2014 3:00 pm

Re: LunaDLL Function Examples

Postby Imaynotbehere4long » Mon Mar 24, 2014 8:55 pm

beanluv wrote:Maybe A Health Meter For A Certain Npc? That Would Be Cool!
If you're talking about having a health bar for layer-based bosses, that can be done without LunaDLL. If you're talking about individual NPCs that take multiple hits to kill, there should be a code that displays how many hits they have left before being killed, but it's numeric, not in meter form.
I've decided to cancel SMBXville Under Seige. After my 1st Senior year of college, I realized I wouldn't have enough time to devote to finishing my four-level episode. Apologies to those who cared.
My favorite quote on the entire forum:
Spoiler: show
mechamind wrote:
AeroMatter wrote:People who think "autistic" is an adjective and not a verb.
You autistic some people so much with that statement.
My SMBX portfolio:
Spoiler: show
Image
(includes a Sonic 3D Blast styled level.)
SOMEONE ANSWER MY CRY FOR HELP: http://www.supermariobrosx.org/forums/v ... =69&t=2026

User avatar
beanluv
Swooper
Swooper
Posts: 115
Joined: Sat Dec 21, 2013 11:26 am
Flair: go commit springlock
Contact:

Re: LunaDLL Function Examples

Postby beanluv » Sat Mar 29, 2014 12:37 pm

Yeah, I'm Talking About The Boss Health, I'm Trying To Change Mother Brain's Boss HP From 10 To 8 Just Like The Classic Sonic Bosses. Could anybody Help Me?
Image
This also means anything I share that's SMBX related will be for the 38A version. You are more than welcome to make masked versions of my graphic submissions for any versions of SMBX that use sprite masks. Please just let me know.

Come join the SMBX 38A Server!
Image


Return to “General”

Who is online

Users browsing this forum: No registered users and 5 guests