star count events help needed

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

ellingtonisland
Guest

star count events help needed

Postby ellingtonisland » Tue Aug 26, 2014 12:57 pm

i need help creating a event that will make certain layers permanently appear in levels based on how many power stars the player has collected.

eg...

a layer named "zero stars" is created, with a luigi npc used for debug that says "you have zero stars" and it is set to appear as a default layer

a layer named "one star" is created with a luigi npc used for debug that says "you have 1 or more stars", and it is set to not appear as default.

now i need help creating a event that will check how many stars the player has and based on if they have one or more stars the one star layer will appear from level start and the zero star layer will be hidden permanently from start

if this needs lunadll to work, please tell me the lunadll script to make the layers do this.

what i mean is not showing the player how many stars they have collected, but when they have collected a certain amount a event will happen to make layers in levels change by default forever like making a wall vanish in peaches castle after you have collected 10 stars so you can progress to a new area by making the layer it is on not show anymore, the luigi thing is a debug example to show if you have 1 or more stars to make sure the layers are working properly.
Last edited by ellingtonisland on Tue Aug 26, 2014 1:29 pm, edited 2 times in total.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

Re: star count events help needed

Postby DimitrisPowerSeven » Tue Aug 26, 2014 1:11 pm

If you mean to show to player how many stars he collect then you don't need anything you can see how many stars you have collect in top of the screen left to the item box.When you take the first star it appear you a star symbol with number 1 when you collect the second star it show you that you have collect 2 stars

ellingtonisland
Guest

Re: star count events help needed

Postby ellingtonisland » Tue Aug 26, 2014 1:20 pm

DimitrisPowerSeven wrote:If you mean to show to player how many stars he collect then you don't need anything you can see how many stars you have collect in top of the screen left to the item box.When you take the first star it appear you a star symbol with number 1 when you collect the second star it show you that you have collect 2 stars
what i mean is not showing the player how many stars they have collected, but when they have collected a certain amount a event will happen to make layers in levels change by default forever like making a wall vanish in peaches castle after you have collected 10 stars so you can progress to a new area by making the layer it is on not show anymore, the luigi thing is a debug example to show if you have 1 or more stars to make sure the layers are changing properly.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

Re: star count events help needed

Postby DimitrisPowerSeven » Tue Aug 26, 2014 1:26 pm

No!The game doe's show to player how many stars he collect if he didn't collect any star,if you collect one star then a small star symbol with a number 1 if you collect two stars the one change to 2,the small star symbol appears in left side of the item block or hearts.

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: star count events help needed

Postby RudeGuy » Tue Aug 26, 2014 1:33 pm

It is possible just with SMW stars. take a SMW star, go to the events of the NPCs and put in death the event "One star".

ellingtonisland
Guest

Re: star count events help needed

Postby ellingtonisland » Tue Aug 26, 2014 1:34 pm

DimitrisPowerSeven wrote:No!The game doe's show to player how many stars he collect if he didn't collect any star,if you collect one star then a small star symbol with a number 1 if you collect two stars the one change to 2,the small star symbol appears in left side of the item block or hearts.
WHAT I MEAN IS I WANT IT TO CHANGE WHAT LAYERS PERMANENTLY APPEAR IN THE LEVEL BY DEFAULT DEPENDING ON HOW MANY STARS HAVE BEEN COLLECTED, I WANT IT SO IF SAY THEY HAVE 10 STARS, A WALL WILL PERMANENTLY VANISH IN SOME LEVEL SOMEWHERE SO A NEW AREA CAN BE ACCESSED...
Christian07 wrote:It is possible just with SMW stars. take a SMW star, go to the events of the NPCs and put in death the event "One star".
ok now that works with ONE star, now i want it to check the star count in a different level and make layer changes to hide a wall if 10 stars have been found throughout different levels.

lunadll might be needed for this.
Last edited by Valtteri on Tue Aug 26, 2014 2:25 pm, edited 2 times in total.
Reason: Merged double posts.

DimitrisPowerSeven
Volcano Lotus
Volcano Lotus
Posts: 519
Joined: Sun Apr 06, 2014 8:56 am

Re: star count events help needed

Postby DimitrisPowerSeven » Tue Aug 26, 2014 1:54 pm

I say and before there is a small symbol with a star that appear only when you collect a star.You can't do this with the wall in a difrend level but you can use a warp,when you go to the "Warps and Doors" try find the "star needed" there put the number 10.When you test the level you will see a star in the door that ask you 10 stars to pass.

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: star count events help needed

Postby RudeGuy » Tue Aug 26, 2014 1:56 pm

ellingtonisland wrote:
Christian07 wrote:It is possible just with SMW stars. take a SMW star, go to the events of the NPCs and put in death the event "One star".
now i want it to check the star count in a different level and make layer changes to hide a wall if 10 stars have been found throughout different levels.
Use doors with star lock instead. That's easier and doesn't require Luna.DLL (I don't think it's possible with Luna anyway)

ellingtonisland
Guest

Re: star count events help needed

Postby ellingtonisland » Tue Aug 26, 2014 2:21 pm

