I'm a bit new to rpgmaker and one of the common events that was working for one of the main mechanics of may game stopped working and I've checked my plugins and I can't figure out why it stopped working here's the common event in question
Common event stopped working
RPG Maker MV SupportWelcome! Next time, a full-size screenshot would be more helpful, it's rather hard to read that. For example, I can't tell what your last control variable says...are you checking actor 3 twice in a row?
Why the script calls? Right in the Control Variable event command you can select Game Data -> select an Actor -> MP
In a similar vein, why use up 4 different variables? If you're not actually doing anything to them once you check for the value, you can simply set the same variable again to the next actor.
As for why it wouldn't work, there are two obvious solutions:
1 - One of your actors has more than 20 MP.
2 - You're not turning on the switch that activates this event.
When do you turn off the switch for this event? I don't see it at the bottom, so if it doesn't get turned off you're going to be running this check 60 times a second while the player is unable to press anything because it's Autorun.
Why the script calls? Right in the Control Variable event command you can select Game Data -> select an Actor -> MP
In a similar vein, why use up 4 different variables? If you're not actually doing anything to them once you check for the value, you can simply set the same variable again to the next actor.
As for why it wouldn't work, there are two obvious solutions:
1 - One of your actors has more than 20 MP.
2 - You're not turning on the switch that activates this event.
When do you turn off the switch for this event? I don't see it at the bottom, so if it doesn't get turned off you're going to be running this check 60 times a second while the player is unable to press anything because it's Autorun.
This is a bit embarrassing but I took a screenshot of the wrong common event this is the one that I meant to ask about and this common event checks during battle it was working earlier but then it suddenly stopped working while I was testing out some new skills
The reason I use 4 different variables is to make sure it's checking for each actor since you only ever have one of them in your party.
The reason I use 4 different variables is to make sure it's checking for each actor since you only ever have one of them in your party.
That doesn't make any difference. You can use the same variable to check the next actor, there's no reason to have 4 separate ones.
Also, the logic in your first event seems wrong. It looks like you want to apply the Dismay (or whatever it says) status if any of your actors are <=20 MP, but you have them nested so it will only check the next actor if the previous actor already was. So if, say, actor 2 had 19 MP, it wouldn't go off because it won't check them if actor 1 was above the threshold.
Again, your logic is a little wonky because you're using variables that you don't need to. You could just do:
Code:
◆Control Variables:#0001 TP = $gameActors.actor(1).tp
◆If:TP = 100
◆Change State:Dualette, + Rage
◆
:End
◆Control Variables:#0001 TP = $gameActors.actor(2).tp
◆If:TP = 100
◆Change State:Suitor, + Rage
◆
:End
For that matter, if you're comfortable using the script call to look at TP, I don't see any reason for you to be using any variables.
Code:
◆If:Script:$gameActors.actor(1).tp==100
◆Change State:Dualette, + Rage
◆
:End
◆If:Script:$gameActors.actor(2).tp==100
◆Change State:Suitor, + Rage
◆
:End
It does look like you're trying to recreate something in events what a handy plugin takes care of - they're called passive states, and Yanfly's Auto Passive States is a free plugin to do exactly this kind of thing without making events, using variables or script calls, etc.
I'm still working on the other one and since it's base on how the rage common event works it'm trying to fix that one first but It was working and I haven't changed any plugins and I did disable all plugins to check but it's still not working it's called after every skill or attack to check the current tp value
Keep in mind that a skill can only reserve 1 common event, so if you have more than 1 on the same skill it's just going to call the last one.
If this is the cause of the problem, you can look into this plugin: https://himeworks.com/2015/10/common-event-queue-mv/
If this is the cause of the problem, you can look into this plugin: https://himeworks.com/2015/10/common-event-queue-mv/
Thank you that was it I was preparing to test the dismay function and had two common events thank you
Original thread: https://forums.rpgmakerweb.com/threads/common-event-stopped-working.157330/