• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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
    4
    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?
     
    I'd look for the code for Dazzling/ Queenly Majesty and add something like
    Code:
    if pkmn.paralysed?
     
    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
     
    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
     
    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