Good afternoon everyone.
I'm facing the following situation: I'm creating a skill where the actor basically jumps towards the event and returns to their starting point after the attack. Returning to the starting point isn't a problem; the actor's location is stored in two variables, and a jump command is used for them. I'm using this command:
"jump($game_variables[z] - self.x, $game_variables[z] - self.y)" where z are the x and y coordinates of the player. Great, that's the easy part.
However, how do I determine the position coordinates of any event? Because there is 1 event on map x, there are 3 events on the next map, then 10 more events on a third map, 2 more events on a fourth map, and so on.
Am I required to create an event, on all maps, that provides all enemy coordinates - in a parallel process? Or is there an easier way to provide this information?
And there is a code, let's say "global script call code", that can be used so that the player jumps to the variable specified in the previous question?
I'm using Khas's ABS battle system: Sapphire Action System. I believe this information is just to make things clearer, because the resolution should work for any ABS system.
I'm facing the following situation: I'm creating a skill where the actor basically jumps towards the event and returns to their starting point after the attack. Returning to the starting point isn't a problem; the actor's location is stored in two variables, and a jump command is used for them. I'm using this command:
"jump($game_variables[z] - self.x, $game_variables[z] - self.y)" where z are the x and y coordinates of the player. Great, that's the easy part.
However, how do I determine the position coordinates of any event? Because there is 1 event on map x, there are 3 events on the next map, then 10 more events on a third map, 2 more events on a fourth map, and so on.
Am I required to create an event, on all maps, that provides all enemy coordinates - in a parallel process? Or is there an easier way to provide this information?
And there is a code, let's say "global script call code", that can be used so that the player jumps to the variable specified in the previous question?