why common event as user.atk can be invalid.
YEP has plugin and actionsec to place that inside the skill notetag.
for actorId 1 or just the actor that uses the skill (if you want different
effect per actor, you can define it there).
what your condition does is weird, what does that even mean?
not to mention, the else handler?!
that one makes no sense at all and DO NOT USE "ChatGPT"!
I know JS, but instead of YEP, it needs VisuStella plugins as you
use MZ (so my bad there).
adding formula for skills, you can probably add it directly inside the
damage formula when execute the skill, so no common event.
as you reading again this is what you want.
Skill heals your allies (but possible enemies without the undead state)
deals damage to enemies with the undead states?
because if you don't want to heal enemies that aren't undead, you need
to take this into account as well.
Exactly!
The end product is going to be a spell that deals holy-element damage, but I've also included the <Target: Ally or Enemy> notetag to allow me to select any single unit on the battlefield, the only missing component is the logic for the skill to determine if the target is undead or not then apply a separate damage formula if so.
it might be, but as it deals HP damage like you want to the target
that has that state.
but like Robro33 said, if you have Visustella plugins, you need to use
the notetag field with <JS Pre-Damage> an probably others, but I cannot
help you on that part.
You want a holy skill that heals the living and damages undead, do I understand this righ?
I'm not sure if this works out of the box, but can you give the undead staye a negative value for holy damage? This means holy damage now heals them, and holy healing would damage them.
Assuming undead is a state and holy is an element.
I have no idea if this works without a plugin, and I'm in the bus so I can't try it out myself. (Idk if rog maker allowed negative sensitivity to elements, like -100%)
Still stuck on this.
It's looking more like I'll need to figure out the correct notetag setup and custom action sequence for Visustella to get this to properly work.
oh. should have asked this one first. is it healing the amount that would have been caused by the damage formula, or is it healing the amount that would have caused by the healing one?
i can never remember when healing is supposed to be negative or not. try making the number negative