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

[Question] New Ability Help [Essentials 21.1] using Pledge Effects

  • 9
    Posts
    193
    Days
    • They/Them
    • UK
    • Seen Dec 8, 2024
    Hey y'all!

    So I want to make an trio of abilities which sets up one of the three Pledge Effects: Swamp, Sea Of Fire, and Rainbow, as if they were such abilities as Misty Surge, Drought, etc. But I have no idea how to code this. I tried this in Battle_Ability Effects, using the Misty Surge code as a base, and as an example for Sea of Fire:

    Battle::AbilityEffects::OnSwitchIn.add(:BLAZINGHONOUR,
    proc { |ability, battler, battle, switch_in|
    next if battle.field.terrain == :SeaOfFIre
    battle.pbShowAbilitySplash(battler)
    battle.pbStartTerrain(battler, :SeaOfFire)
    }
    )

    And well, that didn't work.

    I have an idea that it needs to instead link to a move effect, but I also have no idea how to do this, since I have no coding experience. Any help on this would be greatly appreciated, and at the bare minimum, I can credit you in my in-progress fangame, Pokemon Lazulite.

    Thanks for reading, and I look forward to your responses! <3


    Edit: Moved to Pokemon Essentials to be more appropriately placed, feel free to remove this mods :)
     
    Last edited:
    Back
    Top