- 235
- Posts
- 6
- Years
- Seen Apr 19, 2025
I have recently tried this script for v18, and have been getting the same error upon throwing a ball. Did you ever find a solution?
[Pokémon Essentials version 18]
Exception: NameError
Message: uninitialized constant PokeBattle_Battle::NUZLOCKEMAPS
Backtrace:
Nuzlocke:125:in `nuzlockeMultipleMaps'
Nuzlocke:97:in `pbThrowPokeBall'
PItem_BattleItemEffects:307
PItem_BattleItemEffects:306:in `call'
EventHandlers:134:in `trigger'
PItem_Items:311:in `triggerUseInBattle'
Battle_Action_UseItem:124:in `pbUsePokeBallInBattle'
Battle_Phase_Attack:81:in `pbAttackPhaseItems'
Battle_Phase_Attack:68:in `each'
Battle_Phase_Attack:68:in `pbAttackPhaseItems'
I assume you're using Option 1 from the Configuration (Dubious Clause) as opposed to Option 2, and that because of that, the system can no longer detect the variables "NUZLOCKEMAPS". Try un-commenting out the NUZLOCKEMAPS code underneath Option 2 even though you aren't using it, then removing the contents inside so that it looks like this:
Code:
# OPTION 2: Connected Maps (so you don't get 2 encounters in the same route)
# example: (It's an array of arrays, simple as that, just mimic the example)
NUZLOCKEMAPS = []