Star Coin able to open doors

Description: Have idea for a script, but you can't make it? Post it here!
Moderators: Yoshi021, Lx Xzit, 5438A38A, Semi-moderatos, Moderators

Ice
Topic author, Duke
Duke
Avatar
Ice
Topic author, Duke
Duke
Age: 20
Reputation: 15
Posts: 128
Joined: 3 Oct 2016
Location: Splash Hill

Post #1by Ice » 24 Jul 2017, 21:43

It'd be really sweet if Star Coins can be able to open up doors just like stars but unfortunately smbx does not have that yet. So in the meantime, if anyone can come up with script for that, that would be great.
I-I-I-I-T'S-A-ICE TIME! :cool:

also i don't check this site often so sorry if I reply really late :fool:
My Projecct:
Image

Yoshi021 M
Moderator
Moderator
Avatar
Yoshi021 M
Moderator
Moderator
Age: 19
Reputation: 142
Posts: 680
Joined: 15 Feb 2016
Location: Yoshi's Island

Post #2by Yoshi021 » 25 Jul 2017, 19:28

Place the warp in a layer and hide it. Then have this script happen at the beginning of the level. The script will show the layer if the player has enough starcoins.

Code: Select all

if sysval(Starcoincount) >= [The Number that you want] then
  call LSet(LayerName, 1, 1)
end if
Links
ImageImageImage
Image
Image
"Going to University is FUN!" :pardon:

Ice
Topic author, Duke
Duke
Avatar
Ice
Topic author, Duke
Duke
Age: 20
Reputation: 15
Posts: 128
Joined: 3 Oct 2016
Location: Splash Hill

Post #3by Ice » 26 Jul 2017, 0:42

DUDE! THANK YOU SO MUCH! Because of you now my project can FINALLY use Star Coins instead of Green Stars as originally intended, thanks alot, seriously! :biggrin:
I will test it out and will let you know if it works.

Added after 32 minutes 47 seconds:
It says there is an error with:
if sysval(Starcoincount) >= [9] then

Yeah just that line

Added after 7 minutes 44 seconds:
Hold up, I had to get rid of [] and it works now, thx

Added after 40 minutes 39 seconds:
So I made it to unlock once the player has collected 9 star coins but the layer would not appear, do you know why?

EDIT: I GOT IT TO WORK!! THANK YOU THANK YOU THANK YOU!!
I-I-I-I-T'S-A-ICE TIME! :cool:

also i don't check this site often so sorry if I reply really late :fool:
My Projecct:
Image


Return to “Script requests”

Who is online (over the past 5 minutes)

Users browsing this forum: 1 guest