[LunaDLL] Switch Palace System.

Share and discuss custom SMBX graphics.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on-topic/appropriate?
-Are you posting in the right forum/following the forum rules?
-Do not create a topic requesting custom graphic. Do so in Graphic Request.
User avatar
DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

[LunaDLL] Switch Palace System.

Postby DarkShadeX » Sun Oct 12, 2014 1:58 pm

Valtteri told me to post LunaDLL stuff in the Graphics forum,So Yeah!
This tells you how to make a Switch Palace system using LunaDLL!

1.Make a txt file and call it lunaworld.
2.Add the following code to it:

Code: Select all

//Enable Disable Switch Blocks:
IfVar,0,0,1,1000,1,Yellow_True
IfVar,0,0,1,1001,1,Green_True
IfVar,0,0,1,1002,1,Red_True
IfVar,0,0,1,1003,1,Blue_True

#1000
//Enable the Yellow Switch Blocks!
TriggerSMBXEvent,0,0,0,0,1,Enable Yellow Blocks

#1001
//Enable the Green Switch Blocks!
TriggerSMBXEvent,0,0,0,0,1,Enable Green Blocks

#1002
//Enable the Red Switch Blocks!
TriggerSMBXEvent,0,0,0,0,1,Enable Red Blocks

#1003
//Enable the Blue Switch Blocks!
TriggerSMBXEvent,0,0,0,0,1,Enable Blue Blocks
3.It's highly recommended to make a Intro level for reseting the system!
In your Intro's level folder,make a lunadll.txt file and add the following code:

Code: Select all

#0
SetVar,0,0,0,0,1,Yellow_True
SetVar,0,0,0,0,1,Green_True
SetVar,0,0,0,0,1,Red_True
SetVar,0,0,0,0,1,Blue_True
BankVar,0,0,0,0,1,Yellow_True
BankVar,0,0,0,0,1,Green_True
BankVar,0,0,0,0,1,Red_True
BankVar,0,0,0,0,1,Blue_True
WriteBank,0,0,0,0,1,0
Were almost done!
4.Make a lunadll.txt file in the Switch Palace level folder and add the following code:

Code: Select all

#0
IfNPC,1,2,0,1005,0,once

#1005
PlaceSprite,1,2,0,0,0,0
LunaControl,2,1,0,0,0,0
SetVar,0,0,1,0,1,***_True
BankVar,0,0,0,0,1,***_True
WriteBank,0,0,0,0,1,0
#END
Change *** to either Yellow,Green,Blue or Red!
The above code Enables the Switch as soon as you kill the SMB3 Goomba.

5.In all your Levels that should contain Switch Blocks,make 2/4/6/8 Events.
Call the first one "Enable *** Blocks" and the second one "Disable *** Blocks"
Change *** to either Yellow,Green,Blue or Red!
The Enable event shows the Switch Blocks,and the disable one shows only the Disabled Switch Blocks.

And you are done!

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

Re: [LunaDLL] Switch Palace System.

Postby FanofSMBX » Sun Oct 12, 2014 2:05 pm

To reset the system, all you have to do is delete LunaSavedVars files.

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] Switch Palace System.

Postby DarkShadeX » Sun Oct 12, 2014 2:06 pm

FanofSMBX wrote:To reset the system, all you have to do is delete LunaSavedVars files.
Still,i bet a lot of us here is to lazy to do that.
And it also would break stuff if you dont delete it when you restart it (because all switches would be activated from the start)

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

Re: [LunaDLL] Switch Palace System.

Postby FanofSMBX » Sun Oct 12, 2014 2:08 pm

I mean if you're deleting the .sav file it's not that much of a stretch to delete another file.

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] Switch Palace System.

Postby DarkShadeX » Sun Oct 12, 2014 2:09 pm

FanofSMBX wrote:I mean if you're deleting the .sav file it's not that much of a stretch to delete another file.
Well,thats true too xP

User avatar
wrwgamer
Koopa Troopa
Koopa Troopa
Posts: 24
Joined: Wed Feb 19, 2014 11:40 am
Current Project: The Not as Shortastic Adventure

Re: [LunaDLL] Switch Palace System.

Postby wrwgamer » Sun Oct 12, 2014 5:35 pm

This is awesome and if I were to actually make an episode
I would definitely try to incorporate this :D

Lunadll=amazing

