[LSP] Tavern Animation Pack

Michadr

Grandmaster Knight
M&BWBVC
Best answers
0
Cozur said:
Getting this when compiling, am I the only one?

Code:
WARNING: Local variable never used: bard, at: 0
I had a good compile. Might have just missed a code somewhere...
 

Slawomir of Aaarrghh

Grandmaster Knight
M&BWBWF&SNWVC
Best answers
0
Cozur said:
Getting this when compiling, am I the only one?

Code:
WARNING: Local variable never used: bard, at: 0
You either missed some code in game_menus, or used the part posted by Somebody (he removed the random bards).
 

Samdomanld

Baron
Best answers
0
This code must be where?
Code:
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),
	],[])
 

Michadr

Grandmaster Knight
M&BWBVC
Best answers
0
Samdomanld said:
Yes, I know but I don't know is where.
In your compile error it says line 14538... i suggest checking out that line to see if there is anything wrong with it.
 
Best answers
0
that's probably the last line. in that case you've probably missed out a bracket somewhere. notepad++ highlights paired brackets, so by clicking the first bracket (or the last) and scrolling to see which one it's paired with is a quick way to find the problem area.
 

Somebody

Baron
WBWF&S
Best answers
0
There is no trigger for getting back up, you're not supposed to interact with the folk sitting down lest you suffer paralysis like they did.
Speaking of which, it's hilarious to watch them sip nonchalantly when the player runs into a drunkard or assassin in the taverns.
 

cwr

Count
M&BWB
Best answers
0
Might this interfere with this OSP script from HokieBT?
Code:
  ("setup_tavern_brawl",
   [   
		(set_party_battle_mode),
		(get_player_agent_no, ":player_agent"),
		(try_for_agents, ":cur_agent"),
			(neq, ":cur_agent", ":player_agent"),
			(store_random_in_range, ":team", 1, 6),	#use team 1-5 for tavern brawlers
			(agent_set_team, ":cur_agent", ":team"),
			(agent_clear_scripted_mode, ":cur_agent"),	#may not be necessary for tavern?
			(agent_set_speed_limit, ":cur_agent", 50),	#may not be necessary for tavern?
		(try_end),
(music_set_situation, mtf_sit_fight),
		(play_track, "track_tavern_fight", 2),
   ]),
 

waltshumate

Recruit
Best answers
0
These animations are wonderful.  I am using them in a new scene but how do you get someone to stand up after using them.
I have tried
                                  (agent_set_stand_animation, ":cur_agent", anim_stand, 0),
                                    (agent_set_animation, ":cur_agent", anim_stand, 0),
and
                                  (agent_set_stand_animation, ":cur_agent", anim_crouch_stand, 0),
                                    (agent_set_animation, ":cur_agent", anim_crouch_to_stand, 0),
But it does not seem to work.

 

Somebody

Baron
WBWF&S
Best answers
0
The sitting animation loop has the same priority as the death animation, meaning any animation you normally play after that point will be useless. Modify the animation priorities and also make sure to use agent_set_animation_progress as well.
 

waltshumate

Recruit
Best answers
0
Somebody said:
The sitting animation loop has the same priority as the death animation, meaning any animation you normally play after that point will be useless. Modify the animation priorities and also make sure to use agent_set_animation_progress as well.
That did the trick thanks.
 

Jarvisimo

Grandmaster Knight
Best answers
0
This works beautifully! However, I am getting the error "Incorrect skeleton type for anim 553" every time I enter a scene where the player (or anyone else for that matter) is riding a horse. What cause, how fix?

Hoping somebody can help me!
 
Top