- 35
- Posts
- 5
- Years
- Seen Dec 25, 2022
I'm using RPG maker here, and trying to create an ability called "Healing Factor" that regains 1/8 hp each turn similar to Leftovers. The ability is acknowledged by the game, but it doesn't activate in battle. Here's the scripting code I have, why isn't it doing what I want?
Spoiler:
# Healing Factor
if hpcure && isConst?(i.ability,PBAbilities,:HEALINGFACTOR) && self.hp!=self.totalhp
pbRecoverHP((self.totalhp/8).floor)
pbDisplay(_INTL("{1}'s Healing Factor restored its HP a little!",i.pbThis)) if hpgain>0
end
if hpcure && isConst?(i.ability,PBAbilities,:HEALINGFACTOR) && self.hp!=self.totalhp
pbRecoverHP((self.totalhp/8).floor)
pbDisplay(_INTL("{1}'s Healing Factor restored its HP a little!",i.pbThis)) if hpgain>0
end