Trying to get ActorID regardless of party position

Hi there! I'm trying to settle up events that can check for the actor ID of the actor that activated it, and do something only to said actor.

I'm also using the Alpha NET plugin to allow multiplayer mode, so simply resorting to getting the party leader's ID (as it could be done in a singleplayer setting) isn't enough.

One idea I had was to get the party position of who activated said event and then getting the actor id, but I don't know to to do that.

I'm still starting to learn how to work with the engine, so sorry if I missed something obvious.
Is the event activated by the use of a skill?
You'll need to give us links to the plugins that allow you to make a multiplayer, because they have to have changed the datastructure for that, and without looking at the code no one will be able to give you an answer that will work with that plugin.
Is the event activated by the use of a skill?

it's activated by pressing the action trigger

You'll need to give us links to the plugins that allow you to make a multiplayer, because they have to have changed the datastructure for that, and without looking at the code no one will be able to give you an answer that will work with that plugin.

The only one I'm using is Aplha NET (version 900), which uses SocketIO plugin to work (and is linked in the same github page). So only these two for now. Here's the link: https://github.com/KageDesu/AlphaNET
Describe in detail what you want to do with your event. We may be able to find a solution without using scripts.
Describe in detail what you want to do with your event. We may be able to find a solution without using scripts.

Oh thanks!

It's an event in which any player can interact/trigger, but it should detect the class of said player, and if it is, for example, X, then proceed to do A, but if their class is Y then proceed to do B. It's basically a conditional branch that uses the class of the players as conditions. I figured it would be doable by getting the player's actor id and then using it to get said actor's class, but there might be a better way to do so too.
You can directly check if an actor in your party is a certain class. Does your multiplayer plugin interfere with that? If so, how exactly does the multiplayer plugin work?
You can directly check if an actor in your party is a certain class. Does your multiplayer plugin interfere with that? If so, how exactly does the multiplayer plugin work?

It works, at the moment, by having one party, and players can join said party. If I create an event I was only able to take the class of the player whose position in the party was the one specified. In singleplayer, this would always be the #1 position, but since the multiplayer system allows, for example, the #7 player in said party to interact with said event, when this #7 player does it the class returned is the one from the #1 player.

In essence it interferes by making all players belong to the same party and not having a dynamic way of picking up party position.

Again, I'm very noob still, so there could be an obvious thing I missed.
So the players are able to independently walk around the map but the game considers them part of the same party? Do all of your players have to have different classes?
Exactly! And also yes, each one have to have a different class
There is no vanilla way to do what you want because you have no way of asking which player activated the event. Does the plugin have any plugin commands or parameters to change? For instance, if you could make it so the player who interacts with something is always switched to the first party position then we could go from there. If not you will have get someone to look at the code like Andar said.
I don't think so, most of it's commands and parameters are related to configuring connection and event for all players at once. I'll see if i can get someone to look at the code. Anyways, thanks for the help!!

Original thread: https://forums.rpgmakerweb.com/threads/trying-to-get-actorid-regardless-of-party-position.126830/