MV CT_Bolt Event Trigger Event Help

Hello. I'm trying to set up an event to where when one event passes onto another, Variable 15 is set to 1.
I'm using CT_Bolt's Event Trigger Event Plugin, and am having difficulty setting it up.
Plugin: https://ct-bolt.itch.io/rmmv-ctb-eventtriggereventmv
Pictures are included below to show what I have set up. Thank you for any help you can provide.
Just an FYI before people post here. The creator of the plugin is confirmed deceased. With that in mind, please try your best to assist. Thank you.
That needs to all be one comment.
Just an FYI before people post here. The creator of the plugin is confirmed deceased. With that in mind, please try your best to assist. Thank you.
I had no idea, that is so sad. They will be sorely missed.
That needs to all be one comment.
I tried that and it still doesn't activate. The sample event the demo had showed it as multiple comments. I attached a picture below that shows what I mean. It also shows multiple comments through the help setting with the example:"

Example #1:
Event_Trigger: <

$gameMap.eventsXyNt(x, y).forEach(function(event) {

event._triggeredBy = this;

$gameSelfSwitches.setValue([$gameMap._mapId, event._eventId, 'B'],true);

},this);

/>
The above code cycles though each events that is touched that are not using the "through" setting
It then assigns the event that is calling the code to the property "_triggeredBy" to the event
Then it turns on Self Switch "B" of that event

"
to understand it more and want to see if it works.
place in both events console.log("event 38 triggered")
and in the other the other ID, see if it's show up in your console log.
also place on the event with the comment below console.log("var 15: ", $gameVariables.value(15))
just to ensure it is changed.

if this just log out fine, what should happen if they touched?
to understand it more and want to see if it works.
place in both events console.log("event 38 triggered")
and in the other the other ID, see if it's show up in your console log.
also place on the event with the comment below console.log("var 15: ", $gameVariables.value(15))
just to ensure it is changed.

if this just log out fine, what should happen if they touched?
I apologize if I am mistunderstanding. Is it set up like this? (pictures attached). Nothing happened when I ran the game, and nothing popped up on the Console Log either.
I apologize if I am mistunderstanding. Is it set up like this?
No, you need to put it inside the event_trigger code block. Just putting code into a comment doesn't do anything.

You're also missing the console.log on the second line.

Similarly, just putting that comment on event 38 doesn't do anything.
No, you need to put it inside the event_trigger code block. Just putting code into a comment doesn't do anything.

You're also missing the console.log on the second line.

Similarly, just putting that comment on event 38 doesn't do anything.
Thank you for explaining. I may still be a little confused though. Is it set up like this?
That's closer, but
You're also missing the console.log on the second line.
Just (stuff in parentheses) isn't a JavaScript command.

However, that's superfluous anyway - what you're trying to establish is whether the event code is being triggered at all, and just one console log will achieve that. What you have should work for that.
I mean it as scriptcall below the command, specially curious on the setvariable.
if you press F8 or F12 while playing and it collide, it should print it out.

if that happens, what should happen, is there a parallel event that does something
when the variable 15 is equal to 1, or what is the function of it?

because if it does log and nothing happens, that's because there is nothing
that combined what it should do, so that makes things a bit unclear.

so it's a bit unclear what you see, as every time the event collide, variable 15 = 1.
so without the entire mechanic you try to make, we need a bit more information.
I mean it as scriptcall below the command, specially curious on the setvariable.
if you press F8 or F12 while playing and it collide, it should print it out.
No, it wouldn't. Two events colliding doesn't activate anything, that's the entire point of this plugin.

Your first suggestion of the console.log inside the event_trigger is perfect.
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.
Alright, if nothing happened that means the code isn't running at all, which is rather what I suspected in the first place.

Are you testing this with no other plugins active?

I haven't seen your map setup or the custom move route, you're certain that one event is moving over the other?
Alright, if nothing happened that means the code isn't running at all, which is rather what I suspected in the first place.

Are you testing this with no other plugins active?

I haven't seen your map setup or the custom move route, you're certain that one event is moving over the other?
I just tried the plugin in a new file without any others, and the event wouldn't pass onto the other even though I had the other event it was suppsoed to pass onto set to "Below Characters" and "Event Touch", which is weird because it let me in my original project. I know it was because I can see Collisions through one of my plugins by hitting F10.
I just tried your "Passable Events" script snippet, and it would pass onto it then, but still wouldn't activate the event.
All that I can say is that, by default, an event cannot move onto a space with another event - regardless of priority - unless they're manually transferred there, or one is set to Through. That's why I was dubious about your event touch getting triggered. (and why I made the passable events snippet for someone)

What I don't really get is why is this plugin necessary for your scenario? The boat event isn't doing anything else (in terms of having event commands on it) and what you're doing is super simple, not requiring code.

So why don't you just use event commands on the boat to check its position after moving, and if it's on the correct coordinates (or correct region ID or whatever) you use the regular event command to control the variable?
try same of character and use "through it on"
also, if the event can hit multiple time to increase the value by 1,
don't use "setValue(15, 1)" as it will set it.

$gameVariables.setValue(15, $gameVariables.value(15) +1) increase the value
if I remember correctly by 1 everytime.

this set variable value 0 to 1 if it was 0, if it was 1, than it go to 2 and so on.
if the console.log didn't print anything, try to use main event in the demo
to check each event on the map and use the consol log again inside the comment.

console.log("38 triggered")
console.log("var 15: ", $gameVariables.value(15))

to see if it prints and increase its value.
if trigger is true, only a console log should print it out as "triggered" if you set it.
you can start with only a console.log and if its working, set a variable to it.

as for the addMovement plugin, I dont know that one, so a link to it, might be usefull.
as it might be possible to add this inside a comment instead of a custom moveroute.

so you can do

if ($gameVaraiables.value(15) >= 2) {
do some code
}
which can be a console log to see if it's triggered before adding those moveroute.
All that I can say is that, by default, an event cannot move onto a space with another event - regardless of priority - unless they're manually transferred there, or one is set to Through. That's why I was dubious about your event touch getting triggered. (and why I made the passable events snippet for someone)

What I don't really get is why is this plugin necessary for your scenario? The boat event isn't doing anything else (in terms of having event commands on it) and what you're doing is super simple, not requiring code.

So why don't you just use event commands on the boat to check its position after moving, and if it's on the correct coordinates (or correct region ID or whatever) you use the regular event command to control the variable?
I agree. After messing around with things I found a better way to do what I want. I don't know why the events would pass onto each other, but the event that passed over's animation would be really buggy afterwards. It must be some plugin that was messing with it.
I appreciate both of your all's help and patience in explaining things and I feel like I understand the engine a lot better even if I couldn't accomplish what I originally wanted. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/ct_bolt-event-trigger-event-help.169612/