I made a new skill, and it keeps giving me this error during playtesting:
Script 'Game_Battler' line 352: SyntaxError occurredunexpected tIDENTIFIER, expecting ':'b.state?(9) ? r = (3/4)b.hp * 2 : (3/4)b.hpWhat the skill is supposed to be doing is reducing the target's HP to a quarter of their current HP (In other words, shaving off 75% of the target's HP), regardless if they're guarding or not.
What's confusing me is that a similar damage formula that I'm using for an HP halving attack works perfectly fine:
b.state?(9) ? r = (b.hp/2) * 2 : b.hp/2What's going on?
Perhaps you guys can see something that I'm not seeing.
Script 'Game_Battler' line 352: SyntaxError occurredunexpected tIDENTIFIER, expecting ':'b.state?(9) ? r = (3/4)b.hp * 2 : (3/4)b.hpWhat the skill is supposed to be doing is reducing the target's HP to a quarter of their current HP (In other words, shaving off 75% of the target's HP), regardless if they're guarding or not.
What's confusing me is that a similar damage formula that I'm using for an HP halving attack works perfectly fine:
b.state?(9) ? r = (b.hp/2) * 2 : b.hp/2What's going on?
Perhaps you guys can see something that I'm not seeing.