Use a skill from a common event

So I have an item that I want to use to call a skill. Force action from a common event seems to be the way to go only force action doesn't give me the option of choosing who to actually force the action with. It only lets me choose an index and the actor using the item could be in any of them. Could I maybe store the actor's position in a variable and use conditional branches to have force action target the right actor? Or, even more ideally, could I just directly call the skill from a script?
you need a way to determine target and user, and those infos aren't available directly for a common event.
There are a lot of ways around that, but the usual way (by pure eventing, no scripts) is to have the skill that calls the common event place invisible states on the target and/or user, and then use several conditional branches to determine which actor needs to use the force action.

Anything else needs a script, and I don't have any script-links for RMXP
Okay I can put an invisible state on the actor, but then how can I use force action to get that actor to perform the skill? It's still my original problem. Force Action just has indexes to choose from. And the conditional branch only lets me check my actors states based on their id in the editor, not their index on the battlefield.
I should also point out that I'm using Blizzard's Advanced Analyze system. http://forum.chaos-project.com/index.php?topic=120.0
So it's not even really a skill that I want to call, it's that piece of code. He just has it set up so its activated by a skill. If there's an easy way to just call that class then it would solve my problem (though knowing how to call a skill from an item would be useful in general as I could use offensive items based on the user's stats rather than set damage).
Double-post notice: Jotari
If you have something to add and your own post is the last one, simply edit it.

It would have helped if you gave that script link and info earlier, because for that script to work you don't need to care about the skill user - just select any actor, it doesn't matter who.

As for the target enemy, you make eight conditional branches, checking enemy index 1-8 for the state. Inside the conditional branch is the force action targeted on that specific enemy, and a second command to remove the target state so that the next use of the item doesn't check the same enemy again.
(the same principle, eight conditional branches for the party members, would be used if you had to set the skill user)
But if I select any actor then I risk having their turn erased using force action. Say I have Actor at Index 2 use the item, it then forces the Actor in Index 1 to use the skill. If the Actor in index 2 is slower than the Actor in Index 1 and has yet to take their turn, then the using of the scan skill will override whatever action the player originally instructed them to take.
you completely misunderstood force action - force action is always in addition to any regular action.
And it won't matter anyway, because common events are processed at the end of the turn, independent of the speed of the item use.
Is it possible that I have an outdated version or something? Because I already tried that method before even making this thread and have just tried it again now using both Execute Now and Execute In Normal Sequence and in both cases it overrides the instruction the player gives the Actor (provided they haven't performed it already that is). The common event is also being called immediately as soona s the item is used. If it helps I can make a quick video showing it off.
XP has not been updated for years - but I forgot that you're using XP and I'm not sure if that was already standard behaviour then.

Anyway, I can think of several ways how that might be caused by other mistakes, so please show us screenshots of what exactly you're doing, so that we can check for logic mistakes or other causes.

This should cover all the main points.
This should cover all the main points.
No, that video is useless. Screenshots can be studied, they can be zoomed (and they can be limited to a window, making it large enough to be readable instead of being a tiny part of a video that hurries fast forward through the important points.
And for a lot of other reasons...

Please give screenshots of the event and database pages - and please make them with [alt]-[PrtScrn], not [Prtscrn] alone.
Alright. Here's you go. Haven't captured the script as it should be identical to the one I linked above.
Shot1.png
Shot2.png
Shot3.png
Shot4.png

Original thread: https://forums.rpgmakerweb.com/threads/use-a-skill-from-a-common-event.74861/