- Joined
- Nov 11, 2018
- Messages
- 91
- Reaction score
- 31
- First Language
- English
- Primarily Uses
- RMMV
Hey folks,
I am able to spawn an event (I will refer to this event as "Pinpoint" for clarity later) onto a map (with Yanfly's event spawner plugin) into one of several locations in a region. I need to be able to then transfer the player to that event's location.
The event "Pinpoint" is static; it will always have the same name and the same ID; there will only ever be one of it on a map. The map is variable; I will be using multiple different maps. The player is on the map where the event has been spawned; they have been put in the top left corner for the sake of being on the same map.
I would like to be able to do this using code in a common event, but if that is not possible, I can do this using a different event in the map to which the player is being sent. I'm thinking a potential solution is using the map specific event to identify the map ID and use some code (the main part I need help with) to get the X and Y of "Pinpoint" on the map, then use that information to transfer the player to where they need to go, but I am not sure how to write code to acquire the X and Y of a specific event on a non-specific map when that event did not start on the map.
If anybody on here can provide assistance, I would appreciate it. I am happy to provide further information if it is required.
Regards,
marbeltoast.
I am able to spawn an event (I will refer to this event as "Pinpoint" for clarity later) onto a map (with Yanfly's event spawner plugin) into one of several locations in a region. I need to be able to then transfer the player to that event's location.
The event "Pinpoint" is static; it will always have the same name and the same ID; there will only ever be one of it on a map. The map is variable; I will be using multiple different maps. The player is on the map where the event has been spawned; they have been put in the top left corner for the sake of being on the same map.
I would like to be able to do this using code in a common event, but if that is not possible, I can do this using a different event in the map to which the player is being sent. I'm thinking a potential solution is using the map specific event to identify the map ID and use some code (the main part I need help with) to get the X and Y of "Pinpoint" on the map, then use that information to transfer the player to where they need to go, but I am not sure how to write code to acquire the X and Y of a specific event on a non-specific map when that event did not start on the map.
If anybody on here can provide assistance, I would appreciate it. I am happy to provide further information if it is required.
Regards,
marbeltoast.