(2K3) need help figuring this scripting event out

I'm using RPGMaker 2003 and I need help figuring this parallel event out. It's a bit simple and I think I could make this work just by listing each coordinate on the map but that seems way too tedious. The way the script works right now is the event activates the moment the player steps on a specific coordinate in the map, but i want it to activate when the player walks over in the highlighted red area.

The way I want this event to work is by triggering the moment the player walks on a certain area. I figured I could use variables meant to represent the player's x and y coordinate, but is there another easier way to do this like using batches or something?


1738367430818.png
1738367394409.png

1738367394409.png1738367430818.png
your problem has nothing to do with the coordinates, but the way you nested the conditional branches.

if you have a conditional branch nested inside another, the action can only happen if both conditions are true, you need to move the second conditional branch outside the first, and give both conditional branches the desired effect instead of one effect nested for both.

EDIT: or use <= instead of == if you keep the conditions nested.
or use <= instead of == if you keep the conditions nested.
This is the method I tend to use, basically the first conditional branch must allow for the conditions of all subsequent conditional branches else they'll never get to those subsequent conditional branches.

However for something like this, the method of just having separate branches(not nested) would probably be better and easier to manage
Your mockup highlights an area of 7x6 tiles in the top-left of the map. The top-left tile is X = 0, Y = 0. It's a 2D area (XY) so you need both coordinates to be in range, i.e. 2 nested branches. So you could just change the condition to X < 7, Y < 6.

Note that this event will continue to run every frame. That doesn't seem to be a problem here, but if it's intended to be a one-off thing then you may want to turn on a switch to change the event to a blank page once the cube has been rotated.
Since event "IF"s cannot check more than one object or variable, it is necessary to perform a check inside another for the same variable.

Check the X coordinate:
Code:
@> Conditional Branch: Variable [0009:PlayerXMap] >= 0
  @> Conditional Branch: Variable [0009:PlayerXMap] <= 6
    @>
   : Branch End
  @>
 : Branch End

Check the Y coordinate:
Code:
@> Conditional Branch: Variable [0010:PlayerYMap] >= 0
  @> Conditional Branch: Variable [0010:PlayerYMap] <= 5
    @>
   : Branch End
  @>
 : Branch End

It looks a bit messy, but it's actually quite simple to do:
Code:
@> Conditional Branch: Variable [0009:PlayerXMap] >= 0
  @> Conditional Branch: Variable [0009:PlayerXMap] <= 6
    @> Conditional Branch: Variable [0010:PlayerYMap] >= 0
      @> Conditional Branch: Variable [0010:PlayerYMap] <= 5
        @> Text: It's work!
        @>
       : Branch End
      @>
     : Branch End
    @>
   : Branch End
  @>
 : Branch End

I don't understand the purpose of your system, but if you are trying to control the "3dcube" map event to look at a different side than the player's position you can use this:
1738423878460.png

Original thread: https://forums.rpgmakerweb.com/threads/2k3-need-help-figuring-this-scripting-event-out.175075/