Change animation on horse

Users who are viewing this thread

Has_an

Squire
I want to change animation on horse, but only for specific horse.
So I write this:
Code:
 (0, 0, 0, [],
	[
		(try_for_agents, ":agent"),
			(agent_is_alive,":agent"),
			(agent_is_human,":agent"),
           (agent_get_item_id, ":item_id", ":agent"),
             (eq, ":item_id", "itm_practice_horse"),
            (agent_set_walk_forward_animation, ":agent", "anim_walk_forward"),
   
	(try_end),
                       ]),

but don´t work...
where is mistake or how to make it?
 
Oh.  I misunderstood, I thought you wanted to change the horse's animation  :oops:

If the Agent's on a horse, it won't use a different walk.  It's on a horse, that uses ride_0, etc.
 
Has_an said:
I want to change animation on horse, but only for specific horse.
So I write this:
Code:
 (0, 0, 0, [],
	[
		(try_for_agents, ":agent"),
			(agent_is_alive,":agent"),
			(agent_is_human,":agent"),
           (agent_get_item_id, ":item_id", ":agent"),
             (eq, ":item_id", "itm_practice_horse"),
            (agent_set_walk_forward_animation, ":agent", "anim_walk_forward"),
   
	(try_end),
                       ]),

but don´t work...
where is mistake or how to make it?

So far your script reads like so:
-Cycle through all agents
-Check that agent is alive
-Check that the alive agent is human
-Get the item ID for the alive, human agent
-Check if the item ID for the alive, human agent is the same as a practice horse (this must fail)
...and nothing else happens, because the above will always fail.

Bottom line, you are missing a line of code to get the horse that the agent is riding
Code:
(try_for_agents, ":agent"),
     (agent_is_alive, ":agent"),
     (agent_is_human, ":agent"),
     (agent_get_horse, ":horse", ":agent"),
     (gt, ":horse", 0),
     (agent_get_item_id, ":item_id", ":horse"),
     (eq, ":item_id", "itm_practice_horse"),
     (agent_set_walk_forward_animation, ":agent", "anim_walk_forward"),
(try_end),

I can't speak to if you've adjusted the correct animations, but that should at least get you to identifying the horse correctly.
 
Back
Top Bottom