CommonEvent 889
Name = "防具マスタリー取得"

  999([889])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["By prevailing over the fierce battle, you can now master an armor of your choice!"])
  ShowText(["Choose the armor you wish to master!"])
  Label(["選択"])
  Script(["unlimited_choices(12,"])
  ScriptMore([" [\"Clothing Mastery\","])
  ScriptMore(["\"Armor Mastery\","])
  ScriptMore(["\"Robe Mastery\","])
  ScriptMore(["\"Dress Mastery\","])
  ScriptMore(["\"Kabuto Mastery\","])
  ScriptMore(["\"Magic Hat Mastery\","])
  ScriptMore(["\"Shield Mastery\","])
  ScriptMore(["\"Stop\"])"])
  ConditionalBranch([1, 12, 0, 0, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Clothes Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5648)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Clothes Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5648])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Clothes Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 1, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Armor Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5649)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Armor Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5649])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Armor Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 2, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Robe Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5650)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Robe Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5650])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Robe Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 3, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Dress Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5651)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Dress Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5651])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Dress Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 4, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Helmet Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5652)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Helmet Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5652])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Helmet Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 5, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Magic Hat Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5653)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Magic Hat Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5653])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Magic Hat Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 12, 0, 6, 0])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["Who will learn Shield Mastery?"])
    Script(["names = party_members.collect{|m|m.name}"])
    ScriptMore(["unlimited_choices(11, names)"])
    ScriptMore(["actor = party_members[$game_variables[11]]"])
    ScriptMore(["$game_variables[10] = actor ? actor.id : 0"])
    ConditionalBranch([1, 10, 0, 0, 0])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ConditionalBranch([12, "actor_skill_have?(v(10),5654)"])
      ShowTextAttributes(["", 0, 0, 2])
      ShowText(["That character already has Shield Mastery..."])
      JumpToLabel(["選択"])
      Empty([])

    BranchEnd([])
    ControlVariables([129, 129, 0, 0, 1])
    ChangeSkills([1, 10, 0, 5654])
    PlaySE(["RPG::SE(@name=\"Item1\", @pitch=100, @volume=80)"])
    ShowTextAttributes(["", 0, 0, 2])
    ShowText(["You learned \\I[99]\\C[1]Shield Mastery\\C[0]!"])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["Are you sure?"])
  ShowChoices([["Learn an armor mastery", "Proceed as is"], 1])
  When([0, "防具マスタリーを習得する"])
    JumpToLabel(["選択"])
    Empty([])

  When([1, "習得せず先に進む"])
    ExitEventProcessing([])
    Empty([])

  ChoicesEnd([])
  Empty([])
