dedal_tavern_animations = (
ti_on_agent_spawn,1,0,[
(eq, "$talk_context", tc_tavern_talk),
(store_trigger_param_1,":agent"),
(agent_get_troop_id,":troop",":agent"),
(try_begin),
(is_between,":troop","trp_musican_male","trp_musicans_end"),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_lutnia"),
(agent_set_stand_animation, ":agent", "anim_lute_sitting"),
(agent_set_animation, ":agent", "anim_lute_sitting"),
(agent_play_sound,":agent","snd_dedal_tavern_lute"),
(else_try),
(agent_has_item_equipped,":agent","itm_dedal_lira"),
(agent_set_stand_animation, ":agent", "anim_lyre_sitting"),
(agent_set_animation, ":agent", "anim_lyre_sitting"),
(agent_play_sound,":agent","snd_dedal_tavern_lyre"),
(try_end),
(store_random_in_range,":r",0,300),
(agent_set_animation_progress,":agent",":r"),
(else_try),
(is_between,":troop",tavern_minstrels_begin,tavern_minstrels_end),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_lutnia"),
(agent_set_stand_animation, ":agent", "anim_lute_standing"),
(agent_set_animation, ":agent", "anim_lute_standing"),
(agent_play_sound,":agent","snd_dedal_tavern_lute"),
(else_try),
(agent_has_item_equipped,":agent","itm_dedal_lira"),
(agent_set_stand_animation, ":agent", "anim_lyre_standing"),
(agent_set_animation, ":agent", "anim_lyre_standing"),
(agent_play_sound,":agent","snd_dedal_tavern_lyre"),
(try_end),
(store_random_in_range,":r",0,300),
(agent_set_animation_progress,":agent",":r"),
(else_try),
(is_between,":troop",walkers_begin,walkers_end),
(try_begin),
(agent_has_item_equipped,":agent","itm_dedal_kufel"),
(agent_set_stand_animation, ":agent", "anim_sitting_drinking_low"),
(agent_set_animation, ":agent", "anim_sitting_drinking_low"),
(store_random_in_range,":r",0,300),
(else_try),
(agent_set_stand_animation, ":agent", "anim_sitting_low"),
(agent_set_animation, ":agent", "anim_sitting_low"),
(store_random_in_range,":r",0,300),
(try_end),
(agent_set_animation_progress,":agent",":r"),
(try_end),
],[])