-- Level file autogenerated by ds1_data.xls
-- Please do not edit directly
-- w:\sleipner2\demos\ds1\build\infos/customerlogic.lua
CustomerLogic = 
{ 
  { 
     Name = "Basic", 
     OnStartTakeout = "go_cashier, emote_noheart[emote_wait], wait_random[5|8], emote_end, play_anim[wave], play_sound[customer_orders], service", 
     OnStart = "go_here", 
     OnArrive = "sync_group,set_state[thinking],emote_noheart[emote_wait], wait_random[5|8],sync_group,set_state[], sync_group, emote_end, play_anim[wave], wait_prop_state[table_idle], emote_end, play_sound[customer_orders], service", 
     OnPresent = "play_anim[wave]", 
     OnFullOrderDelivered = "add_patience,emote_end", 
     OnWorking = "play_prop_fx[fx_working|0], set_prop_state[table_dirty], working, stop_prop_fx[fx_working]", 
     OnPay = "go_cashier, play_sound[customer_wants_to_pay], paying, emote_end,if_then[is_seated, [set[seat], go_here, play_anim[work], set[table], prop_alert]]", 
     OnFailure = "if_then[is_seated, [set[table], if_then[is_seated and prop_state = table_dirty, prop_alert]]], emote_end, go_exit,hide_actor[me], sync_group, set_all_customers[done]", 
     OnComplete = "emote_end, go_exit, hide_actor[me], sync_group, set_all_customers[done]", 
     OnServe = "go_here, activate_obj", 
     OnClean = "go_here, clean_obj", 
     OnCollect = "go_here, activate_obj", 
  }, 
  { 
     Name = "FailCraft", 
     OnStartTakeout = "go_cashier, emote_noheart[emote_wait], wait_random[5|8], emote_end, play_anim[wave], play_sound[customer_orders], service", 
     OnStart = "go_here", 
     OnArrive = "sync_group,set_state[thinking],emote_noheart[emote_wait], wait_random[5|8],sync_group,set_state[], sync_group, emote_end, play_anim[wave], wait_prop_state[table_idle], emote_end, play_sound[customer_orders], service", 
     OnPresent = "play_anim[wave]", 
     OnFullOrderDelivered = "add_patience,emote_end", 
     OnWorking = "play_prop_fx[fx_working|0], set_prop_state[table_dirty], working, stop_prop_fx[fx_working],set_prop_state[table_failed],  set_state[failed],emote_help,play_anim[failed], remove_patience, trigger_tip[tip_teach], wait_prop_state[table_teaching], add_score[10], INC_ACHIEVE_COUNTER[customers_taught],add_patience, emote_end, wait_prop_state[table_dirty], set_state[],set_customer[waiting_in_queue]", 
     OnPay = "go_cashier, play_sound[customer_wants_to_pay], paying, emote_end, if_then[is_seated, [set[seat], go_here, play_anim[work], set[table], prop_alert]]", 
     OnFailure = "if_then[state = failed, set_state[]], set[table], if_then[prop_state = table_failed, set_prop_state[table_dirty]], if_then[is_seated and prop_state = table_dirty,prop_alert], emote_end, go_exit,hide_actor[me], sync_group, set_all_customers[done]", 
     OnComplete = "emote_end, go_exit, hide_actor[me],sync_group, set_all_customers[done]", 
     OnServe = "go_here, activate_obj", 
     OnClean = "go_here, clean_obj", 
     OnCollect = "go_here, activate_obj", 
  }, 
  { 
     Name = "BasicEasel", 
     OnStartTakeout = "go_cashier, emote_noheart[emote_wait], wait_random[5|8], emote_end, play_anim[wave], play_sound[customer_orders], service", 
     OnStart = "go_here", 
     OnArrive = "sync_group, set_state[sketch],emote_noheart[emote_wait], wait_random[5|8],set_state[], sync_group, emote_end, play_anim[wave], wait_prop_state[easel_idle], emote_end, play_sound[customer_orders], service", 
     OnPresent = "play_anim[wave]", 
     OnFullOrderDelivered = "add_patience,emote_end", 
     OnWorking = "play_prop_fx[fx_painting|0], set_prop_state[easel_painting], working, stop_prop_fx[fx_painting],set_prop_state[easel_dirty]", 
     OnPay = "go_cashier, play_sound[customer_wants_to_pay], paying, emote_end, if_then[is_seated, [set[seat], go_here, play_anim[backface_paint], set[table], prop_alert]]", 
     OnFailure = "set[table], if_then[prop_state = easel_dirty, prop_alert], emote_end, go_exit, sync_group, set_all_customers[done]", 
     OnComplete = "emote_end, go_exit, sync_group, set_all_customers[done]", 
     OnServe = "go_here[0,1], activate_obj", 
     OnClean = "go_here[0,1], clean_obj", 
     OnCollect = "go_here, activate_obj", 
  }, 
  { 
     Name = "FailEasel", 
     OnStartTakeout = "go_cashier, emote_noheart[emote_wait], wait_random[5|8], emote_end, play_anim[wave], play_sound[customer_orders], service", 
     OnStart = "go_here", 
     OnArrive = "sync_group, set_state[sketch],emote_noheart[emote_wait], wait_random[5|8],set_state[], sync_group, emote_end, play_anim[wave], wait_prop_state[easel_idle], emote_end, play_sound[customer_orders], service", 
     OnPresent = "play_anim[wave]", 
     OnFullOrderDelivered = "add_patience,emote_end", 
     OnWorking = "play_prop_fx[fx_painting|0], set_prop_state[easel_dirty], working, stop_prop_fx[fx_painting],set_prop_state[easel_failed], set_state[failed], emote_help,play_anim[failed],  remove_patience, wait_prop_state[easel_teaching], add_score[10], emote_end, wait_prop_state[easel_dirty], set_state[],set_customer[waiting_in_queue]", 
     OnPay = "go_cashier,play_sound[customer_wants_to_pay], paying, emote_end, set[table], prop_alert", 
     OnFailure = "if_then[state = failed, set_state[]], if_then[prop_state = easel_failed, set_prop_state[easel_dirty]], if_then[prop_state = easel_dirty, prop_alert],emote_end, go_exit, sync_group, set_all_customers[done]", 
     OnComplete = "emote_end, go_exit, sync_group,set_all_customers[done]", 
     OnServe = "go_here[0,1], activate_obj", 
     OnClean = "go_here[0,1], clean_obj", 
     OnCollect = "go_here, activate_obj", 
  }, 
}
return CustomerLogic
-- File closed
