Repeating Event Question

So I'm trying to make a player house in where when the player enters if there are any party members they will go to different parts of the house until they are asked to rejoin the player.

I've attached a screen shot of my current set up but I think I'm going about it wrong. The problem I'm currently having with the set up in the screenshot is that when leaving it triggers the event again and the party member(s) disappear and do not even re appear.

PS not as important but if I wanted the party members to actually walk away when we go inside what would the best way to do that be?
I did the best I could.

Assume when your hero enters the house, the hero automatically arrives at coordinates (10, 14).

Have 2 dummy events without graphics, named Companion 1 and Companion 2 (Priority: Same as Character)

As soon as the hero enters the house, an auto run event starts which:
  • Teleports Companion 1 and Companion 2 events to where the hero is.
    • EDIT: Oh yeah, you'll want to place these in the Conditional Branch like in the screenshot you have... If companion 1 is in the party... then do all this. If companion 2 is in the party then do all this.
  • Changes their graphics to whatever you want (Package 1 and Package 2 in the screenshot).
  • Walk these events to where they need to go.
  • Turn ON the switch so the auto start event doesn't keep running. (#0440 in the screenshot).

1685575048446.png


When your hero leaves the house:
  • Teleport the hero to where you want.
  • Turn OFF the switch (#0440 in the screenshot).

Note: As soon as you leave this area, companion 1 and companion 2 events will go back to being dummy events with no graphics.
I did the best I could.

Assume when your hero enters the house, the hero automatically arrives at coordinates (10, 14).

Have 2 dummy events without graphics, named Companion 1 and Companion 2 (Priority: Same as Character)

As soon as the hero enters the house, an auto run event starts which:
  • Teleports Companion 1 and Companion 2 events to where the hero is.
    • EDIT: Oh yeah, you'll want to place these in the Conditional Branch like in the screenshot you have... If companion 1 is in the party... then do all this. If companion 2 is in the party then do all this.
  • Changes their graphics to whatever you want (Package 1 and Package 2 in the screenshot).
  • Walk these events to where they need to go.
  • Turn ON the switch so the auto start event doesn't keep running. (#0440 in the screenshot).

View attachment 263861

When your hero leaves the house:
  • Teleport the hero to where you want.
  • Turn OFF the switch (#0440 in the screenshot).

Note: As soon as you leave this area, companion 1 and companion 2 events will go back to being dummy events with no graphics.
Ok I think I'm following but if the Companion 1 and Companion 2 are with the Hero when entering the house then I would need a conditional branch at the start of the auto run event to check for both members and it would need to have an "else" branch for if they are not in the party right?
Ok so I got all that working except (and I may have missed something) when I leave the house without a party member they aren't there when I come back. I assume I need something like a switch in the "else" branch like If Companion 1 is in the party blah blah blah else switch but that's where I'm having a hard time figuring it out from there.
There is no need for an else branch.

1685578717071.png




Edit:
Ooooh, you want to automatically re-add them party members when the hero leaves the house?
Ok, but I still have the problem where if for example: I take companion 2 and leave companion 1 when I come back in the house companion 1 is gone and companion 2 becomes un able to interact with. I think I may have messed up on the companion events. (the companion events are structured the same just with different dialogue)

Edit: "Ooooh, you want to automatically re-add them party members when the hero leaves the house?"
No I want who ever stays to be there until the hero asks them to leave.
@Floopie_Floop Aaah, then you are going to need additional events.

Doing the example for just one companion. Same idea for multiple companions.
  • The dummy event now turns on a switch for your real companion event to appear.
  • We also set this dummy event to have no graphic again and set its location back to its original location.
1685584964807.png


Add an additional event for your REAL companion. Place it to where the dummy event walks to make the transition seem smooth.

1685585360018.png
@Floopie_Floop Aaah, then you are going to need additional events.

Doing the example for just one companion. Same idea for multiple companions.
  • The dummy event now turns on a switch for your real companion event to appear.
  • We also set this dummy event to have no graphic again and set its location back to its original location.
View attachment 263881

Add an additional event for your REAL companion. Place it to where the dummy event walks to make the transition seem smooth.

View attachment 263883
Thank you so much! One (hopefully) last thing, is it possible to not have the hero character frozen while the companions walk to their areas?
For your Autorun event, try setting the Trigger to Parallel Process instead of Auto Run.
For your Autorun event, try setting the Trigger to Parallel Process instead of Auto Run.
Thank you for all your help, sorry if I was a bit dense at times, I'm still pretty new but again thank you so much!
Happy to help. That's why we have these forums. 😀

Original thread: https://forums.rpgmakerweb.com/threads/repeating-event-question.157961/