banterPlayed = {}
function OnScriptLoaded(level, obj)
  game.SubObject.Sleep(obj)
end
function OnSaveCheckpoint(level, obj)
  local savedInfo = {}
  savedInfo.banterPlayed = banterPlayed
  return savedInfo
end
function OnRestoreCheckpoint(level, obj, savedInfo)
  banterPlayed = savedInfo.banterPlayed
end
function PlayFoundCart01()
  if not banterPlayed.foundCart01 then
    game.FindLevel("Peak200_ChimneyLow"):GetGameObject("Peak200_Banter"):CallScript("Disable_CartPeek")
    game.Audio.PlayBanter("240_FoundCart01")
    banterPlayed.foundCart01 = true
  end
end
function FoundCart02_Banter()
  if not banterPlayed.foundCart02 then
    game.Audio.PlayBanter("240_FoundCart02")
    banterPlayed.foundCart02 = true
  end
end
function FoundCart03_Banter()
  if not banterPlayed.foundCart03 then
    game.Audio.PlayBanter("240_FoundCart03")
    banterPlayed.foundCart03 = true
  end
end
function FoundCart04_Banter()
  if not banterPlayed.foundCart04 then
    game.Audio.PlayBanterNonCritical("240_FoundCart04")
    banterPlayed.foundCart04 = true
  end
end
function FoundCart04b_Banter()
  if not banterPlayed.foundCart04b then
    game.Audio.PlayBanterNonCritical("240_FoundCart04b")
    banterPlayed.foundCart04b = true
  end
end
function GateControl_Banter()
  if not banterPlayed.gateControl then
    game.Audio.PlayBanter("260_GateControl")
    banterPlayed.gateControl = true
  end
end
function OpenCartGate_Banter()
  if not banterPlayed.openCartGate then
    game.Audio.PlayBanterNonCritical("270_OpenCartGate")
    banterPlayed.openCartGate = true
  end
end
function LooksHeavy02_Banter()
  if not banterPlayed.looksHeavy02 then
    game.Audio.PlayBanter("299_LooksHeavy02")
    banterPlayed.looksHeavy02 = true
  end
end
function LooksHeavy03_Banter()
  if not banterPlayed.looksHeavy03 then
    game.Audio.PlayBanter("299_LooksHeavy03")
    banterPlayed.looksHeavy03 = true
  end
end
function LooksHeavy04_Banter()
  if not banterPlayed.looksHeavy04 then
    game.Audio.PlayBanter("299_LooksHeavy04")
    banterPlayed.looksHeavy04 = true
  end
end
function OnTheRightTrack01_Banter()
  if not banterPlayed.OnTheRightTrack01 then
    game.Audio.PlayBanter("265_OnTheRightTrack01")
    banterPlayed.OnTheRightTrack01 = true
  end
end
function OnTheRightTrack02_Banter()
  if not banterPlayed.OnTheRightTrack02 then
    game.Audio.PlayBanter("265_OnTheRightTrack02")
    banterPlayed.OnTheRightTrack02 = true
  end
end
function WheelReminder_Banter()
  if not banterPlayed.wheelReminder then
    game.Audio.PlayBanter("310_WheelReminder")
    banterPlayed.wheelReminder = true
  end
end
function ChainFreezeCartPuzzle01_Banter()
  if not banterPlayed.chainFreezeCartPuzzle01 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle01")
    banterPlayed.chainFreezeCartPuzzle01 = true
  end
end
function ChainFreezeCartPuzzle02_Banter()
  if not banterPlayed.chainFreezeCartPuzzle02 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle02")
    banterPlayed.chainFreezeCartPuzzle02 = true
  end
end
function ChainFreezeCartPuzzle03_Banter()
  if not banterPlayed.chainFreezeCartPuzzle03 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle03")
    banterPlayed.chainFreezeCartPuzzle03 = true
  end
end
function ChainFreezeCartPuzzle04_Banter()
  if not banterPlayed.chainFreezeCartPuzzle04 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle04")
    banterPlayed.chainFreezeCartPuzzle04 = true
  end
end
function ChainFreezeCartPuzzle05_Banter()
  if not banterPlayed.chainFreezeCartPuzzle05 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle05")
    banterPlayed.chainFreezeCartPuzzle05 = true
  end
end
function ChainFreezeCartPuzzle06_Banter()
  if not banterPlayed.chainFreezeCartPuzzle06 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle06")
    banterPlayed.chainFreezeCartPuzzle06 = true
  end
end
function ChainFreezeCartPuzzle07_Banter()
  if not banterPlayed.chainFreezeCartPuzzle07 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle07")
    banterPlayed.chainFreezeCartPuzzle07 = true
  end
end
function ChainFreezeCartPuzzle08_Banter()
  if not banterPlayed.chainFreezeCartPuzzle08 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle08")
    banterPlayed.chainFreezeCartPuzzle08 = true
  end
end
function ChainFreezeCartPuzzle08_B_Banter()
  if not banterPlayed.chainFreezeCartPuzzle08_B then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle08_B")
    banterPlayed.chainFreezeCartPuzzle08_B = true
  end
end
function ChainFreezeCartPuzzle09_Banter()
  if not banterPlayed.chainFreezeCartPuzzle09 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle09")
    banterPlayed.chainFreezeCartPuzzle09 = true
  end
end
function ChainFreezeCartPuzzle10_Banter()
  if not banterPlayed.chainFreezeCartPuzzle10 then
    game.Audio.PlayBanter("320_ChainFreezeCartPuzzle10")
    banterPlayed.chainFreezeCartPuzzle10 = true
  end
end
function CartElevatorRide_Banter()
  if not banterPlayed.CartElevatorRide then
    game.Audio.PlayBanter("330_CartElevatorRide")
    banterPlayed.CartElevatorRide = true
  end
end
