• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • 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.

[Script] How to create Rivals ?

simone1234

Don't underestimate the enemy/opponent.
  • 156
    Posts
    16
    Years
    Hi all.

    I wanted to know how to create more rivals in some games like Fire red or other (but my priority is firered)

    I tried different things like reading on google stuff about these things but i got more confused... (when i was little i had something similiar but now that i want to retry to only focus on these things, how to make
    a script (some i tried using were Xse and advancemap/ freespace finder and some advanced trainer/hopeless trainer editor/ nameless trainer editor)

    Since firered has only 1 rival i wanted to try to get more (similiar to SHiny gold was a great game)

    Thank you for your time.
     
    Hi all.

    I wanted to know how to create more rivals in some games like Fire red or other (but my priority is firered)

    I tried different things like reading on google stuff about these things but i got more confused... (when i was little i had something similiar but now that i want to retry to only focus on these things, how to make
    a script (some i tried using were Xse and advancemap/ freespace finder and some advanced trainer/hopeless trainer editor/ nameless trainer editor)

    Since firered has only 1 rival i wanted to try to get more (similiar to SHiny gold was a great game)

    Thank you for your time.

    Do you mean just a recurring character? Should be just as simple as a combination of trainerbattle, maybe some movement and script tiles. Add dialogue wherever and that'll be that.

    If you mean like, they use the third starter, it's the same thing just a tiny bit more complicated. When you choose your starter, it saves it to a variable, I think 4001? You can check it in XSE, just check a script on Oak's pokeballs, should be like setvar (something) 0x0/0x1/0x2. Then, everytime you encounter the rival, it checks the value in the variable and jumps to the appropriate trainerbattle command. You can check one of the script tiles where Gary/Blue appears, like in Cerulean City, to get a better idea.
     
    For example i wanted to put 1 new rival at route 1 (just like the one in shiny gold gba hack game) and another new rival at some other route etc (also forgot to mention that i tried long ago to copy some script from another base rom/hack +offset but it froze)

    Edit: I also tried to change only the trainerbattle ID on a new script on route 1 with the whole other copied from gary second battle but then it changed the ID trainerbattle of Gary, do i have to change more?
     
    Last edited:
    For example i wanted to put 1 new rival at route 1 (just like the one in shiny gold gba hack game) and another new rival at some other route etc (also forgot to mention that i tried long ago to copy some script from another base rom/hack +offset but it froze)

    Edit: I also tried to change only the trainerbattle ID on a new script on route 1 with the whole other copied from gary second battle but then it changed the ID trainerbattle of Gary, do i have to change more?

    Just copying another script exactly isn't going to work unless the conditions are exactly the same. You can base it off of the Gary Route 22 script, but it will probably have a bunch of extraneous stuff in it. If you haven't, I suggest looking at an XSE scripting tutorial so you understand what most of the commands do.

    And what do you mean by the second part? You changed the trainerbattle ID on the route 1 script, and it changed Gary's trainerbattle ID? Did you just copy and paste the offsets of the script? If so, then it would of course change the trainerbattle ID on route 22 because they're the same script. If you want to copy it, which I don't advise, you want to make a new script, not just copy the offset.
     
    Just copying another script exactly isn't going to work unless the conditions are exactly the same. You can base it off of the Gary Route 22 script, but it will probably have a bunch of extraneous stuff in it. If you haven't, I suggest looking at an XSE scripting tutorial so you understand what most of the commands do.

    And what do you mean by the second part? You changed the trainerbattle ID on the route 1 script, and it changed Gary's trainerbattle ID? Did you just copy and paste the offsets of the script? If so, then it would of course change the trainerbattle ID on route 22 because they're the same script. If you want to copy it, which I don't advise, you want to make a new script, not just copy the offset.

    1) Yep i readed some week ago different kinds of tutorials, though most were trainer/gym script tutorials not exactly rivals tutorials, i tried with a copy of anoter rival of another rom hack with some changes and when i tested it ingame it worked.

    Later on i will try to make one without copying too much.

    2) Ah , yes i noticed that i copied a little too much of the rival script that it became a mess.

    And thank you Ray, i think i will focus tommorow on first adding the teams rivals (I just hope there are enough )
     
    Back
    Top