Please help with the health regeneration script. I can't figure out where to prescribe values in mission_templates.txt

Users who are viewing this thread

Unkreed

Recruit
Hello! Please help me, I can’t figure it out, I installed the module system, inserted the script into "module_mission_templates.py", but I can’t understand where to write these values "common_battle_tab_press, regeneration," in the "mission_templates.txt" file. I already entered the values, but nothing comes out, the game crashes. Please tell me what to do next?

Script found here: https://forums.taleworlds.com/index.php?threads/health-regeneration.65521/

Script:
regeneration = (1, 0, 1,[(neg|main_hero_fallen)], [
(get_player_agent_no, ":player_agent"),
(store_agent_hit_points,":life",":player_agent",1),
(val_add,":life",1),
(agent_set_hit_points,":player_agent",":life",1),
])

then added to all necessary missions like this:

common_battle_tab_press,
regeneration,
 
Last edited:
Going step by step:

1) Have you managed to set up the Native Module System, so that it compiles fine (without you making any changes in the code)?

2) If yes, where did you add your script? Does it compile fine if you just add your script?

3) If yes, where did you add the lines for the mission templates?
 
Back
Top Bottom