- Joined
- Feb 16, 2016
- Messages
- 351
- Reaction score
- 238
- First Language
- Finnish
- Primarily Uses
- N/A
Hello anyone with knowledge of MV scripting 
I am trying to achieve a system and I am almost complete. However, this issue has been something I have been unable to make into reality. I know this is possible, but I just cannot seem to get my head around the best possible solution. Anyone who knows how to help, I appreciate it.
First Problem

Basically I want to know how to make an event move (with script command) towards and event with the same name that is the closest. I figured out that a way to do this is to make a parallel process event that checks constantly x and y of event with the same name. That I have been able to achieve thx to help of this same forum.
However, how possibly I could make so that this specific event (Bandit guy in the picture) will see what event id is the closest and will move towards that. And if there are two in the same distance, it will pick the one randomly that is in the same distance.
I am using the bandit guy as an example in the picture, but I am planning to use this system for a scene in a game where villagers should run towards and event that randomly appears on spots to a map. If you would always make it specific, I could easily just setup regular coordinates to make it seem like events run towards the character, but with random element (changing location) that is all but more difficult.
Second Problem

I have tried to figure out how to make a character to only move towards event with the same name if they are close to one. This has been a headache, but I know it is possible to make. My scripting skill is still limited, but I know that in theory this should be possible. First I should calculate eventx and y or the one who moves to see if it is 7 tiles close to events with the same name x and Y and that would activate command for the event to move towards events with the same name. I am still figuring out the numbers. I know there are talented scripting people here. Thank you anyone who might help with this!
This is a problem as locations of all events in the operation will be changing and that makes figuring out the process bit difficult as I am still very novice when it comes to rpg maker scripting.
Thank you for your time
I am trying to achieve a system and I am almost complete. However, this issue has been something I have been unable to make into reality. I know this is possible, but I just cannot seem to get my head around the best possible solution. Anyone who knows how to help, I appreciate it.
First Problem

Basically I want to know how to make an event move (with script command) towards and event with the same name that is the closest. I figured out that a way to do this is to make a parallel process event that checks constantly x and y of event with the same name. That I have been able to achieve thx to help of this same forum.
However, how possibly I could make so that this specific event (Bandit guy in the picture) will see what event id is the closest and will move towards that. And if there are two in the same distance, it will pick the one randomly that is in the same distance.
I am using the bandit guy as an example in the picture, but I am planning to use this system for a scene in a game where villagers should run towards and event that randomly appears on spots to a map. If you would always make it specific, I could easily just setup regular coordinates to make it seem like events run towards the character, but with random element (changing location) that is all but more difficult.
Second Problem

I have tried to figure out how to make a character to only move towards event with the same name if they are close to one. This has been a headache, but I know it is possible to make. My scripting skill is still limited, but I know that in theory this should be possible. First I should calculate eventx and y or the one who moves to see if it is 7 tiles close to events with the same name x and Y and that would activate command for the event to move towards events with the same name. I am still figuring out the numbers. I know there are talented scripting people here. Thank you anyone who might help with this!
This is a problem as locations of all events in the operation will be changing and that makes figuring out the process bit difficult as I am still very novice when it comes to rpg maker scripting.
Thank you for your time
Attachments
-
22.8 KB Views: 3
-
130 KB Views: 3
-
130 KB Views: 3

