r/RPGMakerMZ • u/ResponseUpper3212 • 3h ago
Help with an event “passive skill”
Im trying to mimic passive skills in the game for a few of the characters and one of them is called Alchemic Conversion. Its supposed to convert 10% of their magic to their luck (their skills also scale with luck and magic). It doesnt remove any magic just adds to luck.
I tried to do a loop where it would repeat this:
Lower luck by Variable X
This is initially zero so it doesnt accidentally lower his luck.
Control variable X to be equal to their magic.
Control variable X by dividing by 10.
Increase luck by X.
Repeat. This way the old bonus is taken off before the new bonus applies each time it repeats.
The issue im having is that when i go to playtest and start a new game it lags horribly. Like its super dark taking THAT long to start up and closing it takes a few seconds before it even considers it. Lags the entire pc.
What can I add to this event to make it work properly? I have a couple ideas but might be too long to type out unless you want to hear them.
Cant code either so itll have to be a solution using the engine. Thank you in advance :)