Download Source code for Battle Time
WARNING: This is for modders only. If you want to add this to any other mod you will also need the source code for that mod.
This source code is OSP, if you want to use it, don't ask permission, just give proper credit and let me know if you fix any bugs.
The source for v1 is also included for interested modders because it is designed quite differently. I do not recommend using v1 anymore, because storing values in high numbered registers can cause crashes. Version 1 uses some code from rubik for his python script to get item difficulties.
To add Battle Time to your mod:
1. Copy the 3 extra module files (these only include code for Battle Time):
module_coop_mission_templates.py
module_coop_presentations.py
module_coop_scripts.py
2. Search all files for #COOP BEGIN
3. Copy the parts from #COOP BEGIN to #COOP END into the corresponding module files
4. Download and install the Warband Script Enhancer, and paste the header_operations_addon.py file at the end of your header_operations.py
5. Copy the SceneObj folder to your mod (this overwrites scn_lair_steppe_bandits.sco to fix the ai mesh)
6. In your mod's module.ini change damage_interrupt_attack_threshold_mp = 3.0
7. If you don't want the player's gold display in MP mode, copy game_variables.txt to your mod folder