Positions in Battle Members

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
I am always interested to learn about battles. May I ask how are they actually called (the actors and the enemies). So, this is how my question goes:

I want to know:

  • Positions of my party members
Here is how the idea is:

Say for example at the start of battle I have Eric, Natalie and Terence. I want a check code to which position they are in. The idea here is that since the maximum battle members is 4, I have 1, 2, 3 and 4 positions too. So if Eric, Natalie and Terence are in order, it means:

Eric = 1

Natalie = 2

Terence = 3

If it was changed as

Terence

Natalie

Eric

it becomes

Terence = 1

Natalie = 2

Eric = 3

So the positions are like slots.

I am looking for a way how to set this idea up. This way, I can make control structures / conditional branches that if:

Actors in this array == this slot

 - this happens

Actors in this array == this slot

 - another thing happens

Hope I was able to explain it well. TIA.
 

captainproton

Dangerously Nifty
Veteran
Joined
Dec 20, 2013
Messages
1,276
Reaction score
570
First Language
english
Primarily Uses
I think the first slot, for whatever reason, is actually 0, not 1
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
control variable : game data : party member #1's ID


will fill the chosen variable with the ID of the actor on position #1


Similiar for all other positions, and then check the variable with conditional branches.
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
control variable : game data : party member #1's ID

will fill the chosen variable with the ID of the actor on position #1

Similiar for all other positions, and then check the variable with conditional branches.
Is this applicable on the battle though? The possibility also of changing the formation of the party or the party members in battle would change their rows. It would be a pain to make long control variables for each when they're inside the battle (as to what I know only happens when one your turn ends).
 

BoluBolu

Veteran
Veteran
Joined
Apr 24, 2014
Messages
452
Reaction score
117
Primarily Uses
Do your battle system can change formation in the middle of battle? I'm sorry I don't really know what you mean with

"The possibility also of changing the formation of the party or the party members in battle would change their rows"
 

Milena

The woman of many questions
Veteran
Joined
Jan 26, 2014
Messages
1,281
Reaction score
106
First Language
Irish
Primarily Uses
N/A
Do your battle system can change formation in the middle of battle? I'm sorry I don't really know what you mean with
No, just working with the default battle system. But say for example I change my formation before battle, it should still do the formation slots by number, depending which character they are. If you do this via event, the thing is, you'll have to check all characters, not just the present ones.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
the control variable command gives the ID of the actor in that position at that moment - it needs to be repeated whenever you check, but that check can be inside or outside a battle without problems.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top