Hey I was wondering with this would you ever be able to make a blank event like the old event spawner script that allowed you to create an event from script?
Nope I think I misunderstood what the Creator Plugin did, I re-read it and it's what Im looking for lol, sorry bout that.
Yes, it worked awesome, I'm using to create events for one of my plugins, using events to create a bridge of ice of water (any tile marked with the right region id.) It's amazing once i went back and read the topic again, lol. Anyways though you rock and saved me a crap ton of time 🙂
Hey nice script, I was lucky that i found it.
But there is a small problem. On my Map I create a lot of events with the copy function $gameMap.copyEvent();
then I store the Event ID of the created Event with $gameMap.getIndexForNewEvent(); and also store some other variables like which image It should get when I come back to the map.
When i destroy 1 Event, and leave the map, and then come back, i got setimage error because the event IDs has changed.
Is it possible to change the code, so the events will keep their ID?
Or do i have to make a script that will change the id-variables of my array?
I hope u could understand my problem 🙂
also copy from other map is somehow not working.
PS. Im new to scripting, maybe thats why I can't find a solution for my problem
I change the ID everytime it is loaded, because you may add new events on the map through rpg maker and those IDs may conflict with the ones that were cloned. On Ace I would just use very large IDs for the cloned events (> 1000), but on MV that caused some lag.
In your case, wouldn't it be easier to create temp events and just recreate the ones you need every time the player enters a new map? At least in Ace, using temp events was also much faster.
I'm confused, is it working or not?
Ah, my mistake. It's fixed now.
If MV does the same thing ace did, then erased events continue on the map, they are just disabled (with the _erased property set to true).
Is this causing you some kind of problem? You can usually add an IF condition checking the _erased property if you have any script checking the events.
I found it... It came to me under the shower. Tried to delete an normal Event and it also stays on map >_>
Sry for disturbing you. I will try to change the id or property temporarly 🙂 edit (its working this way)
hey is there anyway to copy the note data along with the event, I know it wouldn't be saved back to the file but that's fine. If it could add the note Data into the $dataMap or have some method added to retreive the data from the original event that would be awesome
nevermind, I kept digging some more after thinking about it again, and found where the noteData got stashed.
Was that info being lost on the copy process?
No, I just didn't look hard enough to find where it was getting put. It's there though.
Hi. I was imagining if it would be possible to use variables in plugin commands. I want to copy an event from Map 3 using the main actor coordinates instead of setting manually the coordinates. I tried to previously set two variables, ID10 and ID11, to X and Y position respectively and then using the command copy "event 1 from map 3 to position \v[10] \v[11]" but it didn't work. I guess "\v[]" is only usefull in messages. Is there any way of doing this?