So I've edited what you said. And I kept the previous code except the meta stuff. Still no luck, but I'm thinking I need to step back and then revisit this with a clear head. I'll post if I get it to work. Thank you again!
Have Event Move to Nearest Event With a Specific Notetag
RPG Maker MV SupportHey, I had some time so I decided to make a plugin that adress this issue specifically.
Here is the plugin if you want to try it.
This plugin will write, read and delete meta data attached to your events, should do the trick.
I made it for MV specifically so it should be good to go.
Let me know if this fix your issue.
PS: this pluging replace the "Set notetag" or "metadata" step, just call this plugin where you require to reset a notetag.
PS2: I added a help note specific for spawned events, you can retrieve their newly generated ID, store that ID in a variable, then use the plugin command for variable handling to edit their notetag
Here is the plugin if you want to try it.
This plugin will write, read and delete meta data attached to your events, should do the trick.
I made it for MV specifically so it should be good to go.
Let me know if this fix your issue.
PS: this pluging replace the "Set notetag" or "metadata" step, just call this plugin where you require to reset a notetag.
PS2: I added a help note specific for spawned events, you can retrieve their newly generated ID, store that ID in a variable, then use the plugin command for variable handling to edit their notetag
Wow! Thank you so, so much for taking the time to do this!
I think I may have burnt myself out some trying to figure this out, but I'll be sure to test it as soon as I'm feeling back in the game!
But just so I can pick up right where I left off, am I on the right track so far? This would be for getting a spawned event to store it's id in a variable, and then having the plugin write the metadata?
Thanks again! You all are lifesavers!!
I think I may have burnt myself out some trying to figure this out, but I'll be sure to test it as soon as I'm feeling back in the game! But just so I can pick up right where I left off, am I on the right track so far? This would be for getting a spawned event to store it's id in a variable, and then having the plugin write the metadata?
Thanks again! You all are lifesavers!!
MDataId 1 refers to a mapevent with id 1.
MDataVar 1 refers to the value attached in var1, if that value is say 5, it will affect mapevent with id 5. 😊
Your screenshot looks like it's going to store the eventId into variable#1
You can easliy check if this is the case by adding a text box right after with \V[1] (It should store the event Id you want to edit)
So your screenshot looks ok, but you should use MDataVar instead of MDataId if you are going to use it to check a variable value.
Make sure to use the correct variable ID in the plugin call too. 🙂
MDataVar 1 refers to the value attached in var1, if that value is say 5, it will affect mapevent with id 5. 😊
Your screenshot looks like it's going to store the eventId into variable#1
You can easliy check if this is the case by adding a text box right after with \V[1] (It should store the event Id you want to edit)
So your screenshot looks ok, but you should use MDataVar instead of MDataId if you are going to use it to check a variable value.
Make sure to use the correct variable ID in the plugin call too. 🙂
Original thread: https://forums.rpgmakerweb.com/threads/have-event-move-to-nearest-event-with-a-specific-notetag.169595/