Relic Castle

I want to make the wild Pokémon appear like in LGP and LGE. When you touch them, they appear in a battle where you can just catch them. But how it is mostly impossible to do this without knowing how to script correctly, I tried to make overworld Pokémon events with battles, where after the battle the Pokémon appear again after a little amount of time. First it worked really good but I was offline for months and now I looked at my game and the events aren´t working correctly. I show you how the event looks like:






Then here is the error message that pops up:


Script: Interpreter line 276 =

"(#{mapname}):\r\n#{message}\r\n#{s}")




Message: PField_Encounters line 345 =

if hasConst?(PBItems,:SHINYCHARM) && $PokemonBag.pbHasItem?(:SHINYCHARM)



Interpreter:243 =

result = eval(script)

If someone can help me or give me some tipps on how to make the event work better, than thanks in advance.
Top