[RMVX ACE] HOW TO RETURN TO WHERE AN EVENT WAS.
Posts
Pages:
1
Okay, so this might seem confusing, what I want to do is create a star ocean battle system, to do this I'm using a system in which all of your characters fight live action, for the battles I have it set up so you hit an event and are transferred to a battle field all of your characters are registered to fight and after there are no more enemies on the map you are transferred back to the starting event, how ever what I want to know is if it's possible to make you transfer to where the event was when you touched it.
I.E. A monster is next to a tree, you run past and it chases you to a rock 5 spaces up, when you hit it you enter battle, how ever at the end of the battle you end up next to the tree, would it be possible for the engine to remember you touched the event at the rock and transfer you there instead of the tree?
I.E. A monster is next to a tree, you run past and it chases you to a rock 5 spaces up, when you hit it you enter battle, how ever at the end of the battle you end up next to the tree, would it be possible for the engine to remember you touched the event at the rock and transfer you there instead of the tree?
Use variables. You can get the player's mad ID, x, and y coordinate into a variable as an option under the Variable Control command. Then when you teleport the player back to where they were use those variables instead of a set location.
You could just store your previous location into three variables just before the battle starts, and then use those variables to transfer the player after the battle ends.
All you have to do is set aside 3 variables for Player X, Player Y, and Map ID. Then, in the touched event, have 3 Control Variables commands to set their values to Map X, Map Y, and Map ID, respectively. This should go BEFORE any Battle Processing commands.
After the battle, you just call a Transfer Event command, and use the 3 variables to determine your target.
Edit: ninja'd
All you have to do is set aside 3 variables for Player X, Player Y, and Map ID. Then, in the touched event, have 3 Control Variables commands to set their values to Map X, Map Y, and Map ID, respectively. This should go BEFORE any Battle Processing commands.
After the battle, you just call a Transfer Event command, and use the 3 variables to determine your target.
Edit: ninja'd
Pages:
1















