- 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 :)
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: