• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Custom Feature Question] Swapping Protagonist and Rival?

SporadicSplash

Bimbo in Training
  • 4
    Posts
    6
    Years
    Heyo all! I'm here with a quick question-
    In a game I'm currently creating, I'd like to make it so that if you chose the male protagonist, the female protagonist would become your rival, and vice versa. I've seen a few other fangames do this and I was wondering if there is a certain script I'd need to create in order for this to happen? I'm quite new to scripting and events, so any and all help/pointers are appreciated (Visual tutorials are super appreciated too!) ^^
     
    It doesn't need to be a script! What you're looking for are conditional branches.

    First off, a Switch at the character selection at the very beginning will need to be set up. This Switch can refer to either the girl or boy choice. You'll only need one for this kind of thing.

    Two separate trainer battles, types, and names will need to be set up in the PBS files for this too, for each rival.

    For the battle/rival themselves, you need to make at least two pages on their event like so:
    https://imgur.com/a/3J9w6PR
    https://imgur.com/a/Ewrb9Yg
    You only need that one switch to be active here. If you aren't a girl, the game will go to the second page.

    That's basically it ^^
     
    Last edited by a moderator:
    Back
    Top