SCRIPTS

SCRIPT initcampaign

  SUB_SCRIPT campaignIntro
  RETURN
END_OF_SCRIPT

SCRIPT debugCredits

  ShowDlgScene
  MENU
    OPT "Get 40 credits"
      AddCredits 40
    END_OF_OPT
    OPT "Lose 10 credits."
      AddCredits -10
    END_OF_OPT
    OPT "Done."
      EXIT_MENU
    END_OF_OPT
  END_OF_MENU
  HideDlgScene
END_OF_SCRIPT

SCRIPT debugStart

  ShowDlgScene
  MENU
    OPT "Show the entire map"
      HideDlgScene
      GO startA
    END_OF_OPT
    OPT "Skip to a node (phase I)"
      MENU
        OPT "Jump to Embassy"
          HideDlgScene
          GO startO
        END_OF_OPT
        OPT "Jump to Th'kzw-r"
          HideDlgScene
          GO startP
        END_OF_OPT
        OPT "Jump to Regula"
          HideDlgScene
          GO startR
        END_OF_OPT
        OPT "Cancel"
          HideDlgScene
          EXIT_MENU
        END_OF_OPT
      END_OF_MENU
    END_OF_OPT
    OPT "Jump to a node (phase II)"
      MENU
        OPT "Jump to Space Bar"
          HideDlgScene
          GO startB
        END_OF_OPT
        OPT "Jump to Pirate Haven"
          HideDlgScene
          GO startH
        END_OF_OPT
        OPT "Jump to Silence"
          HideDlgScene
          GO startSilence
        END_OF_OPT
        OPT "Jump to Elite"
          HideDlgScene
          GO startElite
        END_OF_OPT
        OPT "Cancel"
          HideDlgScene
          EXIT_MENU
        END_OF_OPT
      END_OF_MENU
    END_OF_OPT
    OPT "Jump to a node (phase III)"
      MENU
        OPT "Jump to Corporation Lab"
          HideDlgScene
          GO startLab
        END_OF_OPT
        OPT "Jump to Race start"
          HideDlgScene
          GO startRace
        END_OF_OPT
        OPT "Cancel"
          HideDlgScene
          EXIT_MENU
        END_OF_OPT
      END_OF_MENU
    END_OF_OPT
    OPT "Cancel"
      HideDlgScene
      EXIT_MENU
    END_OF_OPT
  END_OF_MENU

  LABEL startN
  ShowNode newbie
  SUB_SCRIPT newbie_init
  MovePlayerToNode newbie
  RETURN

  LABEL startB
  ShowNode newbie
  SUB_SCRIPT newbie_init
  ShowNode bar
  SUB_SCRIPT bar_init
  MovePlayerToNode bar
  SUB_SCRIPT class2_inits
  SET brownUnlocked
  SET purpleUnlocked
  SUB_SCRIPT showDebugButtons
  AddCredits 5
  RETURN

  LABEL startH
  ShowNode newbie
  SUB_SCRIPT newbie_init
  ShowNode bar
  SUB_SCRIPT bar_init
  ShowNode pirateTrap
  SUB_SCRIPT pirateTrap_init
  MovePlayerToNode pirateHaven
  SUB_SCRIPT class2_inits
  SET brownUnlocked
  SET purpleUnlocked
  AddCredits 5
  RETURN

  LABEL startR
  ShowNode bar
  SUB_SCRIPT bar_init
  ShowNode regula
  SUB_SCRIPT regula_init
  MovePlayerToNode regula
  ShowButton bdebugcredits
  RETURN

  LABEL startW
  ShowNode regula
  SUB_SCRIPT regula_init
  ShowNode workshop
  SUB_SCRIPT workshop_init
  MovePlayerToNode workshop
  RETURN

  LABEL startO
  ShowNode newbie
  SUB_SCRIPT newbie_init
  ShowNode outpost
  SUB_SCRIPT outpost_init
  MovePlayerToNode outpost
  RETURN

  LABEL startP
  ShowNode newbie
  SUB_SCRIPT newbie_init
  ShowNode outpost
  SUB_SCRIPT outpost_init
  ShowNode purpleHome
  SUB_SCRIPT purpleHome_init
  SET purpleUnlocked
  MovePlayerToNode purpleHome
  RETURN

  LABEL startF
  SUB_SCRIPT showAllBases1
  ShowNode forge
  SUB_SCRIPT forge_init
  AddCredits 127
  SET brownUnlocked
  SET purpleUnlocked
  MovePlayerToNode forge
  RETURN

  LABEL startM
  SUB_SCRIPT showAllBases1
  ShowNode forge
  SUB_SCRIPT forge_init
  ShowNode mine0
  SUB_SCRIPT mine0_init
  AddCredits 127
  SET brownUnlocked
  SET purpleUnlocked
  MovePlayerToNode mine0
  RETURN

  LABEL startA
  SUB_SCRIPT showAllBases1
  SUB_SCRIPT showAllBases2
  SUB_SCRIPT showAllBases3
  MovePlayerToNode regula
  SET brownUnlocked
  SET purpleUnlocked
  UnlockShuttles
  ShowPath U123
  RETURN

  LABEL startSilence
  SUB_SCRIPT showAllBases1
  SET brownUnlocked
  SET purpleUnlocked
  SET purpleLicenseApproval
  SET class3Asked
  ShowButton bmerch2
  MovePlayerToNode brownHome
  RETURN

  LABEL startElite
  SUB_SCRIPT showAllBases1
  SUB_SCRIPT showAllBases2
  ShowButton bcyanshortcut
  MovePlayerToNode cyanHome
  RETURN

  LABEL startLab
  SUB_SCRIPT showAllBases1
  SUB_SCRIPT showAllBases2
  SUB_SCRIPT showAllBases3
  MovePlayerToNode lab
  SET brownUnlocked
  SET purpleUnlocked
  UnlockShuttles
  SET clubTalk
  AddCredits 777
  RETURN

  LABEL startRace
  SUB_SCRIPT showAllBases1
  SUB_SCRIPT showAllBases2
  SUB_SCRIPT showAllBases3
  MovePlayerToNode newbie
  ShowButton brace
  SET brownUnlocked
  SET purpleUnlocked
  UnlockShuttles
  UnlockShipPlan "I-sport"
  UnlockShipPlan "II-sport"
  UnlockShipPlan "III-amoeba"
  UnlockShipPlan "I-double"
  UnlockShipPlan "II-double"
  UnlockShipPlan "III-double"
  AddCredits 888
  RETURN
