Android network logic for doubles/triples

Discussion in 'Development General' started by MidwayMarshall, Sep 29, 2015.

  1. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    This is not about visually displaying doubles or triples but rather have the backend write and retrieve information correctly under a doubles/triples scenario.

    Everything seems to be working except for fainting messages;

    Start of turn 3
    Regirock used Rock Polish!
    Regirock's Speed sharply rose!
    The foe's Silcoon used Iron Defense!
    The foe's Silcoon's Defense sharply rose!
    The foe's Alakazam is paralyzed! It can't move!
    Jigglypuff used Shock Wave!
    The foe's Silcoon lost 28% of its health!

    Start of turn 4
    Regirock used Earth Power!
    It's super effective!
    The foe's Silcoon lost 32% of its health!
    The foe's Silcoon used Poison Sting!
    It's super effective!
    Regirock lost 8 HP! (4% of its health)
    Regirock was poisoned!
    The foe's Alakazam is paralyzed! It can't move!
    Jigglypuff used Thunderbolt!
    The foe's Silcoon lost 11% of its health!
    The foe's Silcoon fainted!
    Regirock was hurt by poison!
    Sally the Horse sent out Blitzle!

    Start of turn 5
    Regirock used Earth Power!
    The foe's Alakazam lost 14% of its health!
    The foe's Blitzle used Take Down!
    Jigglypuff lost 127 HP! (35% of its health)
    Jigglypuff fainted!
    The foe's Blitzle is damaged by recoil!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock was hurt by poison!
    MidwayMarshall sent out Weezing!

    Start of turn 6
    Regirock used Earth Power!
    It's not very effective...
    The foe's Blitzle lost 11% of its health!
    The foe's Blitzle used Take Down!
    The attack of the foe's Blitzle missed!
    Weezing used Psybeam!
    It's super effective!
    The foe's Alakazam lost 32% of its health!
    The foe's Alakazam used Knock Off!
    Weezing lost 24 HP! (10% of its health)
    The foe's Alakazam knocked off Weezing's Mewtwonite X!
    Regirock was hurt by poison!

    Start of turn 7
    Regirock used Earth Power!
    It's not very effective...
    The foe's Blitzle lost 10% of its health!
    The foe's Blitzle used Take Down!
    Weezing lost 46 HP! (20% of its health)
    The foe's Blitzle is damaged by recoil!
    Weezing used Psybeam!
    The foe's Blitzle lost 28% of its health!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock was hurt by poison!

    Start of turn 8
    Regirock used Earth Power!
    It's not very effective...
    A critical hit!
    The foe's Blitzle lost 16% of its health!
    The foe's Blitzle used Take Down!
    It's super effective!
    Regirock lost 62 HP! (34% of its health)
    The foe's Blitzle is damaged by recoil!
    Weezing used Psybeam!
    The foe's Blitzle lost 5% of its health!
    The foe's Blitzle fainted!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock was hurt by poison!
    Sally the Horse sent out Marowak!

    Start of turn 9
    Regirock used Earth Power!
    The foe's Marowak lost 12% of its health!
    Weezing used Psybeam!
    The foe's Marowak lost 16% of its health!
    The foe's Marowak used Toxic!
    It doesn't affect Weezing!
    The foe's Alakazam used Facade!
    Weezing lost 37 HP! (16% of its health)
    Regirock was hurt by poison!
    Regirock fainted!
    MidwayMarshall sent out Moltres!
    Moltres is exerting its Pressure!

    Start of turn 10
    Moltres used Hurricane!
    The attack of Moltres missed!
    Weezing used Psybeam!
    It's super effective!
    The foe's Alakazam lost 22% of its health!
    The foe's Alakazam fainted!
    The foe's Marowak used Aerial Ace!
    Weezing lost 24 HP! (10% of its health)
    Sally the Horse sent out Goomy!

    Start of turn 11
    The foe's Goomy used Bubble!
    It's not very effective...
    Moltres lost 11 HP! (5% of its health)
    Weezing lost 22 HP! (9% of its health)
    Moltres used Hidden Power!
    The foe's Goomy lost 26% of its health!
    Weezing used Psybeam!
    The foe's Goomy lost 18% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!

    Start of turn 12
    The foe's Goomy used Sleep Talk!
    But it failed!
    Moltres used Hidden Power!
    The foe's Goomy lost 23% of its health!
    Weezing used Psybeam!
    The foe's Goomy lost 18% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!

    Start of turn 13
    The foe's Goomy used Bubble!
    It's not very effective...
    Moltres lost 11 HP! (5% of its health)
    Moltres's Speed fell!
    Weezing lost 19 HP! (8% of its health)
    Weezing's Speed fell!
    Moltres used Hidden Power!
    The foe's Goomy lost 13% of its health!
    The foe's Goomy fainted!
    Weezing used Psybeam!
    The foe's Marowak lost 15% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!
    Sally the Horse sent out Mandibuzz!

    Start of turn 14
    The foe's Mandibuzz used Air Slash!
    Weezing lost 48 HP! (20% of its health)
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 35% of its health!
    The foe's Marowak used Toxic!
    Moltres was badly poisoned!
    Weezing used Psybeam!
    It's super effective!
    The foe's Mandibuzz lost 22% of its health!
    Moltres was hurt by poison!

    Start of turn 15
    The foe's Mandibuzz used Air Slash!
    Weezing lost 9 HP! (3% of its health)
    Weezing fainted!
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 31% of its health!
    The foe's Marowak used Hyper Beam!
    Moltres lost 61 HP! (30% of its health)
    Moltres was hurt by poison!
    MidwayMarshall sent out Shroomish!

    Start of turn 16
    The foe's Mandibuzz used Air Slash!
    Moltres lost 54 HP! (26% of its health)
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 10% of its health!
    The foe's Mandibuzz fainted!
    The foe's Marowak must recharge!
    Shroomish used Seed Bomb!
    It's not very effective...
    The foe's Marowak lost 7% of its health!
    Moltres was hurt by poison!
    Moltres fainted!
    MidwayMarshall sent out Goomy!

    Start of turn 17
    Shroomish is tightening its focus!
    Goomy used Draco Meteor!
    The foe's Marowak lost 46% of its health!
    The foe's Marowak fainted!
    Goomy's Sp. Att. sharply fell!
    MidwayMarshall won the battle!


    Start of turn 3
    Regirock used Rock Polish!
    Regirock's Speed sharply rose!
    The foe's Silcoon used Iron Defense!
    The foe's Silcoon's Defense sharply rose!
    The foe's Alakazam is paralyzed! It can't move!
    Jigglypuff used Shock Wave!
    The foe's Silcoon lost 28% of its health!

    Start of turn 4
    Regirock used Earth Power!
    It's super effective!
    The foe's Silcoon lost 32% of its health!
    The foe's Silcoon used Poison Sting!
    It's super effective!
    Regirock lost 4% of its health!
    Regirock was poisoned!
    The foe's Alakazam is paralyzed! It can't move!
    Jigglypuff used Thunderbolt!
    The foe's Silcoon lost 11% of its health!
    Jigglypuff fainted!
    Regirock is hurt by poison!
    Sally the Horse sent out Blitzle!

    Start of turn 5
    Regirock used Earth Power!
    The foe's Alakazam lost 14% of its health!
    The foe's Blitzle used Take Down!
    Jigglypuff lost 35% of its health!
    The foe's Blitzle fainted!
    The foe's Blitzle is hit with recoil!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock is hurt by poison!
    MidwayMarshall sent out Weezing!

    Start of turn 6
    Regirock used Earth Power!
    It's not very effective...
    The foe's Blitzle lost 11% of its health!
    The foe's Blitzle used Take Down!
    The attack of the foe's Blitzle missed!
    Weezing used Psybeam!
    It's super effective!
    The foe's Alakazam lost 32% of its health!
    The foe's Alakazam used Knock Off!
    Weezing lost 10% of its health!
    MISSING
    Regirock is hurt by poison!

    Start of turn 7
    Regirock used Earth Power!
    It's not very effective...
    The foe's Blitzle lost 10% of its health!
    The foe's Blitzle used Take Down!
    Weezing lost 20% of its health!
    The foe's Blitzle is hit with recoil!
    Weezing used Psybeam!
    The foe's Blitzle lost 28% of its health!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock is hurt by poison!

    Start of turn 8
    Regirock used Earth Power!
    It's not very effective...
    A critical hit!
    The foe's Blitzle lost 16% of its health!
    The foe's Blitzle used Take Down!
    It's super effective!
    Regirock lost 34% of its health!
    The foe's Blitzle is hit with recoil!
    Weezing used Psybeam!
    The foe's Blitzle lost 5% of its health!
    Weezing fainted!
    The foe's Alakazam is paralyzed! It can't move!
    Regirock is hurt by poison!
    Sally the Horse sent out Marowak!

    Start of turn 9
    Regirock used Earth Power!
    The foe's Marowak lost 12% of its health!
    Weezing used Psybeam!
    The foe's Marowak lost 16% of its health!
    The foe's Marowak used Toxic!
    It doesn't affect Weezing!
    The foe's Alakazam used Facade!
    Weezing lost 16% of its health!
    Regirock is hurt by poison!
    Regirock fainted!
    MidwayMarshall sent out Moltres!
    Moltres is exerting its Pressure!

    Start of turn 10
    Moltres used Hurricane!
    The attack of Moltres missed!
    Weezing used Psybeam!
    It's super effective!
    The foe's Alakazam lost 22% of its health!
    The foe's Alakazam fainted!
    The foe's Marowak used Aerial Ace!
    Weezing lost 10% of its health!
    Sally the Horse sent out Goomy!

    Start of turn 11
    The foe's Goomy used Bubble!
    It's not very effective...
    Moltres lost 5% of its health!
    Weezing lost 9% of its health!
    Moltres used Hidden Power!
    The foe's Goomy lost 26% of its health!
    Weezing used Psybeam!
    The foe's Goomy lost 18% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!

    Start of turn 12
    The foe's Goomy used Sleep Talk!
    But it failed!
    Moltres used Hidden Power!
    The foe's Goomy lost 23% of its health!
    Weezing used Psybeam!
    The foe's Goomy lost 18% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!

    Start of turn 13
    The foe's Goomy used Bubble!
    It's not very effective...
    Moltres lost 5% of its health!
    Moltres's Speed fell!
    Weezing lost 8% of its health!
    Weezing's Speed fell!
    Moltres used Hidden Power!
    The foe's Goomy lost 13% of its health!
    The foe's Goomy fainted!
    Weezing used Psybeam!
    The foe's Marowak lost 15% of its health!
    The foe's Marowak used Toxic!
    The attack of the foe's Marowak missed!
    Sally the Horse sent out Mandibuzz!

    Start of turn 14
    The foe's Mandibuzz used Air Slash!
    Weezing lost 20% of its health!
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 35% of its health!
    The foe's Marowak used Toxic!
    Moltres was badly poisoned!
    Weezing used Psybeam!
    It's super effective!
    The foe's Mandibuzz lost 22% of its health!
    Moltres is hurt by poison!

    Start of turn 15
    The foe's Mandibuzz used Air Slash!
    Weezing lost 3% of its health!
    The foe's Marowak fainted!
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 31% of its health!
    The foe's Marowak used Hyper Beam!
    Moltres lost 30% of its health!
    Moltres is hurt by poison!
    MidwayMarshall sent out Shroomish!

    Start of turn 16
    The foe's Mandibuzz used Air Slash!
    Moltres lost 26% of its health!
    Moltres used Hidden Power!
    It's super effective!
    The foe's Mandibuzz lost 10% of its health!
    The foe's Mandibuzz fainted!
    The foe's Marowak must recharge!
    Shroomish used Seed Bomb!
    It's not very effective...
    The foe's Marowak lost 7% of its health!
    Moltres is hurt by poison!
    Moltres fainted!
    MidwayMarshall sent out Goomy!

    Start of turn 17
    Shroomish is tightening its focus!
    Goomy used Draco Meteor!
    The foe's Marowak lost 46% of its health!
    Shroomish fainted!
    Goomy's Sp. Att sharply fell!
    MidwayMarshall won the battle!
     
  2. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    Probably just missing the onKo (spot) thing. :v
     
  3. MidwayMarshall

    MidwayMarshall woof Forum Moderator Developer Forum Moderator Developer

    Joined:
    Jun 13, 2014
    Messages:
    303
    Likes Received:
    170
    Well it isn't anything like event calling in the battle scripts
    I did find the issue; I had wrote pokes[slot][player] accidentally instead of pokes[player][slot]

    Tomorrow I'll see if I can play a doubles battle via the console rather than just spectate
     
    Nightfall Alicorn likes this.