Is there a way to make a custom block slippery by default?

Need help with any SMBX game-related issues? Ask your questions here.
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?
User avatar
Animebryan
Bit
Bit
Posts: 143
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Is there a way to make a custom block slippery by default?

Postby Animebryan » Thu Oct 03, 2019 7:03 pm

I just set up a custom block for a ice level & I was wondering if there's a way to make it slippery by default?
Need serious help with Lua based features :(

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7566
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Is there a way to make a custom block slippery by default?

Postby Enjl » Thu Oct 03, 2019 7:12 pm

You can add the default-slippery flag to the ini file of the block. Then the "slippery" checkbox in the editor will be on by default when picking up a new block of the ID.

default-slippery = 1
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 143
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Is there a way to make a custom block slippery by default?

Postby Animebryan » Thu Oct 03, 2019 9:42 pm

I've stumbled across another problem. I changed the Flurries so that they are vulnerable to fireballs & immune to iceballs (the way it SHOULD be) but I noticed that fireballs still bounce off it's top. Is there anyway to make so that if a fireball hits it from above it'll die?
Need serious help with Lua based features :(

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7566
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Is there a way to make a custom block slippery by default?

Postby Enjl » Fri Oct 04, 2019 6:43 am

npcblocktop=false in npc-n.txt

Also why should it be like that if all other SMB2 enemies are immune to fireballs but not iceballs?
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 143
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Is there a way to make a custom block slippery by default?

Postby Animebryan » Fri Oct 04, 2019 7:14 am

Enjl wrote:
Fri Oct 04, 2019 6:43 am
npcblocktop=false in npc-n.txt

Also why should it be like that if all other SMB2 enemies are immune to fireballs but not iceballs?
Shouldn't the npc code say 0 not false? The only reason why SMB2 enemies are immune to fireballs is because Redigit made them that way due to there being no fireballs in SMB2, but making them fireproof just because of that makes no sense, especially in this case. A Flurry is literally a mini snowman who skates around chasing you. The fact that fireballs can melt ice blocks should be more than enough to prove why making Flurries fireproof is ridiculous! Also, he's made of SNOW! So why would it be able to be frozen?
Need serious help with Lua based features :(

User avatar
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 7566
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Is there a way to make a custom block slippery by default?

Postby Enjl » Fri Oct 04, 2019 7:29 am

Animebryan wrote:
Fri Oct 04, 2019 7:14 am
Enjl wrote:
Fri Oct 04, 2019 6:43 am
npcblocktop=false in npc-n.txt

Also why should it be like that if all other SMB2 enemies are immune to fireballs but not iceballs?
Shouldn't the npc code say 0 not false?
Did false not work for you or why are you questioning it? You can try 0 if false doesn't work, but all boolean flags in npc config also accept boolean keywords, which are easier to read.
ImageImageImageImage
ImageImageImageImageImageImage


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 2 guests

cron