Item Duplication Bug Report

Hello. I have encountered a bug on my Chapter Start event where an item gets duplicated.
I am not sure why this happens but it did. Asking for help so I can progress forward. Thank you

Link to Bug Report: 5.34 MB file on MEGA

Screenshot of Event in Question:

It looks like this was already answered in Discord, but just for documentation in case someone has the same issue and searches the forum: If you get items before preparations, save in preparations, then restart the chapters, you’ll get them again unless you specifically prevent that. Ways to do it: Give the items after preparations, give the items in the end event of the previous chapter, before giving the items check if the player already has them, or make it so the event checks a global flag which gets set after giving the items so that it only happens once.

5 Likes

Tried the Global flag solution. Not sure if its I made a mistake with the code or something when it comes to global flags but it didn’t work. I’ll just code it in a different way instead. Thanks for the response though.

Can you show a screenshot of the event with the global flag?

Flag check event templates are confusing. You may want to change the 1 to a 0 or vice versa in the part where it checks the flag and it says “memory slot”


Make sure whichever flag you’re using isn’t already being used for something else.

1 Like

Yes, global flags work well. “If flag is off, you haven’t gotten the item. So have the game check if flag is off, and if it is, run the event.” That’s pretty much the gist of it. (Though this has already been established.)
Also about global flags, it’s a good idea to document what you’re using them for to avoid accidentally reusing them. Saves you a lot of trouble.