• 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!
  • 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] Change the healing method of the Grassy Terrain

  • 8
    Posts
    5
    Years
    • Seen Oct 7, 2022
    Hello, Is it possible that the grassy terrain only heals the user of the "Grassy Surge" ability ?

    I think the code that needs to be modified is this one : (In the script "Battle_Phase_EndOfRound") :

    # Grassy Terrain (healing)
    if @field.terrain==PBBattleTerrains::Grassy && b.affectedByTerrain? && b.canHeal?
    PBDebug.log("[Lingering effect] Grassy Terrain heals #{b.pbThis(true)}")
    b.pbRecoverHP(b.totalhp/16)
    pbDisplay(_INTL("{1}'s HP was restored.",b.pbThis))
    end
    It would be cool if someone could help me 😅
    I'm using version 18.1 (Sorry for my bad english is not my native language)
     
    Back
    Top