leif_erikson
Hoopster
Hoopster
Posts: 167
Joined: Thu Feb 06, 2014 12:23 pm
Current Project: DON'T PM me. Post your questions in the help thread so that others may benefit from the answers.
Contact:

Re: [LunaDLL] Switch Palace System.

Postby leif_erikson » Mon Oct 13, 2014 3:45 am

I have it so lunadll already detects when you delete your SMBX saves it deletes the corresponding lunadll save too, so I don't think you need to worry about resetting it though.
DON'T PM me. Post your questions in the help thread so that others may benefit from the answers.

DaSpongeBobMan
Pokey
Pokey
Posts: 212
Joined: Tue Apr 15, 2014 2:17 pm

Re: [LunaDLL] Switch Palace System.

Postby DaSpongeBobMan » Mon Oct 13, 2014 9:55 am

How did you make this code?

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

Re: [LunaDLL] Switch Palace System.

Postby DarkShadeX » Mon Oct 13, 2014 10:00 am

DaSpongeBobMan wrote:How did you make this code?
With my brain.

DaSpongeBobMan
Pokey
Pokey
Posts: 212
Joined: Tue Apr 15, 2014 2:17 pm

Re: [LunaDLL] Switch Palace System.

Postby DaSpongeBobMan » Mon Oct 13, 2014 10:06 am

Wait, you typed a command for the Switch Palace thing?

User avatar
Mr Boboo
Mega Mole
Mega Mole
Posts: 264
Joined: Sat Jan 04, 2014 8:43 am
Flair: The Wicked Pissah
Current Project: Super Mario & the Journey to Everlast
Chat Username: Roberto

Re: [LunaDLL] Switch Palace System.

Postby Mr Boboo » Mon Oct 13, 2014 10:35 am

Switch Palaces in LunaDLL?
Spoiler: show
Image
Ever since I played VI3 I've wanted to see legitimate Switch Palaces in SMBX, and my dreams have been realized. I'm definitely doing something with this.
I shall return with a new episode...... soon.

Check out my Mega Man Maker levels!
Breakneck Quarry: ID 189213
Flash Freeze: Coming soon

I support:

Image
Image
Image

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

Re: [LunaDLL] Switch Palace System.

Postby FanofSMBX » Mon Oct 13, 2014 11:30 am

DaSpongeBobMan wrote:Wait, you typed a command for the Switch Palace thing?
Yep. He learned how to do it from the lunadll tutorial files and he typed this up.

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] Switch Palace System.

Postby DarkShadeX » Mon Oct 13, 2014 1:26 pm

If anyone has a problem with it or need help,simply ask me!

User avatar
icez
Mega Mole
Mega Mole
Posts: 261
Joined: Fri Dec 20, 2013 7:21 pm
Current Project: Super Mario:The Rise of Darknesss

Re: [LunaDLL] Switch Palace System.

Postby icez » Tue Oct 14, 2014 9:29 am

this can defintly be used to make sercets and to change a way a game is progressed

Yugioer
Bob-omb
Bob-omb
Posts: 39
Joined: Fri Oct 03, 2014 8:21 pm

Re: [LunaDLL] Switch Palace System.

Postby Yugioer » Thu Oct 16, 2014 1:26 pm

I don't understand step 5. How does lunadll know which event corresponds to which switch block color?

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

Re: [LunaDLL] Switch Palace System.

Postby FanofSMBX » Thu Oct 16, 2014 1:53 pm

Each switch block variable setter activates the event of those numbers if the variable is 1

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
TheOnlyKerbal
Koopa Troopa
Koopa Troopa
Posts: 25
Joined: Sun Jul 16, 2017 4:22 pm
Current Project: Super Mario World 3
Chat Username: The Only Kerbal
Contact:

Re: [LunaDLL] Switch Palace System.

Postby TheOnlyKerbal » Tue Oct 10, 2017 8:49 am

Which Number Corresponds To Each Colour Though?
My project, Super Mario World 3:
Image

User avatar
PixelPest
Link
Link
Posts: 7118
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: [LunaDLL] Switch Palace System.

Postby PixelPest » Tue Oct 10, 2017 8:54 am

TheOnlyKerbal wrote:Which Number Corresponds To Each Colour Though?
This system is extremely outdated and you probably shouldn't be using it. There's better ways to do so in SMBX2 and there will be switch palace NPCs soon as well


Return to “Graphics”

Who is online

Users browsing this forum: No registered users and 5 guests