The Duel Engine adds functional duels handled by the events system to Crusader Kings 2.
Get it on the STEAM WORKSHOP.
(manual download below)
Latest changelog.
The Duel Engine was originally coded by Galle and others of the GoT team for the Game of Thrones Mod. With their permission I have updated the port to Crusader Kings 2 for the current version and added many features.
Features:
* Fighters on the battlefield have a chance of singling each other out for a duel, which is handled by events.
Before the duel starts, both opponents have a chance to back down. If they both accept to fight the actual duel starts.
Duels last for one or more rounds, and can end in two outcomes:
1) the loser yields to the winner and is captured (taken prisoner)
2) the loser is killed by the winner
During each round, both fighters risk getting hurt or killed. People with high martial skill or fighting skill are more likely to win, but there are numerous traits and other things taken into account. The system is still somewhat random, but not utterly so.
* The following event series also use the Duel Engine instead of random outcome duels:
*) Two vassals duel at their liege's feast (feast_events.txt)
*) You ask your liege's permission to engage your fierce rival into a duel (friends_rivals_events.txt)
*) You accuse your rival of cheating at a tournament (friends_rivals_events.txt)
*) Regent is challenged by another courtier for the regency (regency_events.txt)
For these combats, so-called friendly duels are possible, which will not necessarily end in death. It is also possible for the loser to stop the fight by yielding if he is wounded, maimed, or "afraid" (weighted for the AI, an option for the player).
The duel engine seemlessly takes over the original event chain and then returns to the normal event chain once the winner has been determined.
The player nearly always has a choice on what to do, the AI is scripted in the event series to act somewhat logically. A weak character going up against a strong one will usually try to yield; a rival will try to kill his rival; two friends or family fighting will try to avoid death; etc..
View attachment c7IzZ.jpgView attachment 8q6vf.jpg
Known issues:
None
Mod compatibility:
If you're playing without other mods, just download NewDuelEngine.zip and unzip in the MOD folder, then select in the launcher.
If you're playing with HIP do not use this with the PB module, PB has a version of the NDE integrated.
For other mods: while most of the Duel Engine is more-or-less self contained, several vanilla files had to be changed to get it to work.
The most likely conflict will be in common\on_actions (battlefield duels).
I will gladly lend support to making a compatible version of the DE for any mods that require it, as a mod author just let me know if you want to do the compatibility yourself or if you want me to keep it updated.
Mods that have (a form of) the Duel Engine integrated:
*) A Game of Thrones: the original! Listed here simply for clarity, my code is based on their work, not the other way around.
*) ProjectBalance
*) Lux Invicta
Thanks to:
Galle and Knuckey from the GoT team, for letting me release this and for the original work.
(rest in no particular order)
meneth, bugfixing and improvements (too many to count)
richvh, for some good suggestions and bug hunting
gedsaro, for tracking down the cause of a very nasty bug that stopped the DE from working correctly.
Ivan37, for updated French localization
ash001, for nice event pictures
lutharien, for bug hunting and suggestions for the jousts
AnaxXiphos, neat new images for the combat traits
zijlstark for the CTA advancement system
many others for helping me bugfix
Please see the original mod for more info and usage instructions.
Get it on the STEAM WORKSHOP.
(manual download below)
Latest changelog.
The Duel Engine was originally coded by Galle and others of the GoT team for the Game of Thrones Mod. With their permission I have updated the port to Crusader Kings 2 for the current version and added many features.
Features:
* Fighters on the battlefield have a chance of singling each other out for a duel, which is handled by events.
Before the duel starts, both opponents have a chance to back down. If they both accept to fight the actual duel starts.
Duels last for one or more rounds, and can end in two outcomes:
1) the loser yields to the winner and is captured (taken prisoner)
2) the loser is killed by the winner
During each round, both fighters risk getting hurt or killed. People with high martial skill or fighting skill are more likely to win, but there are numerous traits and other things taken into account. The system is still somewhat random, but not utterly so.
* The following event series also use the Duel Engine instead of random outcome duels:
*) Two vassals duel at their liege's feast (feast_events.txt)
*) You ask your liege's permission to engage your fierce rival into a duel (friends_rivals_events.txt)
*) You accuse your rival of cheating at a tournament (friends_rivals_events.txt)
*) Regent is challenged by another courtier for the regency (regency_events.txt)
For these combats, so-called friendly duels are possible, which will not necessarily end in death. It is also possible for the loser to stop the fight by yielding if he is wounded, maimed, or "afraid" (weighted for the AI, an option for the player).
The duel engine seemlessly takes over the original event chain and then returns to the normal event chain once the winner has been determined.
The player nearly always has a choice on what to do, the AI is scripted in the event series to act somewhat logically. A weak character going up against a strong one will usually try to yield; a rival will try to kill his rival; two friends or family fighting will try to avoid death; etc..
View attachment c7IzZ.jpgView attachment 8q6vf.jpg
Known issues:
None
Mod compatibility:
If you're playing without other mods, just download NewDuelEngine.zip and unzip in the MOD folder, then select in the launcher.
If you're playing with HIP do not use this with the PB module, PB has a version of the NDE integrated.
For other mods: while most of the Duel Engine is more-or-less self contained, several vanilla files had to be changed to get it to work.
The most likely conflict will be in common\on_actions (battlefield duels).
I will gladly lend support to making a compatible version of the DE for any mods that require it, as a mod author just let me know if you want to do the compatibility yourself or if you want me to keep it updated.
Mods that have (a form of) the Duel Engine integrated:
*) A Game of Thrones: the original! Listed here simply for clarity, my code is based on their work, not the other way around.
*) ProjectBalance
*) Lux Invicta
Thanks to:
Galle and Knuckey from the GoT team, for letting me release this and for the original work.
(rest in no particular order)
meneth, bugfixing and improvements (too many to count)
richvh, for some good suggestions and bug hunting
gedsaro, for tracking down the cause of a very nasty bug that stopped the DE from working correctly.
Ivan37, for updated French localization
ash001, for nice event pictures
lutharien, for bug hunting and suggestions for the jousts
AnaxXiphos, neat new images for the combat traits
zijlstark for the CTA advancement system
many others for helping me bugfix
Please see the original mod for more info and usage instructions.
Attachments
Last edited: