<timelines>
  <timeline name="bowMachineBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/arm"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/lid"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/arm"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/lid"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="bowMachine"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/lid"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/bow"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/arm"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/lid"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/arm"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/lid"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnimFrame">
      <string value="$arg{0}/lid"/>
      <number value="20"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet1"/>
      <string value="bow"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet2"/>
      <string value="bow"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet3"/>
      <string value="bow"/>
      <string value="done"/>
    </action>
    <action type="petropolis.actions::HideTabValetRequest">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="bow"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="bow"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/lid"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{bowCost}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="-$appGlob{bowCost}"/>
    </action>
  </timeline>
  <timeline name="brushMachineBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/brush1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/brush2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/brush3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="$typeOf{$arg{0}}"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/brush1"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet1"/>
      <string value="brush"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet2"/>
      <string value="brush"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet3"/>
      <string value="brush"/>
      <string value="done"/>
    </action>
    <action type="petropolis.actions::HideTabValetRequest">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="brush"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{brushCost}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="-$appGlob{brushCost}"/>
    </action>
  </timeline>
  <timeline name="cashClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="$var{$arg{0}:price}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="$var{$arg{0}:price}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="price"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/cash"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="cashpickup"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
  </timeline>
  <timeline name="cleanupValetPet">
    <!--action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action-->
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <!-- action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/$var{$arg{0}:colour}body"/>
      <string value="loop"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/$var{$arg{0}:colour}body"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/$var{$arg{0}:colour}face"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/$var{$arg{0}:colour}body"/>
    </action -->
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$parentOf{$parentOf{$arg{0}}}"/>
      <boolean value="false"/>
    </action>
  </timeline>
  <timeline name="collarMachineBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/clampBack"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/clampBack"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/clampFront"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/clampFront"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="collarMachine"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/clampFront"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/tag"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/tag"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/collar"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/clampFront"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/clampFront"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/clampBack"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/clampBack"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet1"/>
      <string value="collar"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet2"/>
      <string value="collar"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet3"/>
      <string value="collar"/>
      <string value="done"/>
    </action>
    <action type="petropolis.actions::HideTabValetRequest">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="collar"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="collar"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/clampBack"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{collarCost}"/>
    </action>
  </timeline>
  <timeline name="cookieJarPlayerVisit">
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/pet"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer"/>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="/cookieJar/lid"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <number value="0.25"/>
    </action>
    <action type="petropolis.actions::RetrieveCookie">
      <number value="2"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="cookie"/>
      <string value="cookie"/>
      <string value="$visibleElt{player}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="/cookieJar/lid"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ReleasePlayer"/>
  </timeline>
  <timeline name="counterCustomerVisit">
    <action type="petropolis.actions::WaitForPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="shuffleCustomer"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::HideHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="killCustomer"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}:charType}fail"/>
    </action>
    <!--action type="slam.sandbox.actions::PlayCharAnim">
      <string value="$arg{0}"/>
      <string value="fail"/>
      <boolean value="true"/>
    </action-->
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="insideDoor"/>
      <string value="customerEntry"/>
    </action>
  </timeline>
  <timeline name="counterFamilyMemberVisit">
    <action type="petropolis.actions::WaitForPatience">
      <string value="$arg{0}/patienceOMeter"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value=""/>
    </action>
    <action type="petropolis.actions::HideHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="killFamilyMember"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="insideDoor"/>
      <string value="customerEntry"/>
    </action>
  </timeline>
  <timeline name="counterPlayerPetVisit1stTime">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/speechBubble"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer">
      <string value="$appGlob{customerChatDuration}"/>
    </action>
    <action type="petropolis.actions::BounceToHUD">
      <string value="$arg{0}"/>
      <string value="$arg{0}/speechBubble/pet"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/speechBubble"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::WaitForHUDBouncers">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::RevealHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerPetVisit2ndTime"/>
    </action>
  </timeline>
  <timeline name="counterPlayerPetVisit2ndTime">
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemsAreEquivalent"><!-- this is where it checks if pet type matches -->
      <string value="$visibleElt{player}/pet"/>
      <string value="$arg{0}/speechBubble/pet"/>
      <string value="wrongPet" />
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="owner"/>
      <string value="$arg{0}"/>
      <string value="someoneElsePet"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer"/>
    <action type="petropolis.actions::FreezeCustomer">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForOneOffAnim">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}:charType}cele"/>
    </action>
    <action type="slam.sandbox.actions::PlayCharAnim">
      <string value="$arg{0}"/>
      <string value="celeb"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$visibleElt{player}/pet"/>
      <string value="$visibleElt{$arg{0}}"/>
      <string value="$visibleElt{$arg{0}}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ReleasePlayer"/>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="counter$trailingNumber{$locationOf{$arg{0}}}/cash"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::CalcPayment">
      <string value="$trailingNumber{$locationOf{$arg{0}}}"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="cashdrop"/>
      <number value="0"/>
    </action>
    <action type="petropolis.actions::CancelWaitForPatience">
      <string value="$arg{0}/patienceOMeter"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="killCustomer"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::HideHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::CustomerSatisfied"/>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="insideDoor"/>
      <string value="customerEntry"/>
    </action>
  </timeline>
  <timeline name="counterPlayerValetVisit1stTime">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/speechBubble"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer">
      <string value="$appGlob{customerChatDuration}"/>
    </action>
    <action type="petropolis.actions::BounceToHUD">
      <string value="$arg{0}"/>
      <string value="$arg{0}/speechBubble/pet"/>
    </action>
    <action type="petropolis.actions::BounceToHUD">
      <string value="$arg{0}"/>
      <string value="$arg{0}/speechBubble/valet1"/>
    </action>
    <action type="petropolis.actions::BounceToHUD">
      <string value="$arg{0}"/>
      <string value="$arg{0}/speechBubble/valet2"/>
    </action>
    <action type="petropolis.actions::BounceToHUD">
      <string value="$arg{0}"/>
      <string value="$arg{0}/speechBubble/valet3"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/speechBubble"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::WaitForHUDBouncers">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::RevealHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerValetVisit2ndTime"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valetPetOnClick"/>
    </action>
  </timeline>
  <timeline name="counterPlayerValetVisit2ndTime">
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="owner"/>
      <string value="$arg{0}"/>
      <string value="notMyPet"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="valet1"/>
      <string value="done"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="valet2"/>
      <string value="done"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="valet3"/>
      <string value="done"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer"/>
    <action type="petropolis.actions::FreezeCustomer">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForOneOffAnim">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}:charType}cele"/>
    </action>
    <action type="slam.sandbox.actions::PlayCharAnim">
      <string value="$arg{0}"/>
      <string value="celeb"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$visibleElt{player}/pet"/>
      <string value="$visibleElt{$arg{0}}"/>
      <string value="$visibleElt{$arg{0}}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ReleasePlayer"/>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="counter$trailingNumber{$locationOf{$arg{0}}}/cash"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::CalcPayment">
      <string value="$trailingNumber{$locationOf{$arg{0}}}"/>
    </action>
    <action type="petropolis.actions::HideHUDTab">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="cashdrop"/>
      <number value="0"/>
    </action>
    <action type="petropolis.actions::CancelWaitForPatience">
      <string value="$arg{0}/patienceOMeter"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="killCustomer"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::CustomerSatisfied"/>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="customerEntry"/>
      <string value="insideDoor"/>
      <string value="customerEntry"/>
    </action>
  </timeline>
  <timeline name="counterPlayerVisit">
    <action type="slam.sandbox.actions::StopUnlessItemOfTypeAtLocation">
      <string value="custSlot$trailingNumber{$locationOf{player}}"/>
      <string value="customer"/>
    </action>
    <action type="petropolis.actions::UseCookie">
      <string value="$itemAt{custSlot$trailingNumber{$locationOf{player}}}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="$var{$itemAt{custSlot$trailingNumber{$locationOf{player}}}:visitAction}"/>
      <string value="$itemAt{custSlot$trailingNumber{$locationOf{player}}}"/>
    </action>
  </timeline>
  <timeline name="createSafariPet">
    <action type="slam.sandbox.actions::WaitDuration">
      <string value="$randRange{$appGlob{safariPetSpawnDelay}:$appGlob{safariPetSpawnVariance}}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/dust"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/dust"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/dust"/>
      <string value="0.8"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="pet"/>
      <string value="$arg{1}"/>
      <string value="$arg{0}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/pet"/>
      <string value="grey"/>
      <string value="spots"/>
      <boolean value="false"/>
      <boolean value="false"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="species"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/dust"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/dust"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}/pet"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::WaitForItemNotFound">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::Goto">
      <number value="0"/>
    </action>
  </timeline>
  <timeline name="dryMachineBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/fan1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/fan2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/fan3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="$typeOf{$arg{0}}"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/fan1"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet1"/>
      <string value="dry"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet2"/>
      <string value="dry"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet3"/>
      <string value="dry"/>
      <string value="done"/>
    </action>
    <action type="petropolis.actions::HideTabValetRequest">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="dry"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{dryCost}"/>
    </action>
  </timeline>
  <timeline name="fireCustomer">
    <action type="petropolis.actions::WaitForCounterSlot"/>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="customerProxy"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="moveToCustomer"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="patienceOMeter"/>
      <string value="patienceOMeter"/>
      <string value="$arg{0}/patienceProxy"/>
    </action>
    <action type="petropolis.actions::SetMaxPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$glob{maxPatience}"/>
    </action>
    <action type="petropolis.actions::SetPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$arg{2}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed1}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="patience"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value="$freeCustSlot{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="custType"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="charType"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerPetVisit1stTime"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{0}/speechBubble/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}/speechBubble/pet"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/speechBubble/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <!--action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="canColour"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="canPattern"/>
      <string value="true"/>
    </action-->
    <action type="petropolis.actions::ShowHUDTab">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value=""/>
      <string value=""/>
      <string value=""/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
      <string value="counterCustomerVisit"/>
      <string value="$arg{0}"/>
      <string value="shuffleCustomer"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="fireFamilyMember">
    <action type="petropolis.actions::WaitForCounterSlot"/>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="customerProxy"/>
      <string value="family"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="moveToCustomer"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="patienceOMeter"/>
      <string value="patienceOMeter"/>
      <string value="$arg{0}/patienceProxy"/>
    </action>
    <action type="petropolis.actions::SetMaxPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$glob{maxPatience}"/>
    </action>
    <action type="petropolis.actions::SetPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$arg{2}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed1}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/patienceOMeter/smiley3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="patience"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value="$freeCustSlot{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="custType"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="charType"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerPetVisit1stTime"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{0}/speechBubble/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}/speechBubble/pet"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/speechBubble/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::ShowHUDTab">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value=""/>
      <string value=""/>
      <string value=""/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
      <string value="counterFamilyMemberVisit"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::AddPatience">
      <string value=""/>
      <number value="-1"/>
    </action>
  </timeline>
  <timeline name="fireValetCustomer">
    <action type="petropolis.actions::WaitForCounterSlot"/>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="customerProxy"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="moveToCustomer"/>
      <!-- <string value="valetCustomerOnClick"/> -->
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="patienceOMeter"/>
      <string value="patienceOMeter"/>
      <string value="$arg{0}/patienceProxy"/>
    </action>
    <action type="petropolis.actions::SetMaxPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$glob{maxPatience}"/>
    </action>
    <action type="petropolis.actions::SetPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$arg{2}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="patience"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value="$freeCustSlot{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="custType"/>
      <string value="valet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="charType"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerValetVisit1stTime"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{0}/speechBubble/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/speechBubble/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet1"/>
      <string value="$arg{8}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot1"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet2"/>
      <string value="$arg{9}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot2"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet3"/>
      <string value="$arg{10}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot3"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$visibleElt{$arg{0}}/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="owner"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valetPetOnClick1stTime"/>
      <!-- <string value="valetPetOnClick"/> -->
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="canColour"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="canPattern"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet1"/>
      <string value="$arg{8}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet2"/>
      <string value="$arg{9}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet3"/>
      <string value="$arg{10}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet1Was"/>
      <string value="$arg{8}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet2Was"/>
      <string value="$arg{9}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet3Was"/>
      <string value="$arg{10}"/>
    </action>
    <action type="petropolis.actions::ShowHUDTab">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="valet"/>
      <string value="$arg{3}"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="$arg{8}"/>
      <string value="$arg{9}"/>
      <string value="$arg{10}"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
      <string value="counterCustomerVisit"/>
      <string value="$arg{0}"/>
      <string value="shuffleCustomer"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="fireValetFamilyMember">
    <action type="petropolis.actions::WaitForCounterSlot"/>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="customerProxy"/>
      <string value="family"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="moveToCustomer"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="patienceOMeter"/>
      <string value="patienceOMeter"/>
      <string value="$arg{0}/patienceProxy"/>
    </action>
    <action type="petropolis.actions::SetMaxPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$glob{maxPatience}"/>
    </action>
    <action type="petropolis.actions::SetPatience">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$arg{2}"/>
    </action>
    <action type="petropolis.actions::SetPatienceSpeed">
      <string value="$arg{0}/patienceOMeter"/>
      <string value="$appGlob{patienceSpeed1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="patience"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value="$freeCustSlot{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="custType"/>
      <string value="valet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="charType"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="visitAction"/>
      <string value="counterPlayerValetVisit1stTime"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$arg{0}/speechBubble/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/speechBubble/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet1"/>
      <string value="$arg{8}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot1"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet2"/>
      <string value="$arg{9}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot2"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="valet3"/>
      <string value="$arg{10}Icon"/>
      <string value="$arg{0}/speechBubble/valetSlot3"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{3}"/>
      <string value="$visibleElt{$arg{0}}/petSlot"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="owner"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valetPetOnClick1stTime"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet1"/>
      <string value="$arg{8}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet2"/>
      <string value="$arg{9}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet3"/>
      <string value="$arg{10}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet1Was"/>
      <string value="$arg{8}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet2Was"/>
      <string value="$arg{9}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{$arg{0}}/pet"/>
      <string value="valet3Was"/>
      <string value="$arg{10}"/>
    </action>
    <action type="petropolis.actions::ShowHUDTab">
      <string value="$arg{0}"/>
      <string value="$arg{1}"/>
      <string value="valet"/>
      <string value="$arg{3}"/>
      <string value="$arg{4}"/>
      <string value="$arg{5}"/>
      <string value="$arg{6}"/>
      <string value="$arg{7}"/>
      <string value="$arg{8}"/>
      <string value="$arg{9}"/>
      <string value="$arg{10}"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetEventHandler">
      <string value="visit"/>
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
      <string value="counterFamilyMemberVisit"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::AddPatience">
      <string value=""/>
      <number value="-1"/>
    </action>
  </timeline>
  <timeline name="foodBinVisit">
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="foodBin"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="foodBin/anim"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="foodBin/anim"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="foodBin/anim"/>
    </action>
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="foodBin/anim"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="foodBin/anim"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="foodBin/anim"/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="foodBin"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="foodOnClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/pet"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$parentOf{$arg{0}}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="food"/>
      <string value="$typeOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$arg{0}"/>
      <string value="$visibleElt{player}"/>
      <string value="$visibleElt{player}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="foodTable/lid"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="foodTable/lid"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="foodPlayerPenVisit">
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="player"/>
      <string value="food"/>
      <string value="$var{$arg{0}/pet:food}"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/body"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/body"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="$arg{0}/pet"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble/food"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="food"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetPlayerVisitHandler">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="pensvc"/>
      <string value=""/>
    </action>
  </timeline>
  <timeline name="foodTableBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer"/>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/lid"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/lid"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/lid"/>
      <number value="0.2"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="food"/>
      <string value="$arg{1}"/>
      <string value="$arg{0}/foodProxy"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="$arg{0}/food"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/food"/>
      <string value="foodOnClick"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/lid"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{foodCost}"/>
    </action>
    <action type="slam.sandbox.actions::ReleasePlayer"/>
  </timeline>
  <timeline name="hungryPetOnClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
  </timeline>
  <timeline name="initGame">
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPetPoppers"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPetPalette"/>
      <string value="petPalette1"/>
      <string value="$glob{colour1}"/>
      <string value="$glob{colour2}"/>
      <string value="$glob{colour3}"/>
      <string value="$glob{colour4}"/>
      <string value="$glob{colour5}"/>
      <string value="$glob{colour6}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPetPalette"/>
      <string value="petPalette2"/>
      <string value="$glob{colour4}"/>
      <string value="$glob{colour5}"/>
      <string value="$glob{colour6}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPetAPat"/>
      <string value="petAPat1"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPetAPat"/>
      <string value="petAPat2"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen1"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen1"/>
      <string value="$glob{realPet1}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen1"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen2"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen2"/>
      <string value="$glob{realPet2}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen2"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen3"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen3"/>
      <string value="$glob{realPet3}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen3"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen4"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen4"/>
      <string value="$glob{realPet4}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen4"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen5"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen5"/>
      <string value="$glob{realPet5}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen5"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="realPetPen6"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="createSafariPet"/>
      <string value="realPetPen6"/>
      <string value="$glob{realPet6}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimeline">
      <string value="petPenService"/>
      <string value="realPetPen6"/>
    </action>
  </timeline>
  <timeline name="initPet">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/greybody"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/orangebody"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pinkbody"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/$arg{1}body"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/greyface"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/orangeface"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pinkface"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/$arg{1}face"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}$arg{1}spots"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}$arg{1}stripes"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}$arg{1}twotone"/>
      <string value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/$arg{1}$arg{2}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/collar"/>
      <string value="$arg{3}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/bow"/>
      <string value="$arg{4}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="colour"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="pattern"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="$arg{5}"/>
    </action>
  </timeline>
  <timeline name="initPetAPat">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/support1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/support2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/support3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button1"/>
      <string value="spots"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button2"/>
      <string value="stripes"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button3"/>
      <string value="twotone"/>
    </action>
  </timeline>
  <timeline name="initPetPalette">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button1$arg{1}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button1$arg{1}"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button2$arg{2}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button2$arg{2}"/>
      <string value="$arg{2}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button3$arg{3}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button3$arg{3}"/>
      <string value="$arg{3}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button4$arg{4}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button4$arg{4}"/>
      <string value="$arg{4}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button5$arg{5}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button5$arg{5}"/>
      <string value="$arg{5}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/button6$arg{6}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="$arg{0}/button6$arg{6}"/>
      <string value="$arg{6}"/>
    </action>
  </timeline>
  <timeline name="initPetPoppers">
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button1$glob{pet1}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button1$glob{pet1}"/>
      <string value="$glob{pet1}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button2$glob{pet2}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button2$glob{pet2}"/>
      <string value="$glob{pet2}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button3$glob{pet3}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button3$glob{pet3}"/>
      <string value="$glob{pet3}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button4$glob{pet4}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button4$glob{pet4}"/>
      <string value="$glob{pet4}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button5$glob{pet5}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button5$glob{pet5}"/>
      <string value="$glob{pet5}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper1/button6$glob{pet6}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper1/button6$glob{pet6}"/>
      <string value="$glob{pet6}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper2/button1$glob{pet4}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper2/button1$glob{pet4}"/>
      <string value="$glob{pet4}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper2/button2$glob{pet5}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper2/button2$glob{pet5}"/>
      <string value="$glob{pet5}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="petPopper2/button3$glob{pet6}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetTooltip">
      <string value="petPopper2/button3$glob{pet6}"/>
      <string value="$glob{pet6}"/>
    </action>
  </timeline>
  <timeline name="killCustomer">
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="cleanupValetPet"/>
      <string value="$valetPetForCustomer{$arg{0}}"/>
    </action>
  </timeline>
  <timeline name="killFamilyMember">
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="cleanupValetPet"/>
      <string value="$valetPetForCustomer{$arg{0}}"/>
    </action>
    <action type="petropolis.actions::AddPatience">
      <string value=""/>
      <number value="1"/>
    </action>
  </timeline>
  <timeline name="moveToCustomer">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="counter$trailingNumber{$locationOf{$arg{0}}}"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="petAPatBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="canPattern"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action><!-- doesn't swap pet out -->
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="petapatstart"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/hood"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/hood"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/hood"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/glow"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <number value="0.1"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/glow"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <number value="0.1"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/glow"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="petapatloop"/>
      <string value="$appGlob{$typeOf{$arg{0}}Speed}"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <string value="$appGlob{$typeOf{$arg{0}}Speed}"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="petapatend"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/glow"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/hood"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/hood"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::RecreatePet">
      <string value="$arg{0}/pet"/>
      <string value="$arg{0}/petSlot"/>
      <string value=""/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="pattern"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/pet"/>
      <string value="$var{$arg{0}/pet:colour}"/>
      <string value="$var{$arg{0}/pet:pattern}"/>
      <string value="$var{$arg{0}/pet:collar}"/>
      <string value="$var{$arg{0}/pet:bow}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/hood"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <!-- bounce the pet once. doesn't work on normal pets due to the creepy base layer empty skull thing.
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/$var{$arg{0}/pet:colour}body" />
      <boolean value="true" />
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/$var{$arg{0}/pet:colour}$var{$arg{0}/pet:pattern}" />
      <boolean value="true" />
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/$var{$arg{0}/pet:colour}face" />
      <boolean value="true" />
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/bow" />
      <boolean value="true" />
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/collar" />
      <boolean value="true" />
    </action>
    -->
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{patternCost}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="-$appGlob{patternCost}"/>
    </action>
  </timeline>
  <timeline name="petOnClick">
    <action type="slam.sandbox.actions::StopIfPlayerClickedHoldingPet">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$parentOf{$arg{0}}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <!--action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action-->
    <action type="petropolis.actions::ClearCookies">
      <string value="$visibleElt{player}/cookie"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$parentOf{$arg{0}}"/>
      <string value="pensvc"/>
      <string value=""/>
    </action>
    <!--action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{player}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action 20121121 -->
    <action type="slam.sandbox.actions::SetVariable"><!--  This clears the petPopper locked=true variable -->
      <string value="$parentOf{$arg{0}}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
		<!-- <action type="slam.sandbox.actions::PickUpPet"> -->
			<!-- <string value="$arg{0}"/> -->
      <!-- <string value="$visibleElt{player}/pet"/>  			<!-- /player/idleUpRight/pet 			-->
      <!-- <string value="$visibleElt{player}/petSlot"/> 	<!-- /player/idleUpRight/petSlot 	(proxy) -->
      <!-- <string value="$parentOf{$arg{0}}/petSlot"/>  	<!-- /petPopper1/petSlot					(proxy) -->
		<!-- </action> -->
    <action type="slam.sandbox.actions::SwapItems"><!-- This is what picks up a pet (for now) -->
      <string value="$arg{0}"/> 											<!-- /petPopper1/pet  						-->
      <string value="$visibleElt{player}/pet"/>  			<!-- /player/idleUpRight/pet 			-->
      <string value="$visibleElt{player}/petSlot"/> 	<!-- /player/idleUpRight/petSlot 	(proxy) -->
      <string value="$parentOf{$arg{0}}/petSlot"/>  	<!-- /petPopper1/petSlot					(proxy) -->
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="usecookie"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="true"/>
    </action>
    <!--action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{player}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action 20121121 -->
  </timeline>
  <timeline name="petPaletteBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}/pet"/>
      <string value="canColour"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action><!-- allows using the palette machine from right next to it, but doesn't swap the pets -->
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/nozzle"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/nozzle"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="$typeOf{$arg{0}}"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/nozzle"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/dust"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/dust"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <number value="1"/>
    </action>
    <action type="petropolis.actions::RecreatePet">
      <string value="$arg{0}/pet"/>
      <string value="$arg{0}/petSlot"/>
      <string value="$arg{1}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="colour"/>
      <string value="$arg{1}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::CallTimelineAndWait">
      <string value="initPet"/>
      <string value="$arg{0}/pet"/>
      <string value="$var{$arg{0}/pet:colour}"/>
      <string value="$var{$arg{0}/pet:pattern}"/>
      <string value="$var{$arg{0}/pet:collar}"/>
      <string value="$var{$arg{0}/pet:bow}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/dust"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="$arg{0}/nozzle"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/nozzle"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/dust"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/nozzle"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{colourCost}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="-$appGlob{colourCost}"/>
    </action>
  </timeline>
  <timeline name="petPenService">
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <string value="$randRange{$appGlob{safariPetAttentionPeriod}:$appGlob{safariPetAttentionVariance}}"/>
    </action>
    <action type="slam.sandbox.actions::GotoIfItemNotFound">
      <string value="$arg{0}/pet"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::GotoIfItemVisible">
      <string value="$arg{0}/pet/speechBubble"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="hungryPetOnClick"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="pensvc"/>
      <string value="$random{food:toy}"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble/$var{$arg{0}:pensvc}"/>
      <boolean value="true"/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="$arg{0}/pet"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/body"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/body"/>
      <boolean value="true"/>
    </action>
<!--     <action type="slam.sandbox.actions::SetPlayerVisitHandler">
      <string value="$arg{0}"/>
      <string value="$var{$arg{0}:pensvc}PlayerPenVisit"/>
    </action>
 -->    <action type="slam.sandbox.actions::Goto">
      <number value="0"/>
    </action>
  </timeline>
  <timeline name="petPopperBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/anim"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnimFrame">
      <string value="$arg{0}/bubble"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/bubble"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/bubble"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::PlayLoop">
      <string value="$typeOf{$arg{0}}"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/bubble"/>
    </action>
    <action type="petropolis.actions::CreatePet">
      <string value="pet"/>
      <string value="$arg{1}"/>
      <string value="$arg{0}/petSlot"/>
      <string value="$appGlob{$arg{1}Colour}"/>
      <string value=""/>
      <boolean value="false"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/$appGlob{$arg{1}Colour}face"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/$appGlob{$arg{1}Colour}body"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/bubble"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{petCost}"/>
    </action>
    <action type="petropolis.actions::SpawnDollars">
      <string value="$arg{0}"/>
      <string value="-$appGlob{petCost}"/>
    </action>
  </timeline>
  <timeline name="playerMachineVisit">
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <!--action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action-->
		<action type="petropolis.actions::ClearCookies">
      <string value="$visibleElt{player}/cookie"/>
		</action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$visibleElt{player}/pet"/>
      <string value="$arg{0}"/>
      <string value="$arg{0}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
  </timeline>
  <timeline name="playerMachineVisitConditional">
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$visibleElt{player}/pet"/>
      <string value="$arg{1}"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$visibleElt{player}/pet"/>
      <string value="$arg{0}"/>
      <string value="$arg{0}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
  </timeline>
  <timeline name="playerPenVisit"><!-- this is the basic non-pro version -->
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="pet"/>
    </action>
		<!-- comment this out to load more than one pet into the pen -->
    <!--action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$arg{0}/pet"/>
    </action-->
		<action type="slam.sandbox.actions::StopIfPenIsFull">
			<string value="$arg{0}/pet"/>
		</action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$visibleElt{player}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$visibleElt{player}/pet"/>
      <string value="$arg{0}"/>
      <string value="$arg{0}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="usecookie"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
  </timeline>
  <timeline name="shuffleCustomer">
    <action type="petropolis.actions::StopIfTickboxes">
      <string value="$arg{0}"/>
    </action>
<!--     <action type="slam.sandbox.actions::StopIfPlayerNotIdle">
      <string value="$arg{0}"/>
    </action> -->
    <action type="slam.sandbox.actions::StopIfCharacterHasPet">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::WaitDuration">
      <string value="1.5"/>
    </action>
    <action type="petropolis.actions::StopUnlessSlotFree">
      <string value="$arg{0}"/>
      <string value="$trailingNumber{$locationOf{$arg{0}}}"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="slot"/>
      <string value="$nextCustSlot{$locationOf{$arg{0}}}"/>
    </action>
    <action type="slam.sandbox.actions::MoveItem">
      <string value="$arg{0}"/>
      <string value="custSlot$var{$arg{0}:slot}"/>
    </action>
  </timeline>
  <timeline name="toyBoxBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="toyBox"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="toyBox"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="toyBox"/>
    </action>
    <action type="slam.sandbox.actions::HoldPlayer"/>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="toyBox"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="toyBox/$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="toyBox/lid"/>
      <string value="reverse"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="toyBox/lid"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="toyBox/$arg{0}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="toyBox/$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::CreateItem">
      <string value="toy"/>
      <string value="$arg{0}"/>
      <string value="toyBox/toyProxy"/>
    </action>
    <action type="slam.sandbox.actions::SetClickable">
      <string value="toyBox/toy"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="toyBox/$arg{0}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="toyBox/toy"/>
      <string value="type"/>
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="toyBox/toy"/>
      <string value="toyOnClick"/>
    </action>
    <action type="slam.sandbox.actions::ReleasePlayer"/>
  </timeline>
  <timeline name="toyBoxPlayerVisit">
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$visibleElt{player}"/>
      <string value="toy"/>
    </action>
    <action type="slam.sandbox.actions::SetPlayerVisitHandler">
      <string value="toyBox"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::DestroyItem">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="toy"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetAnim">
      <string value="toyBox/lid"/>
      <string value="reverse"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="toyBox/lid"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="toyOnClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$parentOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/pet"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$parentOf{$arg{0}}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="toy"/>
      <string value="$typeOf{$arg{0}}"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetPlayerVisitHandler">
      <string value="$parentOf{$arg{0}}"/>
      <string value="toyBoxPlayerVisit"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$arg{0}"/>
      <string value="$visibleElt{player}"/>
      <string value="$visibleElt{player}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="toyPlayerPenVisit">
    <action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="player"/>
      <string value="toy"/>
      <string value="$var{$arg{0}/pet:toy}"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/pet/body"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/body"/>
      <boolean value="false"/>
    </action>
    <action type="petropolis.actions::ShowHideVisualHack">
      <string value="$arg{0}/pet"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/pet/speechBubble/toy"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetPlayerVisitHandler">
      <string value="$arg{0}"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="pensvc"/>
      <string value=""/>
    </action>
  </timeline>
  <timeline name="valetPetOnClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="counter$trailingNumber{$locationOf{$parentOf{$parentOf{$arg{0}}}}}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="counter$trailingNumber{$locationOf{$parentOf{$parentOf{$arg{0}}}}}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/pet"/>
    </action><!-- to support two handed pick ups -->
    <!--action type="slam.sandbox.actions::StopIfPlayerHandsFull">
      <string value="$visibleElt{player}/pet"/>
    </action-->
    <!--action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action-->
		<action type="petropolis.actions::ClearCookies">
      <string value="$visibleElt{player}/cookie"/>
		</action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$parentOf{$arg{0}}"/>
      <string value="visitAction"/>
      <string value="counterPlayerValetVisit2ndTime"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="oldParent"/>
      <string value="$parentOf{$parentOf{$arg{0}}}"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$arg{0}"/>
      <string value="$visibleElt{player}"/>
      <string value="$visibleElt{player}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$var{player:oldParent}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="oldParent"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="valetCustomerOnClick">
    <action type="slam.sandbox.actions::MovePlayer">
      <!-- <string value="counter$trailingNumber{$locationOf{$parentOf{$arg{0}}}}"/> -->
      <string value="counter$trailingNumber{$locationOf{$arg{0}}}"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="counter$trailingNumber{$locationOf{$arg{0}}}"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/toy"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/food"/>
    </action>
    <action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/pet"/>
    </action><!-- to support two handed pick ups -->
    <!--action type="slam.sandbox.actions::StopIfPlayerHandsFull">
      <string value="$visibleElt{player}/pet"/>
    </action-->
    <!--action type="slam.sandbox.actions::StopIfItemExists">
      <string value="$visibleElt{player}/cookie"/>
    </action-->
    <action type="slam.sandbox.actions::StopUnlessItemExists">
      <string value="$arg{0}/idleDownRightCarry/pet"/>
    </action>
		<!--action type="petropolis.actions::ClearCookies">
      <string value="$visibleElt{player}/cookie"/>
		</action-->
    <action type="slam.sandbox.actions::SetVariable">
      <!-- <string value="$parentOf{$arg{0}}"/> -->
      <string value="$arg{0}/idleDownRightCarry"/>
      <string value="visitAction"/>
      <string value="counterPlayerValetVisit2ndTime"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/idleDownRightCarry/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="oldParent"/>
      <!-- <string value="$parentOf{$parentOf{$arg{0}}}"/> -->
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::SetItemParent">
      <string value="$arg{0}/idleDownRightCarry/pet"/>
      <string value="$visibleElt{player}"/>
      <string value="$visibleElt{player}/petSlot"/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="$var{player:oldParent}"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="player"/>
      <string value="oldParent"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetCharCarryMode">
      <string value="player"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="valetPetOnClick1stTime">
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="counter$trailingNumber{$locationOf{$parentOf{$parentOf{$arg{0}}}}}"/>
      <boolean value="true"/>
    </action>
  </timeline>
  <timeline name="washMachineBtnSeq">
    <action type="slam.sandbox.actions::StartLoop">
      <string value="btnhit"/>
      <number value="0"/>
    </action>
    <action type="slam.sandbox.actions::MovePlayer">
      <string value="$arg{0}"/>
      <boolean value="true"/>
    </action>
    <!--action type="slam.sandbox.actions::StopUnlessVariableEquals">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action-->
    <action type="slam.sandbox.actions::WaitForPlayer">
      <string value="$arg{0}"/>
    </action>
    <action type="slam.sandbox.actions::StopUnlessItemHasChildOfType">
      <string value="$arg{0}"/>
      <string value="pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value="true"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/timer"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/bubbles"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/bubbles"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/sponge1"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/sponge2"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartStopAnim">
      <string value="$arg{0}/sponge3"/>
      <boolean value="true"/>
    </action>
    <action type="slam.sandbox.actions::StartLoop">
      <string value="$typeOf{$arg{0}}"/>
      <string value="0"/>
    </action>
    <action type="slam.sandbox.actions::WaitForAnim">
      <string value="$arg{0}/sponge1"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/bubbles"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::ShowHideItem">
      <string value="$arg{0}/timer"/>
      <boolean value="false"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet1"/>
      <string value="wash"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet2"/>
      <string value="wash"/>
      <string value="done"/>
    </action>
    <action type="slam.sandbox.actions::TestAndSetVariable">
      <string value="$arg{0}/pet"/>
      <string value="valet3"/>
      <string value="wash"/>
      <string value="done"/>
    </action>
    <action type="petropolis.actions::HideTabValetRequest">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="wash"/>
    </action>
    <action type="slam.sandbox.actions::CallAndWaitUnlessItemExists">
      <string value="$var{$arg{0}/pet:owner}"/>
      <string value="cleanupValetPet"/>
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::SetVariable">
      <string value="$arg{0}/pet"/>
      <string value="locked"/>
      <string value=""/>
    </action>
    <action type="slam.sandbox.actions::PlaySound">
      <string value="$var{$arg{0}/pet:species}"/>
    </action>
    <action type="slam.sandbox.actions::BingBing">
      <string value="$arg{0}/pet"/>
    </action>
    <action type="slam.sandbox.actions::SetClickHandler">
      <string value="$arg{0}/pet"/>
      <string value="petOnClick"/>
    </action>
    <action type="petropolis.actions::GiveCash">
      <string value="-$appGlob{washCost}"/>
    </action>
  </timeline>
</timelines>