• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • 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] Where to find the actual effect of Lingering Effects?

  • 2
    Posts
    8
    Years
    • Seen Aug 17, 2016
    Hi all!

    I'm looking into adding/adapting lingering effects. The process is clear until the last step: the actual effect of the lingering effect.
    So, there is PokeBattle_MoveEffects, where the move basically states: "If this move is used, start a certain lingering effect."
    Then there is PBEffects, which states that the lingering effect exists.
    Then there is PokeBattle_ActiveSide (Or Pokebattle_Battler) which makes sure a lingering effect is triggered at the right time in battle.

    What I am looking for, though, is the section of script that states what the lingering effect does (so, the actual effect) every time it is triggered.

    Say, for example, I want to change Leech Seed to do 1/4th hp damage every turn - where would I find the script that says it does 1/8th hp damage?
    I know how and where the lingering effect is started and triggered, but the actual effect seems hidden somewhere I can't find it.

    Sorry if this is a very obvious question, but I've searched through all script sections to frustration, so any help would be welcome.

    Thanks in advance!
     
    What you are looking for is the function def pbEndOfRoundPhase, which is found on line 2971 of PokeBattle_Battle (without the R)

    Leech Seed in particular is found on line 3362, and the actual damage lost by Leech Seed is found on line 3370
     
    I am not sure how I spent the entire day looking at it all without realising this, but lesson learned, I guess.

    Thank you so much! Forever in your debt :)
     
    Back
    Top