DimitrisPowerSeven wrote:I say and before there is a small symbol with a star that appear only when you collect a star.You can't do this with the wall in a difrend level but you can use a warp,when you go to the "Warps and Doors" try find the "star needed" there put the number 10.When you test the level you will see a star in the door that ask you 10 stars to pass.
no, no, no!!! what i want to do is get something working (probably with lunadll) that will hide and show layers in levels throughout the game depending on the number of stars the player has collected (NOTHING ELSE!!!), i don't want to create separate warps, star doors, levels, or hub levels or anything like that. what i want is so say after the player has collected 10 stars, layers throughout many levels throughout the game will change for events to happen like toads will appear in different levels or area's where they weren't before or some in the same area will say something different than they did before. or IN THE HUB LEVEL (NO MORE THAN 1 HUB!!!) the princess will say "now that you have found 10 stars, your next target should be in dry dry desert" instead of saying "before you can find the crystal star in dry dry desert, you will need to find 10 power stars first so we can repair the train track with them", even the train track will change through the layers when more than 10 stars are collected.

the preferred pseudo code that should be translated into lunadll's code for the train track level should be something like

if stars >= 10 {
hide layer = destroyed train track
show layer = new train track
}

ellingtonisland
Guest

Re: star count events help needed

Postby ellingtonisland » Tue Aug 26, 2014 2:21 pm

Christian07 wrote:
ellingtonisland wrote:
Christian07 wrote:It is possible just with SMW stars. take a SMW star, go to the events of the NPCs and put in death the event "One star".
now i want it to check the star count in a different level and make layer changes to hide a wall if 10 stars have been found throughout different levels.
Use doors with star lock instead. That's easier and doesn't require Luna.DLL (I don't think it's possible with Luna anyway)
no, no, no!!! what i want to do is get something working (probably with lunadll) that will hide and show layers in levels throughout the game depending on the number of stars the player has collected (NOTHING ELSE!!!), i don't want to create separate warps, star doors, levels, or hub levels or anything like that. what i want is so say after the player has collected 10 stars, layers throughout many levels throughout the game will change for events to happen like toads will appear in different levels or area's where they weren't before or some in the same area will say something different than they did before. or IN THE HUB LEVEL (NO MORE THAN 1 HUB!!!) the princess will say "now that you have found 10 stars, your next target should be in dry dry desert" instead of saying "before you can find the crystal star in dry dry desert, you will need to find 10 power stars first so we can repair the train track with them", even the train track will change through the layers when more than 10 stars are collected.

the preferred pseudo code that should be translated into lunadll's code for the train track level should be something like

if stars >= 10 {
hide layer = destroyed train track
show layer = new train track
}

HenryRichard
Reznor
Reznor
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: star count events help needed

Postby HenryRichard » Tue Aug 26, 2014 5:29 pm

It will require lunadll. You need to somehow find the variable for the star count (don't know what it is) and make a check so it will trigger a lunadll event that hides and shows layers. Don't ask me how to do it.

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: star count events help needed

Postby RudeGuy » Wed Aug 27, 2014 6:07 am

ellingtonisland wrote:
no, no, no!!! what i want to do is get something working (probably with lunadll) that will hide and show layers in levels throughout the game depending on the number of stars the player has collected (NOTHING ELSE!!!), i don't want to create separate warps, star doors, levels, or hub levels or anything like that. what i want is so say after the player has collected 10 stars, layers throughout many levels throughout the game will change for events to happen like toads will appear in different levels or area's where they weren't before or some in the same area will say something different than they did before. or IN THE HUB LEVEL (NO MORE THAN 1 HUB!!!) the princess will say "now that you have found 10 stars, your next target should be in dry dry desert" instead of saying "before you can find the crystal star in dry dry desert, you will need to find 10 power stars first so we can repair the train track with them", even the train track will change through the layers when more than 10 stars are collected.

the preferred pseudo code that should be translated into lunadll's code for the train track level should be something like

if stars >= 10 {
hide layer = destroyed train track
show layer = new train track
}
Do you know what are limitations, right?
There's no way in SMBX that a level can affect another, apart with a warp. Let me explain. The warp to another level is the only way that a level can affect another, tough it doesn't change anything. About stars (both SMW and SMB3), the game memorize:
-How many stars you have (this makes star locks functions)
-where you collected a star.
We all know what's the difference: the SMW star are collectible, so they doesn't finish the level and makes global events, tough they can't affect another level.

Also you can make a wall hide by collecting some objects only in one level, not in a collection of levels. The possible solution are 2 now: use star locks or make a giant level with 10 stars.
Last thing: I don't think Luna.DLL can makes one level affect another. I'd like to know why all thinks Luna.DLL can do allthe things in the world...
Also stop ragequitting.

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

Re: star count events help needed

Postby leif_erikson » Sun Aug 31, 2014 3:33 am

To do this you would need to find the variable that keeps track of your star count, and then using some simple lunadll to show the layers. But, I don't think anyone is going to find that variable any time soon.


Return to “Help and Support”

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari