- Joined
- Mar 13, 2013
- Messages
- 69
- Reaction score
- 11
- First Language
- English
- Primarily Uses
- N/A
I am having problems with the below script, intended to check for the critical flag when called from the formula box.
def is_this_critical?
if @result.critical
true
else
false
end
end
As an example, I'm using one of the formulas for an attack that ignores DEF on critical hit.
( is_this_critical? ) ? a.atk * 4 : a.atk * 4 - b.def * 2
When I call it in the formula box though, the skill suddenly does no damage whatsoever. What am I doing wrong, and where?
def is_this_critical?
if @result.critical
true
else
false
end
end
As an example, I'm using one of the formulas for an attack that ignores DEF on critical hit.
( is_this_critical? ) ? a.atk * 4 : a.atk * 4 - b.def * 2
When I call it in the formula box though, the skill suddenly does no damage whatsoever. What am I doing wrong, and where?

