{
  "properties": {
    "type": "pixelmon:constant",
    "value": {
      "health": 20.0,
      "eyeHeight": 1.9,
      "dimensions": {
        "width": 0.65,
        "height": 2.0
      },
      "title": {
        "translate": "pixelmon.npc.dialogue.battle.trainer.arena.generic.3.plate",
        "color": "#B8F2E6",
        "bold": true,
        "italic": false,
        "underlined": false
      },
      "pushable": false,
      "child": false,
      "invulnerable": false,
      "immovable": false,
      "nameplate": true
    }
  },
  "names": {
    "values": [
      "Mallow"
    ],
    "type": "pixelmon:uniformly_random"
  },
  "party": {
    "value": {
      "options": [
        "Pelipper lvl:34 ability:drizzle helditem:damp_rock nature:bold move1:air_slash move2:weather_ball move3:tailwind move4:ice_beam",
        "Lapras lvl:32 ability:waterabsorb helditem:choice_specs nature:modest move1:freeze-dry move2:sheer_cold move3:sparkling_aria move4:haze",
        "Palpitoad lvl:33 ability:waterabsorb helditem:life_orb nature:timid move1:scald move2:earth_power move3:sludge_bomb move4:stealth_rock",
        "Gyarados lvl:32 ability:moxie helditem:heavy_duty_boots nature:jolly move1:waterfall move2:bounce move3:ice_fang move4:dragon_dance",
        "Ludicolo lvl:33 ability:swiftswim helditem:life_orb nature:timid move1:giga_drain move2:surf move3:ice_beam move4:knock_off",
        "Golisopod lvl:32 ability:emergencyexit helditem:insect_plate nature:jolly move1:first_impression move2:leech_life move3:aqua_jet move4:drill_run",
        "Cloyster lvl:33 ability:skilllink helditem:focus_sash nature:jolly move1:shell_smash move2:icicle_spear move3:rock_blast move4:ice_shard",
        "Kingdra lvl:34 ability:swiftswim helditem:life_orb nature:modest move1:surf move2:dragon_pulse move3:ice_beam move4:flip_turn"
      ],
      "min_selections": 1,
      "max_selections": 4,
      "type": "pixelmon:random_combination"
    },
    "type": "pixelmon:constant"
  },
  "models": {
    "value": {
      "slim": true,
      "texture": "pixelmon:textures/steve/waterleader1.png",
      "type": "pixelmon:player"
    },
    "type": "pixelmon:constant"
  },
  "goals": {
    "type": "pixelmon:constant",
    "value": {
      "goals": [
        {
          "provider": {
            "type": "pixelmon:look_at_nearby",
            "look_distance": 10,
            "probability": 0.9
          },
          "priority": 1
        }
      ]
    }
  },
  "interactions": {
    "type": "pixelmon:constant",
    "value": {
      "interactions": [
        {
          "event": "pixelmon:right_click",
          "conditions": [
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:string_compare",
                "first": {
                  "value": "MAIN_HAND",
                  "type": "pixelmon:constant_string"
                },
                "second": {
                  "type": "pixelmon:hand_used"
                }
              }
            },
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:logical_not",
                "condition": {
                  "type": "pixelmon:interaction_condition",
                  "condition": {
                    "type": "pixelmon:logical_and",
                    "conditions": [
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 0
                            }
                          }
                        }
                      },
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 1
                            }
                          }
                        }
                      },
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 2
                            }
                          }
                        }
                      },
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 3
                            }
                          }
                        }
                      },
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 4
                            }
                          }
                        }
                      },
                      {
                        "type": "pixelmon:interaction_condition",
                        "condition": {
                          "type": "pixelmon:less_than_or_equal",
                          "min": {
                            "value": 35,
                            "type": "pixelmon:constant_number"
                          },
                          "value": {
                            "type": "pixelmon:pokemon_level",
                            "pokemon": {
                              "type": "pixelmon:party_slot",
                              "slot": 5
                            }
                          }
                        }
                      }
                    ]
                  }
                }
              }
            }
          ],
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:message_player",
                "messages": [
                  {
                    "translate": "pixelmon.npc.dialogue.battle.trainer.arena.generic.3.high"
                  }
                ]
              }
            ]
          }
        },
        {
          "event": "pixelmon:right_click",
          "conditions": [
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:string_compare",
                "first": {
                  "value": "MAIN_HAND",
                  "type": "pixelmon:constant_string"
                },
                "second": {
                  "type": "pixelmon:hand_used"
                }
              }
            },
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:on_cooldown",
                "player": {
                  "key": "pixelmon:player",
                  "type": "pixelmon:context_player"
                },
                "cooldown_key": "pixelmon:trainer_arena_water_4",
                "cooldown": 59,
                "unit": "MINUTES"
              }
            }
          ],
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:message_player",
                "messages": [
                  {
                    "translate": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.cooldown"
                  }
                ]
              }
            ]
          }
        },
        {
          "event": "pixelmon:right_click",
          "conditions": [
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:string_compare",
                "first": {
                  "value": "MAIN_HAND",
                  "type": "pixelmon:constant_string"
                },
                "second": {
                  "type": "pixelmon:hand_used"
                }
              }
            },
            {
              "type": "pixelmon:interaction_condition",
              "condition": {
                "type": "pixelmon:can_battle",
                "player": {
                  "key": "pixelmon:player",
                  "type": "pixelmon:context_player"
                }
              }
            }
          ],
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:open_dialogue",
                "title": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.title",
                "message": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.initiate"
              }
            ]
          }
        },
        {
          "event": "pixelmon:close_dialogue",
          "conditions": [
            {
              "type": "pixelmon:constant_boolean",
              "value": true
            }
          ],
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:player_start_npc_battle"
              }
            ]
          }
        },
        {
          "event": "pixelmon:lose_battle",
          "conditions": {
            "type": "pixelmon:true"
          },
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:open_dialogue",
                "title": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.title",
                "message": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.lose",
                "fire_close_event": false
              },
              {
                "type": "pixelmon:set_string_context",
                "key": "pixelmon:trainer",
                "value": "trainer_arena_water_4"
              },
              {
                "type": "pixelmon:trigger_interaction_event",
                "event": "pixelmon:lose_to_trainer"
              }
            ]
          }
        },
        {
          "event": "pixelmon:win_battle",
          "conditions": {
            "type": "pixelmon:true"
          },
          "results": {
            "type": "pixelmon:constant",
            "value": [
              {
                "type": "pixelmon:open_dialogue",
                "title": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.title",
                "message": "pixelmon.npc.dialogue.battle.trainer.arena.water.4.win",
                "fire_close_event": false
              },
              {
                "type": "pixelmon:give_money",
                "money": 1000.0
              },
              {
                "type": "pixelmon:give_item",
                "items": [
                  {
                    "id": "openables:openable_1",
                    "count": 1
                  }
                ]
              },
              {
                "type": "pixelmon:set_cooldown",
                "player": {
                  "key": "pixelmon:player",
                  "type": "pixelmon:context_player"
                },
                "key": "pixelmon:trainer_arena_water_4"
              },
              {
                "type": "pixelmon:set_string_context",
                "key": "pixelmon:trainer",
                "value": "trainer_arena_water_4"
              },
              {
                "type": "pixelmon:trigger_interaction_event",
                "event": "pixelmon:defeat_trainer"
              }
            ]
          }
        }
      ]
    }
  }
}
