Like the title says, is there a way to force a database entry to be completely deleted or replaced using a script call?
For those curious as to why I am looking to do this, in my game, Eternal Twilight, I've recreated an equipment system similar to that of Diablo / Borderlands, where all equipment that is acquired will be given random prefixes and suffixes. This is done using Yanfly's Item Core ( http://yanfly.moe/2015/10/16/yep-11-item-core/ ) and DreamX's Random prefix/suffix plugin ( https://forums.rpgmakerweb.com/index.php?threads/random-item-prefixes-suffixes.57646/ ).
This all works like a charm, buuuuuuuuuuuuuuut, there is a drawback to it. Every single item that is made gets a brand new database entry. After a few hours of playing my loot fest game, there are easily over 1k+ new entries added to the database, which is artificially bloating the hell out of the save files. By end-game, it's not uncommon to see save files that are 2mb in size or larger, which causes some pretty ugly loading/save times.
Periodically throughout the game, I want to do a "database purge" where I input a scriptcall that will mass-delete database entries that have been added by these plugins if said item is no longer in the player's inventory.
Thank you so much for any help or guidance you have!
For those curious as to why I am looking to do this, in my game, Eternal Twilight, I've recreated an equipment system similar to that of Diablo / Borderlands, where all equipment that is acquired will be given random prefixes and suffixes. This is done using Yanfly's Item Core ( http://yanfly.moe/2015/10/16/yep-11-item-core/ ) and DreamX's Random prefix/suffix plugin ( https://forums.rpgmakerweb.com/index.php?threads/random-item-prefixes-suffixes.57646/ ).
This all works like a charm, buuuuuuuuuuuuuuut, there is a drawback to it. Every single item that is made gets a brand new database entry. After a few hours of playing my loot fest game, there are easily over 1k+ new entries added to the database, which is artificially bloating the hell out of the save files. By end-game, it's not uncommon to see save files that are 2mb in size or larger, which causes some pretty ugly loading/save times.
Periodically throughout the game, I want to do a "database purge" where I input a scriptcall that will mass-delete database entries that have been added by these plugins if said item is no longer in the player's inventory.
Thank you so much for any help or guidance you have!