I have been out of it a little, doing classes and some other life stuff. So coming back into MV a little and well... my eventing is rusty... I need to put in a conditional branch i think... that if the player is on a spesific x, y only, to do a movment route. But when i try to do a nested conditional branch of player= map X of player/player = map Y of player it doesnt work.. what am i missing? the control of X and Y in another event?? I dont want someone to do it for me.. but at the same time i kinda need to see how it looks.
Simple question
RPG Maker MV SupportScript: $targetX = the X tile you want;
Script: $targetY = the Y tile you want;
If: Script: ($gamePlayer.x ==$targetX && $gamePlayer.y ==$targetY)
Set Movement Route
Script: $targetY = the Y tile you want;
If: Script: ($gamePlayer.x ==$targetX && $gamePlayer.y ==$targetY)
Set Movement Route
Please post a screenshot of what your event looks like now so that we can help you with what's wrong. Using script calls can make it more efficient, but you can do it with event commands (and probably should be able to, in terms of your personal knowledge).
@AquaEcho Why not just put the entire thing into the script box of the conditional branch? Why create global variables to bounce around the window namespace?
@AquaEcho Why not just put the entire thing into the script box of the conditional branch? Why create global variables to bounce around the window namespace?
To be honest I just thought it was easier to read that way.
But sure, if you're not going to reuse the variables and this is just a one-off check
If: Script: ($gamePlayer.x ==theXTileYouWant && $gamePlayer.y ==theYTileYouWant)
Set Movement Route
I honestly... stupidly.. got so frustrated that i deleted all the event to start over. I havnt had time to recreate.
Original thread: https://forums.rpgmakerweb.com/threads/simple-question.157260/