Hi everyone,
I'm having an issue with the Yanfly Event Spawner.
I'm generating a crowd, each character is separated from 2 empty tiles.
One of the generator of event look like this :
It starts by deleting any clone event with the ID stored in the VAR number "note", in our example, it's number 61.
Then, it spawns the event.
Next, it copies the ID of the event into the VAR number "note" (still 61 here).
Then, it choose a skin for the last spawned event between 27 possibles skins.
(Maybe it's here the issue ? Does it select an other event that the one store in the VAR 61 ?)
At the end, I set the last event spawned to choose the original pattern 1, or else there is a bug of charset.
Next, it increment the counter, wait, then try to delete it.
Finaly, it delete the event.
---
If I change room, and I return here, ALL event must reset (making my increment counter useless, I know).
But, clone event are still here, but they loose their skin, since no one gave them one in this new instance of room. This is the reason why I started by killing it, this works sometimes, sometimes it doesnt work.
And I dont know why.
Sometimes, they exist without skins, sometimes, they doesnt exist at all, sometimes, some exists with a skin and some exists without a skin...
Can you help me to figured out why this doesnt work everytime please 😮 ?
I'm having an issue with the Yanfly Event Spawner.
I'm generating a crowd, each character is separated from 2 empty tiles.
One of the generator of event look like this :
It starts by deleting any clone event with the ID stored in the VAR number "note", in our example, it's number 61.
Then, it spawns the event.
Next, it copies the ID of the event into the VAR number "note" (still 61 here).
Then, it choose a skin for the last spawned event between 27 possibles skins.
(Maybe it's here the issue ? Does it select an other event that the one store in the VAR 61 ?)
At the end, I set the last event spawned to choose the original pattern 1, or else there is a bug of charset.
Next, it increment the counter, wait, then try to delete it.
Finaly, it delete the event.
---
If I change room, and I return here, ALL event must reset (making my increment counter useless, I know).
But, clone event are still here, but they loose their skin, since no one gave them one in this new instance of room. This is the reason why I started by killing it, this works sometimes, sometimes it doesnt work.
And I dont know why.
Sometimes, they exist without skins, sometimes, they doesnt exist at all, sometimes, some exists with a skin and some exists without a skin...
Can you help me to figured out why this doesnt work everytime please 😮 ?