05-26-2024, 01:49 AM
(This post was last modified: 05-26-2024, 01:52 AM by DerVVulfman.)
BUMP
to version 1.3
Just this morning, I received a notification. And obviously, I looked into it.
(05-25-2024, 11:04 AM)Melana Wrote: And it seems you cant add more than 5 events to a map.
If you add more, previous added events disappear and only the sprite remains on the map.
Edit: That only happens on a map where already other events exist, and where there are gaps between the IDs it seems.
For example: Event IDs 1-9 and 11-15 exist but 10 doesnt, if you try to spawn 6 new events then via the script it only spawns 1 and from the other 5 only the sprites.
Regarding this bug, I found the issue. Basically, the events are stored in 'Hash' arrays and not classic Arrays. By that, events do have growing key IDs and Fomar0153's original did not account for the Hash styled structure that does not renumber events after deletion. To be honest, it is GOOD that they do not renumber otherwise you would lose track of event IDs if you deleted older ones!
To solve this, I added a simple method that looks for the last event ID added to the hash array. Ergo, if you had event 1,2,5,7 and 9 in your project, the next event added will be event #10 by Copy Events, followed by 11 and 12 and so forth.
(05-25-2024, 11:04 AM)Melana Wrote: When a copied event has some content, e.g. a message command, this error appears after talking to the event
As towards that issue, I cannot account for. There is no 'unlock' method or variable within Copy Events, and must suggest it is an issue with another script. I have generated events that render messages and perform simple script calls when triggered, and have their own movement (I set them to random move)