Events that relate to the leading party member.

Heya there! I wanted to make it so different things on an event will occur depending on which actor is in the front of the party. For example I go to a particular character's bed and it mentions it's their own. But if the leader is anyone besides said character, the text should mention it being the owner's bed instead.

Now is there a way to make that happen using event commands, or will I need a script?
Control Variables > Game Data will let you put a specific party member's id into a variable. Put that command first in your event, then do a series of conditional branches for each actor you're interested in.
Ah, neat! But i'm still kind of stuck. I can't seem to specify anything else besides a variable like you mentioned. Is there any way I can I know if the event can determine if the particular party member is in the front or not without specifying their name?
You don't need to specify their name.

Control Variables > Game Data > Party (Member #1) (Actor ID)

will put the id of the party leader into the variable you specify.

Then you use conditional branch to check if that variable is any of the actors you want to deal with.

Code:
Control Variables 0001: Party Leader = Game Data > Other > Party Member #1 (Actor ID)
Conditional Branch: Variable 0001: Party Leader == 1
  # actor 1 is the leader
Else
  Conditional Branch: Variable 0001: Party Leader == 2
    #actor 2 is the leader
  Else
... and so on
Ah, I see. Cool! Thank you much, i'll see if I can get things done from there.

Original thread: https://forums.rpgmakerweb.com/threads/events-that-relate-to-the-leading-party-member.94370/