I still curently developping the core of my game and still enconter many trouble.
Curently I want to check if an event exist in a (x-y) position other then then player himself.
I curently found a kind of code that can work but pretty eavy, so I hope you give me a better solution.
Thansk for your great help.
At least directly within the maker, I don't think their is. You probably won't get a cleaner method other than using a script. I can think of a few work arounds, but that's going to not be as fun as I'm making it out to be. That and I'd have to see your project haha.
TL😀R - I think you should use a script.
Yes, there is a way. Do you just want to know if there IS an event at the player's position, or do you want the event ID?
$gameMap.eventIdXy($gamePlayer.x, $gamePlayer.y) will give you the id of the event at the player's position, or 0 if there isn't one.
you can use event commands to check any position of the current map for a lot more info.
Use control variable to store X and Y of whatever position you want into two variables, then use get location info with those two variables as coordinates and a third variable to store the result - and that result may be an event ID, the region ID, or a few other things.
I know that but using variable cause too much instability when a lot if event can use same variable. I love avoid these kind of programming that resulte in many falure in my past codes. Now I only need to fond how to get variable value in a script, Im sure I will found how in few time.
$gameVariables.value(variable_id)
thanks, my code working a lot faster with your help now.