You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
2.0k views
in Bug by (550 points)
edited by

I created my trainers following the guide in the wiki, but now I've lost some battles, I've noticed that entering the area again just makes the trainer event start again automatically. What should I do?

Edit: Here are my event's screenshots

1 Answer

0 like 0 dislike
by (14.8k points)
Hi! Make sure to provide some screenshots of your events. It'll be easier for us to help you.
by (550 points)
My bad! I edited the message with a link yo a Drive folder with the screenshots.
by (28.0k points)
Set the selfswitch A to off before the script command that triggers the battle.
Btw you could theorically set the selfswitch A to off in the begining of the page, as soon as the commands on the page started, they are tied to finish until a scene forcefully stop the page (like battles).
by (550 points)
Hello again. I tried doing this but the error keeps occuring. Is there any other solution?
by (28.0k points)
You did not save after loosing right? (because in that case you're doomed).

What's inside the script function you call? (Can you show the page 2 again?)
by (550 points)
I did for some of them, but I managed to defeat them and tried with other one, but it still happens. I've put a screenshot of the page 2 of the other event and the method called on the drive folder I shared.
by (28.0k points)
Your code looks ok, I've check against the trainer sequences and the local switch must be disabled before the battle.
I see page 1 on your new screenshot of page 2.
by (550 points)
Ugh I'm so burned out I'm commiting this kind of mistakes. My bad! New screnshot is on my drive. Anyways, it's like you said, turned off before the battle.
by (28.0k points)
That's really weird. Is the condition after the battle actually executing?
The other things I can suggest to try is:
- Try with local switch A off in the beginning of the page
- Try with local switch A off in the condition for loosing battle
by (550 points)
edited by
Hello again. I tried what you said and still neither of those possible solutions worked. At this point I'm starting to think it's my RPGXP or something. I'll try with the Steam version.
Edit: It isn't my RPG maker, I tried with the steam version and still get the same problem.
by (28.0k points)
Last resort solution is sending the fangame Data over to check what's the issue. Unfortunately I don't really have time for that.
Have you checked if the legacy commands from PSDK works?
by (550 points)
There's no problem, I can make other things meanwhile. About the legacy commands, what are those?
by (28.0k points)
The one used in the example in PSDK forest for the Bug catcher trainer ^^
by (550 points)
edited by
Doing that and turning off the self switch a when losing makes the event repeat without even having the opportunity to go to the pokemon center :'). I'm starting to lose hope
EDIT: Nevermind, I forgot to tell the game I can't lose that battle. Now it seems to work fine, as I come back to the zone and the event doesn't start automatically. This possibly means the problem is with creating trainers with scripts.
by (28.0k points)
Yeah I completely forgot that thing ^^'
by (550 points)
edited by
I will try the scripted method on a clean version of PSDK and will tell you if keeps happening. Thanks for helping!
EDIT: The problem happens on a clean version too, so it must be a problem with PSDK or maybe RPG Maker
by (550 points)
Just to be informed, in case it's a bug with psdk, will it be fixed in next version?
...