about abilities : WARCRY

Users who are viewing this thread

michmuch

Regular
sorry it that has already asked (and for my poor english :mrgreen:)
I m looking to use warcry ability but :

in the mission_templates.py :


Code:
###WARCRY

(0, 0, 60, [(key_clicked, key_g),(neg|main_hero_fallen)
   
    ], [
                 
(play_sound,"snd_man_victory"),
             
      (get_player_agent_no, ":player_agent"),
      (agent_get_position, pos1, ":player_agent"),
     (store_character_level,":level","trp_player"),
[u][b]     (agent_set_animation, ":player_agent", "anim_cheer"),[/b][/u]
      (val_mul,":level",2),
     (val_add,":level",1),

   (try_for_agents,":agent"),
      (set_fixed_point_multiplier, 1),
         (agent_is_alive,":agent"),
         (agent_is_human,":agent"),
       (neg|agent_is_ally,":agent"),
      
       (agent_get_troop_id,":trp_agent", ":agent"),
       (store_character_level,":troop_level",":trp_agent"),
       (ge,":level",":troop_level"),
       (agent_get_position, pos2, ":agent"),
       (get_distance_between_positions,":distance",pos2,pos1),
       (lt,":distance",500),
      
       (set_fixed_point_multiplier, 10),
      
       (position_get_x,":player_x",pos1),
       (position_get_y,":player_y",pos1),
       (position_get_x,":enemy_x",pos2),
       (position_get_y,":enemy_y",pos2),

       (store_sub,":difference_x",":enemy_x",":player_x"),
       (val_mul,":difference_x",12),

       (store_sub,":difference_y",":enemy_y",":player_y"),
       (val_mul,":difference_y",12),
      
       (val_add,":enemy_x",":difference_x"),
       (val_add,":enemy_y",":difference_y"),
      
       (position_set_x,pos2,":enemy_x"),
       (position_set_y,pos2,":enemy_y"),
      
       (agent_set_scripted_destination,":agent",pos2,1),
   (try_end),   

   (display_message,"@You unleash a fearsome cry!",0x6495ed),
        (set_fixed_point_multiplier, 1),
   (call_script, "script_focus_exp_penalty"),   
         ]),
   
   (0, 5, 60, [(key_clicked, key_g),(neg|main_hero_fallen)
   
    ], [
                 
   #(display_message,"@Enemies regain their courage!",0x6495ed),
   (try_for_agents,":agent"),
    (agent_is_alive,":agent"),
         (agent_is_human,":agent"),
       (neg|agent_is_ally,":agent"),
(agent_clear_scripted_mode,":agent"),
   (try_end),   

         ]),   
   (0, 7, 60, [(key_clicked, key_g),(neg|main_hero_fallen)
   
    ], [
                 
   (try_for_agents,":agent"),
    (agent_is_alive,":agent"),
         (agent_is_human,":agent"),
       (neg|agent_is_ally,":agent"),
(agent_clear_scripted_mode,":agent"),
   (try_end),   

         ]),    

###Warcry end

I active the animation  (agent_set_animation, ":player_agent", "anim_cheer"), by deleting the #. After, in game, all works fine when I am on my feet. But if I try to unleash warcry on horse, my player get down and mix body with the horse :roll:

I ve tried to resolve this by adding flags acf_enforce_lowerbody and acf_synch_with_horse to the cheer animation... but it's already the same result :(. I would make warcry while on a horse but without the mess with the bodies

If somoene has a better idea such mine , can he tell me. It ll be really appreciated. Thx. :D
 
It has to be there somewhere, but we cannot find it.  That's why it was commented out.  Seems that there is a flag somewhere that needs to be tripped but there is no indication as to what it is. 
 
Back
Top Bottom