Status
Not open for further replies.

22pepperjack

Veteran
Veteran
Joined
Jun 18, 2013
Messages
235
Reaction score
72
First Language
English
Primarily Uses
Hopefully this is the right forum, and hopefully a fairly quick problem to fix.

I'm trying to put together a common event that runs the moment a battle is initiated, whether that be randomly or by force. However since a conditional branch for "is battle processing?" doesn't exist, I'm not sure how I could test for this. Does anyone know of a script-call that could be used in the conditional branch of a common event to test for and run the moment a battle is initiated? Also, if one exists for the moment a battle is done processing that would be nice too, as I don't want the common event to run through the entire battle if set to parallel. only once when it starts. (If a script-call exists for leaving battle then I could use a switch to turn off the parallel battle test until the battle is over.)

Thanks in advance! :)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,278
Reaction score
9,702
First Language
German
Primarily Uses
RMMV
All parallels and autoruns are automatically stopped on all screens, and that includes the battlescreen.
Only troop events will run during battle, or a non-triggered common event called by a troop event.

This can be used to get you the second part - simply have the common event on parallel but triggered by a switch that is turned on by a troop event, and the common event will run directly after the battle but not a second sooner.

If this is not enough for you, then please describe what you want to do instead of how you want to do it, because as said parallels are i possible during battle.
 

22pepperjack

Veteran
Veteran
Joined
Jun 18, 2013
Messages
235
Reaction score
72
First Language
English
Primarily Uses
it might be possible to do it that way, albeit a bit tedious. im using Yanfly's Row formation script. and via this script im attempting to have a front line and a back line, however instead of using the Row formation menu command i was going to simplify it to work in tandem with the formation menu that is already in place. my plan was to force party members in slot 1&2 into the front line, and party memebers in slot 3&4 into the backline and lock them there, however, i cant allow use of the formation menu in battle since it would allow party member swapping and would break combat. so i intend to allow the row formation menu to be accessible during combat but the party formation menu elsewhere.

with this in mind, i need to check which characters are in party positions 1&2 and positions 3&4 either everytime the menu is closed, or at the start of every battle to applied any adjustments made and force party members to their respective rows. which is where my original question arose from. the second issue ill have is in the row formation menu when in battle, it allows you to put all party members in the back line or front line, etc. i want it limited to at least one person in the front line, and no more than 2 people in the back line. but i feel like ill probably need a custom script for that endeavor.

putting that second issue aside, any ideas on when/where/how i could check for what position a party member is in and apply a row tag to them (done through state notetags i beleive) to tell them where to stand once the battles start? cuase the only solution i can think of would be to have EVERY troop start on turn 1 with a check position script being run to apply that. but that would be really tedious to do for every single troop...

i apologize if none of that made sense, ive never been good at having things follow a logical chain of events.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
36,278
Reaction score
9,702
First Language
German
Primarily Uses
RMMV
As said, that needs to be done with troop events, and since troop events only run in battle there is no need to check if it is a battle or not - it is automatically in battle.
You can either use a plugin to have that troop event in a base troop to prevent the need to copy it into every troop, or you can have a troop event in every troop call a common event that has no trigger.

And the check for party position is inside the control variable command, under game data.
 

22pepperjack

Veteran
Veteran
Joined
Jun 18, 2013
Messages
235
Reaction score
72
First Language
English
Primarily Uses
oh a script exists for that? that actually sounds like it would fix my issue, got any links to an appropriate script? (gonna google search anyways, but just in case i have trouble finding one) also, thanks a ton for your help Andar!

Nevermind, just found the yanfly script that does this, thanks a ton!!!
 
Last edited:
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

ScreenShot_6_28_2022_3_2_40.png

There's 7 main areas in the game that are all connected. This train get's you from an underground lab to the center of someone's subconscious. inside the train you can talk to some of the passengers. but going to the top of it, there's battles.
Speedrunning all character portraits just so they all have the same quality. Not sure if this was a good idea, but now I'm almost done.
We now have a gameplay video!
DrBuni wrote on Akiritas's profile.
That is a cute Link picture, reminds me of the Samurai Jack artstyle.
I had an idea on how to get my encounters to leash after chasing the player for a little bit. After going down the Javascript rabbit hole, I realized I could do it in a regular movement route. Derp!

Forum statistics

Threads
123,145
Messages
1,154,371
Members
161,488
Latest member
rybaspi
Top