Rogue-like upgrades - Maker MZ

Hi all,


I'm creating a rogue-lite game where you hire characters through a run and find relics that boost your stats through the rest of the run but MY GOD is it complicated to program the way I’m doing it.


If an item would give the party 10% extra HP… I have an event calculate everyone’s HP… calculate how much 10% would be… increase every character’s HP by that amount… then when the run ends, I have to reduce every character’s HP back to their original amounts. If they are a class that can be permanently upgraded, then I have to have an event consider if they’ve been upgraded or not before adjusting their HP.



In short, it’s a giant pain to both apply buffs to all characters with each item as well as undoing the buff when a run ends. Am I an idiot? Is there an easier way to do this or is this basically what must be done in RPG Maker MZ? Please advise and thank you!
you can use the add party member event with the initialize option. that factory resets the character back to it's starting database state.

for permanent meta buffs you can make an event that gives you all the unlocked buffs at the start of every run.

also wrong forum I think lol
why not have an invisible buff that is applies when you get the item/whatever. And if it becomes permanent have a switch enabled. When the run starts it checks if it has that switch then it enables the buff?
Are you using Visustella's Item/Equip core? There seems to be a note tag <Party Artifact> applicable to armors that would make its parameter changes apply to the entire party, although it makes the armor unequippable (it's not specifically an item, though...) Alternatively, maybe make a passive skill for all members with the necessary conditions?
why not have an invisible buff that is applies when you get the item/whatever. And if it becomes permanent have a switch enabled. When the run starts it checks if it has that switch then it enables the buff?
Hi! That's actually how I do it. When you find a relic, I run a common event that adds the item to your inventory and also applies a State to all characters. Its tricky since I have to make sure the state is removed from all characters when a run ends as well as making sure the item is removed from the inventory.

Its not that tricky for a few items... but once you have dozens and dozens of items and states... it starts to become a real pain.
Are you using Visustella's Item/Equip core? There seems to be a note tag <Party Artifact> applicable to armors that would make its parameter changes apply to the entire party, although it makes the armor unequippable (it's not specifically an item, though...) Alternatively, maybe make a passive skill for all members with the necessary conditions?
I think this is EXACTLY what I'm looking for. This seems like it will make everything SO much easier! Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/rogue-like-upgrades-maker-mz.157302/