Question regarding Skills and States

I have seen it is possible to make a skill that puts a state on a target quite easily, but is it possible to make a skill that does something and also puts a state on the user?

Sorry if it's a silly question I'm just trying out the trial version and didn't see it anywhere.
Not directly. It requires you to get cute with the damage formula, and/or use a plug-in. I don't recall how to do it in a damage formula though, but maybe someone else will know?
Everyone should use Yanfly Skill Core to do anything you can't do by default

<After Eval>
user.addState(x)
</After Eval>
but this you can do with default

just write into the damage formula

a.addState(n); regular damage

(with n being the number of the state)
a.addState(n) worked thank you.

Might as well use the topic to ask here, is there some way I can use another event to change the self switch of another?
Example, I made a fixed battle and I want to make it respawn when I leave and enter the room, but some of the battles I want this some I don't so I don't want to set them all to on or off at once
You can remote-control Self Switches with a script call from other events:
Code:
$gameSelfSwitches.setValue([MAPID, EVENTID, SELFSWITCH], FLAG);
where MAPID is the ID of the map, EVENTID is the event's ID (obviously), SELFSWITCH is 'A', 'B', 'C' or 'D' and FLAG is either true or false. E.g. if you want to turn off Self Switch A of Event #1 on Map #3, you write:
Code:
$gameSelfSwitches.setValue([3, 1, 'A'], false);

But it sounds like in your case it would actually be easier to use a Self Switch only for the events you do not want to respawn and use Erase Event for the others - Erase Event only temporarily removes an Event from the map, it will reappear if you leave and reenter the map. (If you're interested, I wrote a tutorial for On-Map Enemies that goes into a bit more detail on that.)
That is indeed what I was looking for, I will check some more tutorials so I don't have to ask so many questions, many thanks.

Original thread: https://forums.rpgmakerweb.com/threads/question-regarding-skills-and-states.77600/