HarbingerOfDoom said:
Where do you modify agent_set_speed_modifier?
easiest way to do it is to tie it to a command
for example in NW there is surrender
usually it makes you slow down/ toggle walk
but i changed it to this
(try_begin),
(call_script, "script_cf_agent_is_surrendering", ":player_agent"), # is surrendering
(agent_set_animation,":player_agent","anim_cheer",1),
(try_end),
(agent_get_slot,":value",":player_agent",slot_agent_base_speed_mod),
(try_begin),
(eq,":value",100),
(assign,":value",55),
(else_try),
(assign,":value",100),
(agent_set_horse_speed_factor, ":player_agent", 100),
(try_end),
(agent_set_speed_modifier, ":player_agent", 900),
(else_try),
(eq,":action_type",player_action_surrender),
(agent_is_alive,":player_agent"),
(store_script_param, ":action", 4),
(agent_get_slot,":value",":player_agent",slot_agent_base_speed_mod),
(try_begin),
(eq,":action",music_type_start),
(agent_equip_item,":player_agent","itm_british_lifeguard_helmet_officer"),
(agent_set_animation,":player_agent","anim_surrender",1),
(assign,":value",55),
(agent_set_horse_speed_factor, ":player_agent", 55),
(else_try),
(eq,":action",music_type_stop),
(agent_set_animation,":player_agent","anim_cheer",1),
(assign,":value",100),
(agent_set_horse_speed_factor, ":player_agent", 100),
(try_end),
(agent_set_speed_modifier, ":player_agent", 900),
(try_end),
(try_end),
the underlined bit is what you need, but my point is you can basically add the agent_set_speed_modifier to any command