• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!
Pokemon Contests and Pokeblocks [Beta]

Resource Pokemon Contests and Pokeblocks [Beta] 0.7.1

heya I was just trying out the plugin for my game cause I really want to implement contests into it and all worked fine until the winner is decided and walks up to the judge, which then crashes the game with this error message

Ruby:
Expand Collapse Copy
[2025-12-13 11:42:09 +0100]
[Pokémon Essentials version 20.1]
[v20.1 Hotfixes 1.0.7]
[EBDX v1.4.5 (E20)]

Script error in Common Event, map 224 (Contest 2)
Exception: NoMethodError
Message: undefined method `+' for nil:NilClass

***Full script:
pbPokemonContest

Backtrace:
[Pokemon Contests Script] 009_Results.rb:77:in `pbResults'
[Pokemon Contests Script] 007_Preparations.rb:13:in `pbPokemonContest'
(eval):1:in `execute_script'
Interpreter:143:in `eval'
Interpreter:143:in `execute_script'
Interpreter_Commands:1112:in `command_355'
Interpreter_Commands:116:in `execute_command'
Interpreter:133:in `block in update'
Interpreter:90:in `loop'
Interpreter:90:in `update'

I was wondering why that happened? I have absolutely 0 clue about ruby so i am at a loss here :,D
could it be an incompatibility issue with v20.1 ebdx?
Did you start a new save file after you installed the plugin? It's trying to update a stat for how many contests were won, but that stat only gets initialized when a new save is started up.

If you don't want to start a new file for some reason (though, you should never get attached to your save files during game creation, as adding plugins commonly need new save files for things to be set up correcty), you can create an NPC to talk to that runs the script $stats.initializeContestStats, then save your game. Remember to delete your NPC after that, though.
 
Last edited:
Did you start a new save file after you installed the plugin? It's trying to update a stat for how many contests were won, but that stat only gets initialized when a new save is started up.

If you don't want to start a new file for some reason (though, you should never get attached to your save files during game creation, as adding plugins commonly need new save files for things to be set up correcty), you can create an NPC to talk to that runs the script $stats.initializeContestStats, then save your game. Remember to delete your NPC after that, though.
oh yeah thank you! that fixed it! 😄
 
Back
Top