CommonEvent 149
Name = "Reaper: Reset Time"

  999([149])
  Script(["ex_choice_add(\"New Game+\",1)"])
  ScriptMore(["ex_choice_add(\"Reset Collab Scenario\",2,"])
  ScriptMore(["\"v[1212]>7\",0)"])
  ScriptMore(["ex_choice_add(\"Reset Loop Incident\",3,"])
  ScriptMore(["\"v[1122]==7\",0)"])
  ScriptMore(["ex_choice_add(\"Re-experience the Night Festival\",4,"])
  ScriptMore(["\"v[1122]==7\",0)"])
  ScriptMore(["ex_choice_add(\"Never mind\",5)"])
  Script(["ex_choice_show(0,11,[0,0])"])
  ConditionalBranch([1, 9, 0, 1, 0])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Grim Reaper>"])
    ShowText(["Are you saying you will return to the cycle of beginnings...?"])
    ShowText(["If so, you will start your adventure from the beginning with your current strength."])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Grim Reaper>"])
    ShowText(["The strength of your companions will remain the same."])
    ShowText(["And your current companions will gather around you in the next world as well."])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Grim Reaper>"])
    ShowText(["So, is it alright to return to the cycle of beginnings?"])
    ShowChoices([["いいえ", "はい"], 0])
    When([0, "いいえ"])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Grim Reaper>"])
      ShowText(["I see... then go ahead."])
      MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "はい"])
      Empty([])

    ChoicesEnd([])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Grim Reaper>"])
    ShowText(["Let's confirm one last time."])
    ShowText(["You really are going to return to the cycle of beginnings, right?"])
    ShowChoices([["いいえ", "はい"], 0])
    When([0, "いいえ"])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Grim Reaper>"])
      ShowText(["I see... then go ahead."])
      MovePicture([5, nil, 0, 0, 0, 0, 100, 100, 0, 0, 30, true])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "はい"])
      Empty([])

    ChoicesEnd([])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Grim Reaper>"])
    ShowText(["Then, go to the next world..."])
    FadeoutScreen([])
    ErasePicture([5])
    FadeoutBGM([2])
    Wait([60])
    CallCommonEvent([265])
    ExitEventProcessing([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 2, 0])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>Should you reset the collaboration scenario...\nYou will be able to play through the scenario again from the beginning."])
    ShowText([""])
    ShowText([""])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>However, any guest characters you have recruited will be removed from your party. Now, do you want to reset the collaboration scenario?"])
    ShowText([""])
    ShowText([""])
    ShowChoices([["Don't reset", "Reset"], 1])
    When([0, "リセットしない"])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "リセットする"])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Reaper>I will ask once more...\nDo you really want to reset the collaboration scenario?"])
      ShowText([""])
      ShowText([""])
      ShowChoices([["Don't reset", "Reset"], 1])
      When([0, "リセットしない"])
        ErasePicture([5])
        ExitEventProcessing([])
        Empty([])

      When([1, "リセットする"])
        Wait([60])
        CallCommonEvent([155])
        ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
        ShowText(["\\n<Reaper>...The collaboration scenario has been reset.\nOff with you now."])
        ShowText([""])
        ShowText([""])
        ErasePicture([5])
        ExitEventProcessing([])
        Empty([])

      ChoicesEnd([])
      Empty([])

    ChoicesEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 3, 0])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>Should you reset the loop incident... You will be able to play through the time loop scenario again from the beginning."])
    ShowText([""])
    ShowText([""])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>However, any progress of events related to it will be reset back to its initial state. Now, do you want to reset the time loop scenario?"])
    ShowText([""])
    ShowText([""])
    ShowChoices([["Don't reset", "Reset"], 1])
    When([0, "リセットしない"])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "リセットする"])
      ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
      ShowText(["\\n<Reaper>I will ask once more...\nDo you really want to reset the time loop scenario?"])
      ShowText([""])
      ShowText([""])
      ShowChoices([["Don't reset", "Reset"], 1])
      When([0, "リセットしない"])
        ErasePicture([5])
        ExitEventProcessing([])
        Empty([])

      When([1, "リセットする"])
        Wait([60])
        ControlVariables([1098, 1122, 0, 0, 0])
        ControlSwitches([2337, 2433, 1])
        ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
        ShowText(["\\n<Reaper>...You can now play the loop scenario from the beginning again. Off with you now."])
        ShowText([""])
        ShowText([""])
        ErasePicture([5])
        ExitEventProcessing([])
        Empty([])

      ChoicesEnd([])
      Empty([])

    ChoicesEnd([])
    Empty([])

  BranchEnd([])
  ConditionalBranch([1, 9, 0, 4, 0])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>Do you want to relive the Night Festival?\nYou must really like festivals..."])
    ShowText([""])
    ShowText([""])
    ShowTextAttributes(["sinigami_fc1", 0, 0, 2])
    ShowText(["\\n<Reaper>If that's all you want, it shouldn't affect space-time too much. Now, would you like to go back to right before the Night Festival?"])
    ShowText([""])
    ShowText([""])
    ShowChoices([["Don't re-experience", "Re-experience"], 1])
    When([0, "再体験しない"])
      ErasePicture([5])
      ExitEventProcessing([])
      Empty([])

    When([1, "再体験する"])
      FadeoutScreen([])
      ErasePicture([5])
      Wait([180])
      TransferPlayer([0, 954, 41, 1, 2, 2])
      ControlVariables([1122, 1122, 0, 0, 6])
      ControlSwitches([31, 31, 1])
      ControlSwitches([32, 32, 1])
      ControlSwitches([33, 33, 1])
      ControlSwitches([94, 94, 0])
      ControlSwitches([100, 100, 0])
      ControlSwitches([2433, 2433, 1])
      Script(["set_temp_actors(1)"])
      FadeinScreen([])
      CallCommonEvent([581])
      ExitEventProcessing([])
      Empty([])

    ChoicesEnd([])
    Empty([])

  BranchEnd([])
  ErasePicture([5])
  ExitEventProcessing([])
  Empty([])
