• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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
    56
    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