QUOTE (Pillanious @ Jan 27 2011, 10:34 PM)
QUOTE (Miles Castea @ Jan 28 2011, 01:33 AM)
First of all, what's your RPG maker? XP? VX? 2K3?
My apologies. RPG maker VX
Ok, your going to need a bit of work to achieve this. If you think this is too much (Its EXTREMELY variable consuming), it might be better to ask for a script to do this.
First create eight variables, one for each boxe's X AND Y positions (ex: Red Box X, Red Box Y) and create a parrelarel process event that basicallys set the variable as:
Variable 1: Red Box X = Red Box (NPC01)'s X position
Variable 2: Red Box Y = Red Box (NPC01)'s Y position
And so on for all four boxes. This will allow the engine to track their positions in real time.
Then create eight more variables, except for the squares where you want each box to go correctly, again with the same routine of setting their variables to be monitored.
Then either on the same parralel event or on the actual prize event (like a door) make sixteen conditional braches checking if Box n
is on the correct tile like this: http://img545.imageshack.us/img545/8472/exampley.png
Grand total of variables used; 32 (ouch)