END_OF_SCRIPT

SCRIPT showAllBases1

  ShowNode newbie
  SUB_SCRIPT newbie_init
  ShowNode outpost
  SUB_SCRIPT outpost_init
  ShowNode bar
  SUB_SCRIPT bar_init
  ShowNode regula
  SUB_SCRIPT regula_init
  ShowNode workshop
  SUB_SCRIPT workshop_init
  ShowNode purpleHome
  SUB_SCRIPT purpleHome_init
  ShowNode brownHome
  SUB_SCRIPT brownHome_init
  SET class2
  SUB_SCRIPT class2_inits
END_OF_SCRIPT

SCRIPT showAllBases2

  ShowNode forge
  SUB_SCRIPT forge_init
  ShowNode mine0
  SUB_SCRIPT mine0_init
  ShowNode mine1
  SUB_SCRIPT mine1_init
  ShowNode mine2
  SUB_SCRIPT mine2_init
  ShowNode cyanHome
  SUB_SCRIPT cyanHome_init
  ShowNode pirateHaven
  SUB_SCRIPT pirateHaven_init
  SET class3
  SUB_SCRIPT class3_inits
END_OF_SCRIPT

SCRIPT showAllBases3

  ShowNode mine3
  SUB_SCRIPT mine3_init
  ShowNode club
  SUB_SCRIPT club_init
  ShowNode lab
  SUB_SCRIPT lab_init
END_OF_SCRIPT

END_OF_SCRIPTS
