• 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.

[Other] How to create an Event according to what Starter I choose in Emerald?

LegendChu

❤ CAREFREE, BUT CARING ❤
  • 14,123
    Posts
    11
    Years
    Okay how exactly do I create Scripts to make the following Events have different options according to the Starter I choose in Emerald, I mean have a different Event happen according to whether I choose Treecko/Torchic/Mudkip?

    1) Have an NPC give a Pokemon depending on my Starter.

    2) Create another Rival (other than Brendan/May) & make him have different Pokemon, based on what Starter I've chosen.

    3) Change the Pokemon League Champion based on my Starter, I mean have a different Champion depending on what Starter I choose.

    Pika Pika :chu:
     
    say you set flag 0x200-0x202 depending on which starter you chose. A script would look like this:
    Code:
    #org @start
    checkflag 0x200
    if 0x1 goto @treecko
    checkflag 0x201
    if 0x1 goto @mudkip
    checkflag 0x202
    if 0x1 goto @torchic
    end
    
    #org @treecko
    trainerbattle 0x...
    
    #org @mudkip
    trainerbattle 0x...
    
    #org @torchic
    trainerbattle 0x...

    Fill out the trainerbattle part yourself, or if it's giving a pokemon for example you could replace it with givepokemon 0x...

    Of course you would have to set one of those flags when you get your starter in the first place, and since I don't hack emerald I have no idea what flags are safe to use. But that's the basic concept, it's not too hard if you know some simple scripting.
     
    Incidentally, I'd recommend setting a variable, usually 0x4031, to a value from 0-2 corresponding to the three starters and check that instead, as that variable is already used by the vanilla ROM (in certain specials, for example) to determine the starter. That way you save using three flags for something that can be done with just one variable, too.
     
    Variable 0x4023 (in Emerald) is where the value of the chosen starter is registered. It is set to 0x0 if you chose the first slot (which is Treecko), 0x1 if you chose the second slot (Torchic), or 0x2 if you chose the third slot (Mudkip). You can just simply use the compare command with variable 0x4023 in scripts in order to achieve on what you are expecting. Just look at the overworld scripts of either Brendan or May for examples of scripts that uses variable 0x4023 to guide you.
     
    Okay, this is the Script for the First Battle with your Rival (on Route 103).

    Spoiler:


    I tried making a Trainer Battle Script, based on it. Here it is:

    Spoiler:


    I also tried to create a simple Give Pokemon Script. Here goes:

    Spoiler:


    Correct me, if I'm wrong (might be):3c

    Pika Pika :chu:
     
    Back
    Top