Um, sorry. Just used quote to give you the notification. Including a wait should work, but I've seen you comment in another topic that it isn't advisable to run two autoruns (well, autorun + parallel since they run at the same time now?) at the same time, lol.
I'm not using a script (Edit: By "script" I assumed a plugin, lol). I have an elaborate event system and, besides it being too elaborate to explain, I don't really wanna discuss the system publicly. So I just wanted to check if certain options were available to me with my question.
Actually, at the moment my event's location cannot change, but I want to include functionality to facilitate for that if I or anyone else would like to have the events be able to move. I have scripted the following for obtaining an event ID with a specific note:
Code:
◆Script:var allEvents = $dataMap.events
: :for (var e = 0; e < allEvents.length; e++) {
: : if (allEvents[e] === null) { continue }
: : var eventId = allEvents[e].id
: : var eventNote = allEvents[e].note
: :if (eventNote == 34) {
: : var markedEvent = eventId; console.log("Entered");
: : $gameVariables.setValue(26, markedEvent);
: :}
: :}
So now I think I no longer need the additional parallel/autorun event. The primary autorun event would scan the map for an event (it should never have more than one on a map) with a specific note tag, and if it finds such, obtain the Map X & Y of that event ID. I don't know offhand how to do that though (and my method above isn't the best, I guess), but I'm retiring for now since my eyes hurt.
Edit 2: Oh wait. I could skip obtaining the id and go straight for the x and y, lol. I think.
Edit 3: Yea, this works:
Code:
◆Script:var allEvents = $dataMap.events
: :for (var e = 0; e < allEvents.length; e++) {
: : if (allEvents[e] === null) { continue }
: : var eventNote = allEvents[e].note
: : var eventX = allEvents[e].x
: : var eventY = allEvents[e].y
: :if (eventNote == 34) {
: : console.log("Entered");
: : $gameVariables.setValue(26, eventX);
: : $gameVariables.setValue(27, eventY);
: :}
: :}
For the moment I think my curiosity is resolved. Unless there's something risky/bad in my coding.
Edit 4: No. I would probably need to know how to pick out specific note tags for the check. Such as if an event has the following note tags: Bird <Fly> 12
How can I specifically check for any (Bird / <Fly> / 12) for my
"if(EventNote == 34)" part. I need to rest my eye now though, lol.