Hello everyone I need help to understand if the following event interaction can be fixed.
I have a parallel event which checks if in from of it there is an event, if so it forces it to trigger with the code:
$gameMap.event(Id).start()
(where Id is a game variable value of the event Id in front)
It works to trigger it but the problem is that it keeps triggering infinitely, because the conditions to trigger it (being in front of it) are there for many frames (seemingly forever). It's like the ok input is being kept forever in the stack and it keeps activating the event. I've tried to add wait some frames, or using self switches to stop it, but that won't work because I want the parallel event to stay as it is (in its direction mainly, but it might exist in all directions so 4 different directions) until the triggered action button event in front of it has finished its page event. I can't put some generic wait frames because I don't know how much time will take the triggered event, because this should work for any event. Furthermore I do not have enough selfswitches pages left on the parallel event to cover all directions and I don't want to add new plugin to add more pages.
My question is:
Is there a script code to put into a parallel event page (maybe in a conditional branch?) to make the parallel event to wait until the triggered event is done? Or at least cancel all the active inputs? Or at least make it wait a number of frames equal to the second event flow (but without knowing the time required from it) ?
I have a parallel event which checks if in from of it there is an event, if so it forces it to trigger with the code:
$gameMap.event(Id).start()
(where Id is a game variable value of the event Id in front)
It works to trigger it but the problem is that it keeps triggering infinitely, because the conditions to trigger it (being in front of it) are there for many frames (seemingly forever). It's like the ok input is being kept forever in the stack and it keeps activating the event. I've tried to add wait some frames, or using self switches to stop it, but that won't work because I want the parallel event to stay as it is (in its direction mainly, but it might exist in all directions so 4 different directions) until the triggered action button event in front of it has finished its page event. I can't put some generic wait frames because I don't know how much time will take the triggered event, because this should work for any event. Furthermore I do not have enough selfswitches pages left on the parallel event to cover all directions and I don't want to add new plugin to add more pages.
My question is:
Is there a script code to put into a parallel event page (maybe in a conditional branch?) to make the parallel event to wait until the triggered event is done? Or at least cancel all the active inputs? Or at least make it wait a number of frames equal to the second event flow (but without knowing the time required from it) ?