• 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.

[Error] Math Out Of Domain - I gained EXP so hard I died and ended up with Negative HP?

  • 428
    Posts
    5
    Years
    Well, that's a new error.

    [Pokémon Essentials version 19.1]
    [Generation 8 Project v1.1.0]
    [v19.1 Hotfixes 1.0.7]

    Exception: Math::DomainError
    Message: out of domain

    Backtrace:
    196:PokeBattle_SceneElements:188:in `digits'
    196:PokeBattle_SceneElements:188:in `pbDrawNumber'
    196:PokeBattle_SceneElements:260:in `refreshHP'
    196:PokeBattle_SceneElements:251:in `refresh'
    198:PokeBattle_Scene:72:in `pbRefreshOne'
    174:Battle_ExpAndMoveLearning:209:in `block in pbGainExpOne'
    174:Battle_ExpAndMoveLearning:180:in `loop'
    174:Battle_ExpAndMoveLearning:180:in `pbGainExpOne'
    174:Battle_ExpAndMoveLearning:39:in `block (2 levels) in pbGainExp'
    172:PokeBattle_Battle:392:in `block in eachInTeam'

    I assume I'll need code somewhere in the game scripts to check the current EXP a battler is rewarded with for winning, and set a cap on that EXP to prevent this in the future.

    In this coding language and in this engine, how do I do that and where?
     
    Back
    Top