- 20
- Posts
- 4
- Years
- She/it
- United States
- Seen Jul 31, 2024
I'm curious on how to make an ability in v19, I all the tutorials I can find are outdated, and the wiki has the one for v20, which I am currently not willing to put in the effort to upgrade to lol.
I defined my ability in the pbs, abilities.txt
Then I went into BattleHandlers_Abilities.rb and made an attempt at making it so attack and speed are raised by 2 when at 1/3hp or lower
What else do I need to do, as it currently doesn't work, and if needed, what needs to be corrected?
I defined my ability in the pbs, abilities.txt
Code:
268,RUBYCORE,Ruby Core,"Attack and Speed are sharply raised in a pinch."
Code:
#==============================================================================
# Ability: Ruby Core
#==============================================================================
BattleHandlers::DamageCalcUserAbility.add(:RUBYCORE,
proc { |ability,user,target,move,mults,baseDmg,type|
if user.hp <= user.totalhp / 3
battle.pbShowAbilitySplash(battler)
battler.pbRaiseStatStageByAbility(:ATTACK,2,SPEED,2,battler)
}
)
What else do I need to do, as it currently doesn't work, and if needed, what needs to be corrected?