• 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 Trading Card Game 2 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.

[Scripting Question] I needeth help with creating two new status conditions:

  • 3
    Posts
    3
    Years
    • Seen Jul 15, 2022
    So I have two new status condition ideas:
    Deafened
    Irradiated

    Context: I have two new types in the game: Sonic and Radiant

    Deafened as suggested means the pkmn will not be able to hear the trainer's commands so in a way works like sleep. Caused by Sonic Type moves
    Irradiated means the pkmn has been exposed to radiation, and so the effect will cause the pkmn to continuously lose HP, like with poison and burn. Caused by Radiant Type moves.

    It would really be great if someone could either guide me on how to script the code, write it themselves and explain or any other way you think might be more helpful.
    So in short pls help me create scripts for two new status conditions.
     
    Rule of thumb when trying to figure out how to do things yourself is to just adapt something that already exists. If Deafened "works like Sleep", then look at how Sleep is implemented and adapt Sleep. If Irradiated "works like Poison", then look at how Poison is implemented and adapt Poison.
     
    Okay, and that is what I've done so far, but I'm struggling to find where the exact code which defines what the effects do are.
     
    Okay, and that is what I've done so far, but I'm struggling to find where the exact code which defines what the effects do are.

    CTRL + Shift + F searches through the entire game scripts.
     
    Back
    Top