As Nawrot mentioned, the GAS is meant for this- but you don’t HAVE to learn it.
Keep in mind you can nest functions
timer event
Event_CheckAfflictions
f_CheckAfflictions
check Afflictions does:
f_headacheCheck
f_poisonCheck
f_burnCheck
Then each affliction could use some simple code they share:
Is (array member for this affliction) true?
if true: do unique action.