- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
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?
[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?