Nothing triggered by console log. I'm trying to make it to where when variable 15=1, the event moves down; and when it equals 2, it moves up. I'm using FTKR Add Routine Move Commands to make Conditional Branches inside of the Move Route.
https://plugin.fungamemake.com/archives/1384
I tested it by manually changing the variable by a seperate event and it works fine.
I tried beforehand making the Move Route have 2 different Conditional Branches (one for checking if it's at a certain tile(then changing the variable if so) and another for checking if variable is 1 or 2), but it created too much lag and sometimes would skip commands. That's why I'm trying to make it work this way.
The reason I have it set up this way is because I have an event that uses multiple pages that it cycles through if the player gets within a certain range of the event. And when the player is away, the event returns to page one. The problem is that when it returns to page one, the move route resets, so it doesn't continue going in the direction that it was beforehand.
Pathfinding plugins that I've found also try to navigate the event in the "best possible way" by avoiding obstacles, where as I want an event to stop if it hits an obstacle.
I could have a parrallel event check instead if event is at X,Y, but my game uses a lot of parrallel events already, and I'm worried about lag as this would be a lot of events to check for as I plan on having multiple events with different move routes.
I apologize if my explanation was lacking, but that is what I'm trying to accomplish.
Edit: I just tried to do something more simple just to see if the event would activate, by having an new event have
Event_Trigger: <
$gameMessage.add(text);
/>
just to see if it would activate and it didn't. So I think it has something to do with getting the event to activate. I wonder if adding something like the example event had (
$gameMap.eventsXyNt(x, y).forEach(function(event) {
event._triggeredBy = this; ) would make it work? But I don't know what any of that means.