how do i set this up. i can do it by enemy troop easy. but when i go to common events and set it to passive. i'm slapped with a switch request. but i dont want it to use a switch D: how do i make that to none D:
letting common event set to passive monitor stats of actors
RPG Maker MV Supportyou're mixing a lot of misconceptions here, for example it's about "parallel process", not passive.
And you cannot have an parrallel process without a switch for activating/deactivating it - that would create more problems and lag than you would like.
In general, constantly monitoring values is an extremely bad idea performance-wise, and in 99.999% of all cases absolutely not neccessary.
What you usually do is check the current value directly before it is used, absolutely no need to check the values while they aren't used.
If you take a step back and tell uns what you want to do in ingame terms instead of how you want to do something unknown, then we can tell you how to do it the correct way.
And you cannot have an parrallel process without a switch for activating/deactivating it - that would create more problems and lag than you would like.
In general, constantly monitoring values is an extremely bad idea performance-wise, and in 99.999% of all cases absolutely not neccessary.
What you usually do is check the current value directly before it is used, absolutely no need to check the values while they aren't used.
If you take a step back and tell uns what you want to do in ingame terms instead of how you want to do something unknown, then we can tell you how to do it the correct way.
i like to put my character under a Lust stat effect. and after being set to stat. change the avatar to another look. the way i did it before was a conditional branch looking for said stat but it only works while doing battles. i like to make it so it works on the map so i can remove that battle or would i just copy past that stat check on all the enemy troops?
how did you set that state?
In the skill used you'll need to add a common event as an effect (with trigger = none), and have that common event both change the sprite and control a switch that will activate a second common event (this one set to parallel process and controlled by exactly the switch chosen in the first common event).
That second common event on parallel process then only checks for the removal of the state, and once the state is removed it changes the sprite back and turns its own switch off again.
You also need to include a wait(10) or so in the parallel process to reduce its lag.
This procedure needs two common events instead of the one you were thinking about, but it is the only way to prevent unneccessary lag (a common event constantly checking for the state even it it is not used would cause a lot of lag, this way the parallel processes are only active when really needed).
In the skill used you'll need to add a common event as an effect (with trigger = none), and have that common event both change the sprite and control a switch that will activate a second common event (this one set to parallel process and controlled by exactly the switch chosen in the first common event).
That second common event on parallel process then only checks for the removal of the state, and once the state is removed it changes the sprite back and turns its own switch off again.
You also need to include a wait(10) or so in the parallel process to reduce its lag.
This procedure needs two common events instead of the one you were thinking about, but it is the only way to prevent unneccessary lag (a common event constantly checking for the state even it it is not used would cause a lot of lag, this way the parallel processes are only active when really needed).
This is how I had set it up. Now my Bar which is Lust has a second stat effect once it gets to a certain lvl. but my issue is. how do you set that up so that. it checks to see if stat effect one is in place but then if second stats comes into play does something else. instead of it checking to see if player is infected by both at the same time
were i like for it to check separate.
at % of 30 hero gets stat Lust. and at % 60 gets another Lust effect that is stronger. the problem where i run into is. I like normal Lust to change hero into blush state. which it does already BUT. once hero receives the second Lust state for it to change it to a second form of the blush state.
if i were to set it up so that. their are two If conditional branches. the event only plays if the character is stricken with both at the same time which is a problem.
were i like for it to check separate.
at % of 30 hero gets stat Lust. and at % 60 gets another Lust effect that is stronger. the problem where i run into is. I like normal Lust to change hero into blush state. which it does already BUT. once hero receives the second Lust state for it to change it to a second form of the blush state.
if i were to set it up so that. their are two If conditional branches. the event only plays if the character is stricken with both at the same time which is a problem.
Original thread: https://forums.rpgmakerweb.com/threads/letting-common-event-set-to-passive-monitor-stats-of-actors.96267/