Objective: to create a parallel event that makes a sound until the player comes to it, so then another action will be triggered.
For now I made it with two events: One parallel event creates sound and checking if my utility variable value = 146. Another event right next to it is an autorun event, but it has YEP proximity activate condition, so it activates only when player is in range of 5 tiles. All it does is sets utility variable value to 146 and deletes itself, so another event will react to it and launch the main event instead of looping sound.
But I don't think it's the best approach, and because it's the second time I have to make such event, I want to improve it. Is there a way to make everything in one event, using the conditional branches? I haven't found player proximity in branches' options, but there is option for scripts. Will it be hard to write such a script?
For now I made it with two events: One parallel event creates sound and checking if my utility variable value = 146. Another event right next to it is an autorun event, but it has YEP proximity activate condition, so it activates only when player is in range of 5 tiles. All it does is sets utility variable value to 146 and deletes itself, so another event will react to it and launch the main event instead of looping sound.
But I don't think it's the best approach, and because it's the second time I have to make such event, I want to improve it. Is there a way to make everything in one event, using the conditional branches? I haven't found player proximity in branches' options, but there is option for scripts. Will it be hard to write such a script?