Moving statue.

still trying how to do this event. what event i can do that will unlock the door after i place the statues in the right places?
i mean i don`t want the door to be unlock when the statue is not in the right place
Just check for statues position in the door event using a conditional branch.

Spoiler: Event setup using event commands
1 > Select a switch and set it to true

2 > Store your statues coordinates into variables

3 > Use conditional branches to compare each variable to the value it is supposed to have (if a status is supposed to be in position (4, 9) then compare the variable storing its X coordinate with 4). If the value is different than the expected one set the switch to false.

4 > After setting up the 4 conditional branches for those variables if the switch is still true that means both those statues are in the right position so create a conditional branch to check that switch.
  • If the switch is on open the door
  • If the switch is off show a message like "The door is closed"

Of course you can check statues coordinates in the statue event as well. If you do it that at the end of their movement you can let the door open as soon as those statues are in place. If that is the case just use the switch as a condition for a new event page in your door event instead of following the steps after point 4.

Spoiler: If you prefer the coding approach you can put something like this
Everything following a "#" in a line is a comment, feel free to remove it after reading it.
Code:
s1 = $game_map.events[statue_1_event_id] # replace "statue_1_event_id" with the statue real id
s2 = $game_map.events[statue_2_event_id] # replace "statue_2_event_id" with the statue real id
s1fp = [X, Y] # replace X and Y with your statue 1 expected coordinates
s2fp = [X2, Y2] # replace X2 and Y2 with your statue 2 expected coordinates
right_position = true
right_position = false unless ((s1fp[0] == s1.x) && (s1fp[1] == s1.y)) # this checks 1st statue position
right_position = false unless ((s2fp[0] == s2.x) && (s2fp[1] == s2.y)) # this checks 2nd statue position
$game_switches[switch_id] = right_position # change "switch_id" to be your real switch id

The above code covers steps from 1 to 3 as step 4 is only required if you include this check in the door event.

@TheoAllen I completely agree with you. Because of that laziness almost wherever you look you can find bad-written code. Too many things are way slower than they are supposed to be just because people writing them are not taking efficiency into account. However I am not going to continue this discussion since we have all expressed our own opinions and we are starting to go off-topic a bit too much here.

Original thread: https://forums.rpgmakerweb.com/threads/moving-statue.105624/