Marin made an excellent tutorial.
https://www.pokecommunity.com/threads/410026
Be aware that it takes time.
[Pokémon Essentials version 18.1.dev] [EBDX v1.0.8]
Exception: Hangup Message: Script error within event 5 (coords 8,9),
map 2 (Lappet Town): Exception: Hangup
Message: The script is taking too long. The game will
restart.
***Full script:
pbMaxRaid(4,5,:CHARIZARD, LUCKYEGG, 12,false, false)
Backtrace:
Interpreter:197:in pbExecuteScript'
Luts:677:in each
Luts:677:in cyize
Luts:676:in each Luts:676:in colorize'
[EBDX] Scene Backdrops:217:in setColor"
[EBOX] Scene Backdrops:379:in drawSky [EBDX] Scene Backdrops:369:in each [EBDX] Scene Backdrops:369:in drawSky'
[EBDX] Scene Backdrops: 165:in refresh'
Backtrace:
Interpreter:197:in pbExecuteScript
Luts:677:in each'
Luts:677:in colorize'
Luts:676:in each'
Luts:676:in colorize'
[EBOX] Scene Backdrops:217:in setColor" [EBDX] Scene Backdrops:379:in drawSky'
[EBDX] Scene Backdrops: 369:in each' [EBOX] Scene Backdrops: 369:in drawSky
[EBOX] Scene Backdrops: 165:in refresh'
This exception was logged in C:\users USERNAME(Saved Games Pokemon Alph
Jerrorlog.txt. Press Ctrl+C to copy this message to the clipboard.
OK
https://photos.app.goo.gl/JPRTgwnwRNQiQorW7