CommonEvent 9105
Name = "グランベリア悪夢イベント2"

  ChangeMapDisplay([1])
  TransferPlayer([0, 985, 17, 12, 8, 0])
  PlayBGM(["RPG::BGM(@name=\"boss0-rikuso\", @volume=100, @pitch=100)"])
  ShowPicture([5, "80_tamamo_st61b", 0, 0, 0, 0, 100, 100, 0, 0])
  MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 255, 0, 60, true])
  ShowTextAttributes(["tamamo_fc3", 0, 0, 2])
  ShowText(["<Tamamo>"])
  ShowText(["So you've come, the magical swordswoman Granberia..."])
  ShowText(["And with her, those strange helpers."])
  ConditionalBranch([0, 1005, 0])
    ShowTextAttributes(["alice_fc6", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["Tamamo!?"])
    ShowText(["Could it be that she's an evil rival competing for the title of magical girl――"])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1006, 0])
    ShowTextAttributes(["alice_fc2", 1, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["Tamamo!?"])
    ShowText(["Could it be that she's an evil rival competing for the title of magical girl――"])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1007, 0])
    ShowTextAttributes(["alice_fc8", 1, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["Tamamo!?"])
    ShowText(["Could it be that she's an evil rival competing for the title of magical girl――"])
    Empty([])

  BranchEnd([])
  ShowTextAttributes(["granberia_fc4", 0, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["Ah... the nine-tailed fox, Tamamo."])
  ShowText(["The king of sorcery, and a tyrant of wickedness."])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["A tyrant of wickedness――"])
  ShowText(["It seems that Tamamo in this world is known to be quite a vile existence."])
  ShowTextAttributes(["tamamo_fc3", 0, 0, 2])
  ShowText(["<Tamamo>"])
  ShowText(["The power of a magical girl is the energy of the emotions that people and monsters hold."])
  ShowText(["A collection of resentment and passion with nowhere to go..."])
  ShowTextAttributes(["tamamo_fc3", 0, 0, 2])
  ShowText(["<Tamamo>"])
  ShowText(["Only I have the right to wield it."])
  ShowText(["Magical swordswoman Granberia, if you interfere, I will show no mercy."])
  ShowTextAttributes(["granberia_fc4", 0, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["If that power were to be handed over to someone like you..."])
  ShowText(["It is clear that this world would become even more hellish."])
  ShowTextAttributes(["granberia_fc4", 0, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["To protect the powerless people..."])
  ShowText(["This Granberia shall rise as a magical girl!"])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["Granberia, who actively desires the power of a magical girl――"])
  ShowText(["After all, something feels off in this nightmare."])
  ShowTextAttributes(["tamamo_fc3", 0, 0, 2])
  ShowText(["<Tamamo>"])
  ShowText(["Then, try to obstruct me with your power."])
  ShowText(["I will turn you and your helpers into ashes...!"])
  ShowTextAttributes(["granberia_fc4", 0, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["With my sword, I will cut down your ambitions!"])
  ShowText(["I will ask for your strength as well!"])
  ConditionalBranch([0, 1005, 0])
    ShowTextAttributes(["alice_fc5", 2, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["By circumstance, I never expected to fight against Tamamo..."])
    ShowText(["There's no turning back now, let's go!"])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1006, 0])
    ShowTextAttributes(["alice_fc1", 3, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["By circumstance, I never expected to fight against Tamamo..."])
    ShowText(["There's no turning back now, let's go!"])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1007, 0])
    ShowTextAttributes(["alice_fc7", 3, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["By circumstance, I never expected to fight against Tamamo..."])
    ShowText(["There's no turning back now, let's go!"])
    Empty([])

  BranchEnd([])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["If I die in this dream world, I won't be able to return to my original body――"])
  ShowText(["In other words, it's equivalent to actually dying."])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["My opponent is Tamamo, I can't afford to let my guard down for even a moment."])
  ShowText(["If I don't combine my strength with Granberia and fight with all my might――"])
  ErasePicture([5])
  ChangeBattleBGM(["RPG::BGM(@name=\"boss_rikuso2\", @volume=100, @pitch=100)"])
  ControlSwitches([22, 22, 0])
  BattleProcessing([0, 2226, false, false])
  ControlSwitches([22, 22, 1])
  ChangeBattleBGM(["RPG::BGM(@name=\"battle\", @volume=100, @pitch=100)"])
  PlayBGM(["RPG::BGM(@name=\"scene_epilogue2\", @volume=100, @pitch=100)"])
  ShowTextAttributes(["tamamo_fc3", 2, 0, 2])
  ShowText(["<Tamamo>"])
  ShowText(["I never thought I would suffer defeat..."])
  ShowText(["I will definitely repay this debt! Remember it!!"])
  Wait([30])
  ShowAnimation([8, 542, false])
  Wait([60])
  SetMoveRoute([8, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=39, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
  Unnamed(["RPG::MoveCommand(@code=39, @parameters=[])"])
  Wait([90])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["Tamamo has retreated from this place――"])
  ConditionalBranch([0, 1005, 0])
    ShowTextAttributes(["alice_fc5", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["That one has a parting remark that sounds really weak."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1006, 0])
    ShowTextAttributes(["alice_fc1", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["That one has a parting remark that sounds really weak."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1007, 0])
    ShowTextAttributes(["alice_fc7", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["That one has a parting remark that sounds really weak."])
    Empty([])

  BranchEnd([])
  SetEventLocation([8, 0, 17, 12, 8])
  ControlVariables([1373, 1373, 0, 0, 6])
  SetMoveRoute([8, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=40, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
  Unnamed(["RPG::MoveCommand(@code=40, @parameters=[])"])
  SetMoveRoute([8, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=37, @parameters=[])\", \"RPG::MoveCommand(@code=4, @parameters=[])\", \"RPG::MoveCommand(@code=16, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
  Unnamed(["RPG::MoveCommand(@code=37, @parameters=[])"])
  Unnamed(["RPG::MoveCommand(@code=4, @parameters=[])"])
  Unnamed(["RPG::MoveCommand(@code=16, @parameters=[])"])
  ShowTextAttributes(["granberia_fc4", 1, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["I appreciate your assistance."])
  ShowText(["I wouldn't have been able to defeat Tamamo alone..."])
  SetMoveRoute([8, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=19, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
  Unnamed(["RPG::MoveCommand(@code=19, @parameters=[])"])
  ShowTextAttributes(["granberia_fc4", 1, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["With this, I can become a magical girl."])
  ShowText(["A great power to protect the weak――"])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["Granberia reached out for the power of a magical girl――"])
  PlayBGM(["RPG::BGM(@name=\"singun_kessen_m\", @volume=100, @pitch=100)"])
  PlaySE(["RPG::SE(@name=\"Saint7\", @pitch=100, @volume=80)"])
  ShowPicture([5, "ct_granberia4", 0, 0, 0, 0, 100, 100, 0, 0])
  MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 255, 0, 60, false])
  ShowTextAttributes(["granberia_fc4", 4, 0, 2])
  ShowText(["<Granberia>"])
  ShowText(["Transform☆彡 Magical Girl Gran☆Beria!!"])
  Wait([120])
  ChangeMapDisplay([0])
  FadeoutBGM([1])
  PlaySE(["RPG::SE(@name=\"Magic2\", @pitch=100, @volume=80)"])
  ShowPicture([10, "sys_white", 0, 0, 0, 0, 100, 100, 0, 0])
  MovePicture([10, nil, 0, 0, 0, 0, 100, 100, 255, 0, 30, true])
  ErasePicture([5])
  Wait([120])
  ConditionalBranch([1, 912, 0, 0, 0])
    Script(["delete_actor_ex(16)"])
    Empty([])

  BranchEnd([])
  ControlVariables([1373, 1373, 0, 0, 6])
  TransferPlayer([0, 940, 27, 10, 8, 2])
  MovePicture([10, nil, 0, 0, 0, 0, 100, 100, 0, 0, 60, true])
  ErasePicture([10])
  ShowTextAttributes(["ruka_fc1", 0, 0, 2])
  ShowText(["<Luka>"])
  ShowText(["Huh...!?"])
  ConditionalBranch([0, 1005, 0])
    ShowTextAttributes(["alice_fc5", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["It seems I've returned to the place I was before."])
    ShowText(["Granberia is also not here..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1006, 0])
    ShowTextAttributes(["alice_fc1", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["It seems I've returned to the place I was before."])
    ShowText(["Granberia is also not here..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1007, 0])
    ShowTextAttributes(["alice_fc7", 0, 0, 2])
    ShowText(["<Alice>"])
    ShowText(["It seems I've returned to the place I was before."])
    ShowText(["Granberia is also not here..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1026, 0])
    ShowTextAttributes(["iriasu_fc4", 2, 0, 2])
    ShowText(["<Ilias>"])
    ShowText(["In the end, what was that?"])
    ShowText(["For a nightmare, Granberia seems quite enthusiastic..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1027, 0])
    ShowTextAttributes(["iriasu_fc1", 4, 0, 2])
    ShowText(["<Ilias>"])
    ShowText(["In the end, what was that?"])
    ShowText(["For a nightmare, Granberia seems quite enthusiastic..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([0, 1028, 0])
    ShowTextAttributes(["iriasu_fc3", 0, 0, 2])
    ShowText(["<Ilias>"])
    ShowText(["In the end, what was that?"])
    ShowText(["For a nightmare, Granberia seems quite enthusiastic..."])
    Empty([])

  BranchEnd([])
  ConditionalBranch([4, 171, 0])
    ShowTextAttributes(["lizardboss_fc1", 3, 0, 2])
    ShowText(["<Miranda>"])
    ShowText(["It's like I'm the one dreaming..."])
    Empty([])

  BranchEnd([])
  ShowTextAttributes(["ruka_fc1", 0, 0, 2])
  ShowText(["<Luka>"])
  ShowText(["There are so many things I don't understand..."])
  ShowText(["But it seems there has been a slight change in the floor."])
  SetMoveRoute([-1, "RPG::MoveRoute(@repeat=false, @skippable=false, @wait=true, @list=[\"RPG::MoveCommand(@code=16, @parameters=[])\", \"RPG::MoveCommand(@code=0, @parameters=[])\"])"])
  Unnamed(["RPG::MoveCommand(@code=16, @parameters=[])"])
  ShowTextAttributes(["", 0, 0, 2])
  ShowText(["One of the four devices lined up in the center seems to be activated."])
  ShowText(["When I first came here, all four were supposed to be stopped――"])
  ShowTextAttributes(["mob_mahousyouzyo_fc1", 0, 0, 2])
  ShowText(["<Magical Marin-chan>"])
  ShowText(["A new path may have opened up."])
  ShowText(["Let's check the surroundings!"])
  ExitEventProcessing([])
  Empty([])
