Hi, I was trying to add Stamina ability to my game. I don't have any experience in coding and I tried my best by modifying different scripts such as Moxie
Can you help me figure out what's wrong with this? It tells me there is a Syntax Error
if damage>0
if !target.damagestate.substitute
if target.hasWorkingAbility(:STAMINA,true) && @battle.pbRandom(10)<3
if !target.pbTooHigh?(PBStats::DEFENSE)
target.pbIncreaseStatBasic(PBStats::DEFENSE,1)
pbCommonAnimation("StatUp",user,nil)
@battle.pbDisplay(_INTL("TEXTGOESHERE",target.pbThis,
end
Can you help me figure out what's wrong with this? It tells me there is a Syntax Error
Spoiler:
if damage>0
if !target.damagestate.substitute
if target.hasWorkingAbility(:STAMINA,true) && @battle.pbRandom(10)<3
if !target.pbTooHigh?(PBStats::DEFENSE)
target.pbIncreaseStatBasic(PBStats::DEFENSE,1)
pbCommonAnimation("StatUp",user,nil)
@battle.pbDisplay(_INTL("TEXTGOESHERE",target.pbThis,
end