• 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.
  • 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!
  • Scottie, Todd, Serena, Kris - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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] Intrinsic Levitation

  • 14
    Posts
    8
    Years
    • Seen Apr 15, 2025
    So, in my fangame, I'm implementing intrinsic levitation- basically, instead of a Pokemon's ground-type immunity being tied to being a flying-type or having the ability Levitate, it is individually determined by the Pokemon. Unfortunately, I don't really know where to start working on this; the best idea I have is to make it a new property in the pokemon.txt file, but I don't know where to go from there. Would anybody know what to do next? Sorry to be a bother, and thank you for hearing me out!
     
    Yeah, adding a new property in pokemon.txt (and wiring it up so that it's available on the Pokémon objects[0]), and then you can change the battle logic so that everywhere it checks for the levitate ability[1] it also checks for your new attribute.

    [0] a completely unrelated example of adding a property to Pokémon is my mutually exclusive Pokémon script that adds exclusive to Pokémon objects (the changes in PokeBattle_Pokemon), and also to pokemon.txt (the changes in Compiler).
    [1] i.e. all the "hasWorkingAbility(:LEVITATE)" calls in PokeBattle_Battler, PokeBattle_MoveEffects, PokeBattle_AI, and PBattle_OrgBattleGenerator.
     
    Back
    Top