Sparring Practice

Users who are viewing this thread

Elmetiacos

Knight
Sparring Practice at the training ground to improve low level troops now appears to cause lasting injuries making more than one round of sparring impossible. Is this intentional or a bug?
 
No, it is not a bug, it is intentional in 4.3+ for 1.174.
In  the "training_ground_training" mission in "module_mission_templates.py" you can see Somebody's comments. I tried removing these parts of code and injuries are not permanent any more.

  #SB : wound troops and heroes
      (ti_on_agent_killed_or_wounded, 0, 0, [
        (eq, "$g_mt_mode", ctm_melee),
        ],
      [
      (store_trigger_param_1, ":agent_no"),
      (store_trigger_param_2, ":killer"),
      (agent_get_troop_id, ":troop_no", ":agent_no"),
      #yes, there's a chance that the highest skill troop is the one getting injured, but w/e
      (party_get_skill_level, ":first_aid", "p_main_party", "skl_first_aid"),
      (val_mul, ":first_aid", 5), #as per skill description
      (val_add, ":first_aid", 100),
      (try_begin),
        (troop_is_hero, ":troop_no"),
        (store_troop_health, ":health", ":troop_no", 1), #this is already deducted
        (val_mul, ":health", ":first_aid"),
        (val_div, ":health", 100),
        (troop_set_health, ":troop_no", ":health", 1),
      (else_try), #regular troops
        # (val_add, ":first_aid", 100),
        (store_random_in_range, ":random_no", 0, ":first_aid"),
        (lt, ":random_no", 25),
        (party_wound_members, "p_main_party", ":troop_no", 1),
      (try_end),
     
      (try_begin),
        (get_player_agent_no, ":player_agent"),
        (store_trigger_param_2, ":killer"),
        (eq, ":player_agent", ":killer"),
        (call_script, "script_agents_cheer_during_training"),
      (try_end),
     
      ]),

(call_script, "script_troop_set_training_health_from_agent"), #SB : store health
 
Back
Top Bottom