I have a door event where the Hero exits and his father figure makes a comment then it transitions. How do I make it where he only says remark once but the exit still works?
Causing part of an event not to repeat.
RPG Maker MZ SupportI think the easiest way would be to have a self switch turn on and then make a new page of the event that requires the self switch to be on that just has the transfer
global variables
if xsaid=0
say bla bla,
xsaid=1
else
nothing
You don't even need a second page... just make a conditional branch if self switch A off= Comment of fatherly figure> Self switch A ON. That way, the next time you exit, it just transitions.
When I come back in the house it either kicks me out instantly or doesn't respond to touch like I need.
As far as I can see you don't turn self switch A ON at the end of page one, so page 2 can never run.
sorry wrong shots it works fine reentering but it kinda messes up on the first time leaving. it gets hung up after the player goes invisible.
All right, that worked and I appreciate it. I’m about to head off to bed, but I have one last question. The main character is going to interact with an NPC. I want that interaction to cause the dialogue that said on the way out the door which would have to be a separate event, right?. it makes no sense for the dialogue going out the door to show up, unless he interacts that npc.
All right, that worked and I appreciate it. I’m about to head off to bed, but I have one last question. The main character is going to interact with an NPC. I want that interaction to cause the dialogue that said on the way out the door which would have to be a separate event, right?. it makes no sense for the dialogue going out the door to show up, unless he interacts that npc.
if Selfswitch A = OFF:
-line
-turn SSA ON
end
-transfer.
-line
-turn SSA ON
end
-transfer.
It doesn't have to be a separate event, and I can think of all sorts of complications if it does.
What I suggest is:
Player intracts with NPC -> Switch #n ON
On the door, a conditional check
Switch #n ON -> dialogue
Else: Nothing
In fact, you don't even need that Else branch as the dialogue will only run if the switch is on.
What I suggest is:
Player intracts with NPC -> Switch #n ON
On the door, a conditional check
Switch #n ON -> dialogue
Else: Nothing
In fact, you don't even need that Else branch as the dialogue will only run if the switch is on.
Thank you so much for all the help!
Original thread: https://forums.rpgmakerweb.com/threads/causing-part-of-an-event-not-to-repeat.163538/