• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Scripting Question] How do I rework paralysis

  • 67
    Posts
    3
    Years
    • He/Him
    • Seen Nov 16, 2023
    So I wanna rework paralysis where it halves their speed like usual but I want to remove random turn skips due to paralysis and make it so that it only skips their turn if they attempt to use a priority move

    so that it is not abused by trickroom facade/guts

    but how would I do that?
     
  • 67
    Posts
    3
    Years
    • He/Him
    • Seen Nov 16, 2023
    I'd look for the code for Dazzling/ Queenly Majesty and add something like
    Code:
    if pkmn.paralysed?

    ok I took your advice but how do I turn off the random chance to paralyze cause when I try to hash it out I get errors
     
  • 143
    Posts
    4
    Years
    • Seen Mar 26, 2024
    ok I took your advice but how do I turn off the random chance to paralyze cause when I try to hash it out I get errors
    Simply delete this code in "Battler_UseMove_SuccessChecks" to disable the random paralysis chance. :)
    Code:
    # Paralysis
        if @status==PBStatuses::PARALYSIS
          if @battle.pbRandom(100)<25
            pbContinueStatus
            @lastMoveFailed = true
            return false
          end
        end
     
  • 67
    Posts
    3
    Years
    • He/Him
    • Seen Nov 16, 2023
    Simply delete this code in "Battler_UseMove_SuccessChecks" to disable the random paralysis chance. :)
    Code:
    # Paralysis
        if @status==PBStatuses::PARALYSIS
          if @battle.pbRandom(100)<25
            pbContinueStatus
            @lastMoveFailed = true
            return false
          end
        end

    Thanks I ended up tweaking psychic terrain script like this and it worked.

    if pokemon.status==PBStatuses::PARALYSIS && thismove.priority>0 &&
    !thismove.doesIgnoreDazzling?
    PBDebug.log("Paralysis prevented #{user.pbThis}'s priority move")
    @battle.pbDisplay(_INTL("The paralysis prevented the use of priority moves!"))
    return false
    end
     
    Back
    Top