I got the slippery tiles working but now I want it to go back to non-slippery for a certain character. Is that possible? Here is the link https://yanflychannel.wordpress.com/rmvxa/field-scripts/slippery-tiles/
Is there a way to turn off yanfly Slippery tile sets for some characters?
RGSSx Script SupportBy a certain character, do you mean, when you use a certain character as the party leader / in front of party, or you prefer to turn the slippery on/off using switch instead?
When I have a solo character going questing by himself. A on/off switch would work as well.
Then, in my opinion, it's easier to use switch instead
Put below Yanfly's
Code:
class Game_Player
def on_slippery_floor?
return false if $game_switches[1] # <-- change the switch ID here
return super
end
end
Thanks. That worked. Ok, added you to credits for your help. It seems only right to do so.
I've moved this thread to RGSSx Scripts Support. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/is-there-a-way-to-turn-off-yanfly-slippery-tile-sets-for-some-characters.92482/