Adding state to caster when he casts a target enemy spell.

Hi all!


I want to add a state to my caster when he uses a target enemy spell. I tried using yanfly action sequence add state X: user in the <setup> notetag but that doesn't add the state unless the spell is a (The User) targeted spell. 
Anyway to add a state to the user while casting a target enemy spell?


Regards,
Leon
search for the topic of using the damage formula coding - this is usually done without scripts or plugins, but with scripted code used inside the damage formula box (which is a lot more powerfull than simple damage numbers)


There is a topic with the codes for MV and another one for Ace, make sure you get the correct one.
Hi all!


I want to add a state to my caster when he uses a target enemy spell. I tried using yanfly action sequence add state X: user in the <setup> notetag but that doesn't add the state unless the spell is a (The User) targeted spell. 
Anyway to add a state to the user while casting a target enemy spell?


Regards,
Leon

That is ridiculous. I did exactly that and it's working fine. Check your notetag spellings/format.
the issue with the damage formula a.addState(x); formula is that the state only gets applied if the attack hits. is there any way to add the state to the user even when the skill misses the enemy?
Necro-post notice: Tiamat-86
In fact it's 18 months since the last post, and yours is a slightly different query anyway.

Please start a new thread.

Original thread: https://forums.rpgmakerweb.com/threads/adding-state-to-caster-when-he-casts-a-target-enemy-spell.58286/