Positions in Battle Members

● ARCHIVED · READ-ONLY
Started by Milena 8 posts View original ↗
  1. 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.
  2. I think the first slot, for whatever reason, is actually 0, not 1
  3. captainproton said:
    I think the first slot, for whatever reason, is actually 0, not 1
    Ahh, yes. But custom, I somehow wanted it to start with 1.
  4. 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.
  5. Andar said:
    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).
  6. 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"
  7. BoluBolu said:
    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.
  8. 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.