I remember doing a few tricks back in VX Ace with a script allowing start of battle states, but is it possible to do this in MV WITHOUT scripts?
Starting states?
RPG Maker MV SupportWhy do you ask that it be done without scripts/plugins? Like I really don't get it when people say this at all tbh.
I think that most of the time it's because people have no idea of how to write javascript and want to do things themselves/not rely on someone else. It's a game making software, the point id to experiment and do things by yourself as much as possible don't you think?
At least for me that's how it is (and what made me interested in javscript).
On topic, you could do it with a battle event set at turn 0, in which you apply states.
They'll be applied this way right after the "xxx has appeared" window.
It won't strictly be before battle, but it should do the trick well enough, as it's before anyone can act or commands can be chosen.
That's all I can think of for a 100% no plugin solution.
Script related: you could look at yanfly passive states script. Or ask nicely in the plugin request section.
At least for me that's how it is (and what made me interested in javscript).
On topic, you could do it with a battle event set at turn 0, in which you apply states.
They'll be applied this way right after the "xxx has appeared" window.
It won't strictly be before battle, but it should do the trick well enough, as it's before anyone can act or commands can be chosen.
That's all I can think of for a 100% no plugin solution.
Script related: you could look at yanfly passive states script. Or ask nicely in the plugin request section.
@Dr. Delibird If something can be done without scripts, then it should be done that way - I consider it bad if people are searching for Plugins or javascript even for things that are easy to do with eventing.
That is because using plugins or scripts will increase the chance of breaking the engine - no event will ever risk that.
And as the poster above said, it can be done with a battle event if the developer acceps that (and unfortunately depending on which battlescripts are used that troop event might be delayed even on turn 0)
That is because using plugins or scripts will increase the chance of breaking the engine - no event will ever risk that.
And as the poster above said, it can be done with a battle event if the developer acceps that (and unfortunately depending on which battlescripts are used that troop event might be delayed even on turn 0)
I did as you suggested, however, there's a non-immortal character as well, and I wanted it that when the non-immortal runs out of HP, the immortal also collapses, but when the immortal collapses, the non-immortal doesn't collapse and the game gets stuck on that one turn until I close the game.
That means you made a logic mistake somewhere - post screenshots of your troop events and the states/skills involved and we can check where you made mistakes.
I'll get you the screenshots likely tomorrow, I'll be pretty busy today.
EDIT: @Andar here's the event pages for the event.


@Lyseth your second troop event triggers on the condition that the HP of enemy #1 is zero or below - but the immortal state is on enemy #2...
Yes, enemy 1 is supposed to be mortal, upon killing him, it removes immortality from enemy 2 (behemoth) then replaces it with knockout, but what's happening is enemy 1 remains at his low health animation (I have the animated SV script on) and then the game freezes on that one turn, not letting anyone else attack even after the choice for them has been made.
You need to add a third page to the event. Have the second event turn on a switch and make the third page use it with no actions or anything.
That should solve the freezing issue.
That should solve the freezing issue.
Then try changing the second page's span from Moment to Battle. It should only need to run once anyway, right?
no, the span moment is the correct one and changing it to battle will not work - troop events work a bit differently than parallel processes on the map, that's why the third page is also not neccessary.
I think the problem is somewhere on the first enemy or on the states - can you give a screenshot of the knockout state and of that enemy with their values?
I think the problem is somewhere on the first enemy or on the states - can you give a screenshot of the knockout state and of that enemy with their values?
no, I mean everything on that screens, especially the features/traits - that's why I asked for screenshots instead of naming what I would like to look at.
I will have to disagree there, Andar.
While I admittedly don't use battle events much yet, the help popup in MV for them states that moment span will repeat continuously as long as the condition is met.
The game's behavior according to the OP suggest this as well.
@Lyseth, the easiest way to confirm this is to add a sound effect to the 2nd page of your event.
If you keep hearing the sound, you will have found your problem.
@Maliki79 as you said, Moment will repeat continuously... and a third page does NOT stop this. So a third page makes no difference, in fact it is just another page to keep repeating.
I see. So for the OP killing the third page and setting the second one to battle span should do the trick!
@Maliki79 "Moment" is neither autorun (which means it cannot freeze the play) nor parallel process (which means running it won't create lag.
On Map events, you need to switch off autoruns and parallels to continue the game because they can cause problems there - but those problems do not exist in the battlescreen.
And since a troop event on Moment cannot freeze the battle in any way, the cause of the problem has to be something else.
There is another proof for this: if the second troop page were running at all, it would collapse the boss and cause the battle to be over - the OP's problem is that that second page never even gets started.
On Map events, you need to switch off autoruns and parallels to continue the game because they can cause problems there - but those problems do not exist in the battlescreen.
And since a troop event on Moment cannot freeze the battle in any way, the cause of the problem has to be something else.
There is another proof for this: if the second troop page were running at all, it would collapse the boss and cause the battle to be over - the OP's problem is that that second page never even gets started.
Original thread: https://forums.rpgmakerweb.com/threads/starting-states.70029/


