Page 1 of 1

(Help) disable small state

Posted: Wed May 17, 2023 4:48 pm
by vee_Sleepy
What would I put in my episode's luna script file to make it so the player can't lose their big powerup state (state 1) when taking damage?
I thought to make a Wario episode using AppleTheTomato's "Hearts for All" script, so he can still die but Wario only has his full moveset when big and him staying big no matter what would be really handy

thanks in advance!

Re: (Help) disable small state

Posted: Fri May 19, 2023 5:43 pm
by ShadowXeldron
I'd probably check if Wario works with customHealth.lua: viewtopic.php?t=28975

Alternatively, you can use this:

Code: Select all

function onDraw()
    if player.powerup == 1 and player.forcedState ~= FORCEDSTATE_POWERDOWN_SMALL then
        player.powerup = 2
    end
end
Note that you'll probably have to make a custom player health function if you use the above script because it basically makes the player unkillable.

Re: (Help) disable small state

Posted: Fri May 19, 2023 7:56 pm
by vee_Sleepy
idk how to code custom functions
i know very very little about lua scripting