- 6
- Posts
- 4
- Years
- she/her
- Seen Feb 3, 2024
I'm making a game with more of a focus on competitive-style battles, and I want the player to be able to use items like focus sashes and weakness policies without worrying about permanently losing the item. I found this script: https://www.pokecommunity.com/showthread.php?t=429026 that says it achieves the effect I'm looking for, but upon getting into a battle with the script enabled, the game crashes with the following error:
Is there a way to get this script to work, or if not, is there an alternate way to restore the player's held items after a battle?
Code:
[Pokémon Essentials version 18.1]
Exception: ArgumentError
Message: wrong number of arguments(0 for 1)
Backtrace:
Battle_StartAndEnd:258:in `pbStartBattleCore'
Battle_StartAndEnd:258:in `pbStartBattle'
PField_Battles:421:in `pbTrainerBattleCore'
PField_Battles:420:in `pbSceneStandby'
PField_Battles:422:in `pbTrainerBattleCore'
PField_Battles:419:in `pbBattleAnimation'
PField_Battles:419:in `pbTrainerBattleCore'
PField_Battles:487:in `pbTrainerBattle'
Debug_Menu:369:in `pbDebugMenuActions'
Debug_Menu:857:in `pbDebugMenu'