Conditionnal branche (script) help

Hello!
I want to make a contitional branche for event location, and i need to know if it can be done! this is mostly to prevent variable using because i have a day and night feature. Basically, i make some npc move, at one time. So even if it is not a problem for one or two npc, it become harder when i have 10 of them on the same map.
(as an exemple: this is one of my npc)
2017-10-23 (1).png
2017-10-23 (2).png
2017-10-23 (3).png
2017-10-23 (4).png
2017-10-23 (5).png



As you can see on the second pic, i use variable to secure npc location and animation. I want to avoid that.

Thanks for help

I've moved this thread to MV Support. Thank you.

I am so sorry, i seen school so i thought it was good.
This is just a thought, I'm not sure if it'll work but how about duplicating the more complex maps that contains more NPCs and set conditional branches that teleport to different versions of those maps depending on whether the player enters during the day or at night. You can then edit those events separately.
I can't read whatever that language is, so I can't tell if you are trying to check THAT event's location, or a different event's location.

You can do this in a Conditional Branch Script box:
Code:
this.event().x == 15

to see if the current event's X coordinate is 15.

If you want to check a different event's X coordinate (let's say you're after event 23):
Code:
$gameMap.event(23).x == 15


When you do a screenshot of an event, please use the Alt + PrintScreen keys. This will capture JUST the active window (the event window) and not the rest of the desktop behind. That means it's easier to see what's in the window, without having to enlarge it or have all the extra background stuff.
Thanks for your help^^

I thought about vincent's idea, But as my game will already be more or less heavy, i try to save space as i can! With condition it take me few script on event's page! (Also you probbly noticed i am french! i will do my best to translate the game for all of you people ^^)
so an error occured... And for sure i don't know what is the problem..


2017-10-24 (2).png
sorry - try this:

$gameMap.event(this._eventId).x instead of this.event().x
Perfectly work ^^ Thanks a lot!!!

Original thread: https://forums.rpgmakerweb.com/threads/conditionnal-branche-script-help.86169/