HeroesFightingFear
"The Champion of Alon"
- 99
- Posts
- 5
- Years
- Orange, TX
- Seen Nov 22, 2020
Code:
# Type effectiveness
if numhits>1
if target.damagestate.typemod>8
if alltargets.length>1
@battle.pbDisplay(_INTL("It's super effective on {1}!",target.pbThis(true)))
else
@battle.pbDisplay(_INTL("It's super effective!"))
end
elsif target.damagestate.typemod>=1 && target.damagestate.typemod<8
if alltargets.length>1
@battle.pbDisplay(_INTL("It's not very effective on {1}...",target.pbThis(true)))
else
@battle.pbDisplay(_INTL("It's not very effective..."))
end
end
if realnumhits==1
@battle.pbDisplay(_INTL("Hit {1} time!",realnumhits))
else
@battle.pbDisplay(_INTL("Hit {1} times!",realnumhits))
end
end
PBDebug.log("Move did #{numhits} hit(s), total damage=#{turneffects[PBEffects::TotalDamage]}")
I wanna add something like this stuff for 4x effectiveness. Anyone know how to do it? If so, that'd be great!
As for the display idea...
Code:
@battle.pbDisplay(_INTL("It's extremely effective on {1}!",target.pbThis(true)))
else
@battle.pbDisplay(_INTL("It's extremely effective!"))