Hey!
I've been trying to implement spells that cause the user to take a percentage of their max health as damage when cast.
Unfortunately i can't figure out how to implement it properly.
My last attempt was using a Potion effect used by SELF:CONSUME on cast with the effect having a negative VitalityPercentage.
Aside from that being pretty ugly it also doesn't work properly for undead, naturally.
I've considered making a custom status and then using OnStatusApplied in a character script but i can't seem to find a way to actually properly inflict damage inside the script. (In addition to not actually understanding how to add the script to every character, i.e. base, i haven't done much in this area)
Maybe I'm just missing something obvious here but i would appreciate any hints