Hi all. I would like to create skills that deal more damage when the targets have been afflicted with a status, for instance, an attack that doubles in damage if the target is burning. I would also like to have skills that deal more damage when the player is afflicted by a status, such as being in stealth. I figure there would be some kind of 'If' statement involved within the formula, but i'm not really sure how to write it. My previous experiences with coding are in Twine, where you'd just write something like (if: _enemyisburning is 1)[blah blah] (else:)[blah]. Anyway, any help would be appreciated.
A formula could be something like t.status.includes(status => status.id === 1) ? u.atk * 2 : u.atk
Replace 1 by the ID of the status. Not tested but I guess it works?
@wano Hi, thanks for your response! I was wondering if you could break down what the formula means, so I can understand and use it better? I know that t = target,and u would be the user, and the user's attack. I just want to understand the rest of it. Sorry for being a pain

Sure! The syntax is myCondition ? thenResult : elseResult. The complete code means : IF target status list includes the status id 1, THEN return user atk value multiple by 2, ELSE return user atk value.
@wano Hi! I finally had a chance to try out this code, but it appears only to make a skill that attacks when the status is in effect, and only does the 'else' part of the equation. Is there something I am missing? the only thing I changed was the ID of the staus