• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

[Battle] [pokeemerald] What would it be needed to add a 3rd STAB type to most pokemon?(idk how to flair a post now)

Torterra18

Base PP Gifter
  • 32
    Posts
    1
    Years
    Hello, basically I'm asking what stuff should I have to do if I want to add another STAB type to a pokemon, what steps should I have to follow to achieve that? I'm not asking you to do the coding for me, I'm asking you if you could tell me what stuff should I do to make that possible

    And pretty pls pls tell me how to flair threads now
     
    Elaborating on this Third STAB type mechanic, it wouldn't affect the pokemon's defensive properties, but it would grant another STAB type to it, I'm currently debating if the damage bonus should be x1.5 or x1.3, anyways, abilities like Protean and Libero would take it into account while changing the type BUT it can't be changed by those abilities, and it would be like a property in a pokemon's info on base_stats.h, shown as:
    Code:
    .typeEx == [insert type name here]_TYPE,
    That's all the details I have in mind now...
     
    Elaborating on this Third STAB type mechanic, it wouldn't affect the pokemon's defensive properties, but it would grant another STAB type to it, I'm currently debating if the damage bonus should be x1.5 or x1.3, anyways, abilities like Protean and Libero would take it into account while changing the type BUT it can't be changed by those abilities, and it would be like a property in a pokemon's info on base_stats.h, shown as:
    Code:
    .typeEx == [insert type name here]_TYPE,
    That's all the details I have in mind now...
    The base_stats.h file contains an array of a struct, find where the struct is defined and you can add your typeEx field to it.
    Find where in the code STAB is applied, for example by searching for "stab" in the repo. Then add a new condition to it that applies it based on the typeEx value.
     
    The base_stats.h file contains an array of a struct, find where the struct is defined and you can add your typeEx field to it.
    Find where in the code STAB is applied, for example by searching for "stab" in the repo. Then add a new condition to it that applies it based on the typeEx value.
    Ok, but any other details UI related? like, how to add it to the enhanced pokedex or summary screen?
     
    Back
    Top