• 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.
  • The results of the game jam are out!
    See the Judge's Spotlight choices and vote for your favorites to win Community Choice Spotlight by the 28th! 🫙
  • Reminder: AI-generated content is not allowed on the forums per the Rules and Regulations. Please contact us if you have any questions!

Getting items after blackout

thedutchbirder

Rookie
Member
Joined
Sep 13, 2025
Posts
3
Hi guys,

I have set up my rival so that when he sees me the battle triggers, parties are based on the starter choise combined with the amount of badges the player has. After the battle the player gets 2 EXP candys and the the rival walks out of sight again. this works fine.
But when you lose the batte and are transported to your house you are still granted the 2 EXP candys and the tune from the route where you encountered the player still plays.

What is going on here?
 
Last edited:
Hi guys,

I have set up my rival so that when he sees me the battle triggers, parties are based on the starter choise combined with the amount of badges the player has. After the battle the player gets 2 EXP candys and the the rival walks out of sight again. this works fine.
But when you lose the batte and are transported to your house you are still granted the 2 EXP candys and the tune from the route where you encountered the player still plays.

What is going on here?
For the Exp Candies problem, maybe try putting a conditional branch to only get them if you win?

And does the map of the player's house have it's own music? If not, it'll just play the music of the last map the player was (in this case, the route).

With this description I can only think of these fixes, if they don't work you could share some screenshots of the events to give more info about it.
 
In the example maps, the command for the trainer battles is set in a conditional branch and anything happening within it (and not outside or in the "else" case) only happens if the trainer wins as far as I know. If you have the code for the candies outside that conditional branch or you didn't put the code for the battle in a conditional branch, then that may be the problem.

In any case, like Almeidarts said, screenshots of what you have done in the events or scripts go a long way in helping solve problems since other people can actually see what's wrong instead of guessing.
 
The event for a trainer battle doesn't automatically get cut off if the player loses, so if the XP candies are given in the same event, the player will get them regardless. The battle's outcome is automatically stored in Variable 1, so you can put a conditional branch based off that variable after the battle
 
Back
Top