Trying to make an attacking skill that applies states to the caster.

Yeah, trying to build a skill (many skills in fact) that will put the spell/skill caster into a state.

Context
I've got a robot character that, whenever he performs an action, his CPU will drain and slow him down. As he gains new armour his defences to the negative effects increase. I've got it all figured out if he casts on himself, but if he has an attack skill/magic against an enemy I have no idea how that could induce the incurrence of a state effect back to himself.
Just have the skill call a common event, and have the common event apply the state to the robot dude. Assuming that he's the only character capable of using said skills, it should be that simple. Otherwise, use Control Variables -> Game Data -> Last Action Data to determine the ID of the last actor that used the skill, and then apply the state to that actor.
Just have the skill call a common event, and have the common event apply the state to the robot dude. Assuming that he's the only character capable of using said skills, it should be that simple. Otherwise, use Control Variables -> Game Data -> Last Action Data to determine the ID of the last actor that used the skill, and then apply the state to that actor.
Epic! Yeah, I totally get it! Amazing, you're awesome!!!
Hang on a second, does that mean I can just add a secondary common event on any skill used by all party members that is like "If robot is the caster call "battery drain" common event"???

I bloomin' well can can't I??

Edit: Ohhhh geez... I can do stackable buffs with this. Naaaahhhh... nah, my head's flipped now.

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-make-an-attacking-skill-that-applies-states-to-the-caster.166901/