Galle

Lt. General
70 Badges
Apr 20, 2009
1.667
1.083
  • Hearts of Iron II: Armageddon
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Sword of the Stars II
  • Sword of the Stars
  • Sengoku
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Ancient Space
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • BATTLETECH
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Warlock 2: The Exiled
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
The Duel Engine Mk II
Generic Mod Utility
Yes, that's right, one of the Game of Thrones mod's most popular features is now available in Europe as well. After a painstaking de-Westerosification process, we're releasing the duel engine in a generic form that can be incorporated into almost any mod, or even used as a standalone minimod in and of itself.

The duel engine adds an entire new feature to Crusader Kings II - one-on-one duels between individual characters, weight based on traits including physical strength, intelligence, and mastery of swordsmanship. This demonstration module includes both the engine itself and an example duel, involving two opposing commanders on a battlefield. The version of the engine included here is significantly more advanced and better optimized than the one used in A Game of Thrones v.0.2.1, and includes an optional - though untested - flavor scheme allowing you to mark duels as either tourney jousts or battlefield duels.

Download the Duel Engine Mk II v0.2.2 HERE
Checksum: ZPBC
Compatible With: Crusader Kings II 1.06b

Credits
Lead Design and Scripter: Gregory Hayes (Galle)
Additional Design and Scripting: Ran Miller (Ogaburan)
Art: Lost to the ages, sadly; if the icon artist comes forward, I'd be happy to add them to this list
Special Thanks To: The AGOT mod team

Screenshots
View attachment c7IzZ.jpg View attachment 8q6vf.jpg

FAQ
So, I can use this in my own mod?
That's the general idea, but please make sure to credit us.

How come Character X doesn't have...
The demonstration module prioritizes compatibility over any sort of thoroughness or historical accuracy, so there are no changes to any historical characters. Feel free to give your favorites the combat traits if you want to.

How do I use the duel engine as part of an event chain in my mod?
See instructions in duel_engine_events.txt and duel_engine_output_events.txt

How can I change the formula the duel engine uses to calculate outcomes?
The event which calculates the winner of any given individual round is duel.4. Option A will be selected if the Ai determines that the first fighter (FROMFROM) wins the round, and Option B will be selected if the second fighter (FROM) wins the round. For positive factors, add a positive ai_chance modifier to Option A if FROMFROM qualifies, and a positive ai_chance modifier to Option B if FROM does. For negative factors, add a positive ai_chance modifier to Option A if FROM qualfies, and a positive ai_chance modifier to Option B if FROMFROM does.
 
  • 1
  • 1
Reactions:

Naegino

Corporal
58 Badges
Sep 16, 2011
34
5
  • Victoria 2: A House Divided
  • Crusader Kings II
  • Semper Fi
  • Europa Universalis III Complete
  • Divine Wind
  • Heir to the Throne
  • Hearts of Iron III
  • Crusader Kings II: Reapers Due
  • Magicka: Wizard Wars Founder Wizard
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Crusader Kings II: Holy Fury
  • Hearts of Iron IV: Cadet
  • Victoria 2
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Stellaris: Distant Stars
  • Stellaris: Megacorp
  • 500k Club
  • Stellaris: Necroids
  • Crusader Kings III
  • Stellaris: Federations
  • Europa Universalis IV
  • Crusader Kings III: Royal Edition
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Stellaris: Ancient Relics
  • Hearts of Iron IV: Expansion Pass
  • Europa Universalis IV: El Dorado
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Victoria: Revolutions
  • Europa Universalis III: Chronicles
  • Sword of the Stars II
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: The Republic
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: Legacy of Rome
Yes!!! I was mucking around in the AGOT files trying to do this for a personal mod of mine but it was pretty hard to "de-Westerosify" and gave up (again) about five minutes ago. You can imagine my surprise and pleasure to see that I didn't have to. Thank you very much.
 

ash001

friend&foe
10 Badges
Jun 5, 2009
796
0
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Rome Gold
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
Hey Galle,
I've sent you a PM about this...
...but thought it might be useful to ask this in public, others might be interested in the answer as well.

Hope you can help:
I'd like to add options for each Duel Round - so, for instance, on the first Duel Round, the player/AI would face the decision to go
(a) agressive
(b) traditional
(c) defensive
and these stances would affect the odds of the Duel.
Is this possible?
The reason I ask is because I remember there were issues with the MTTH and the time things were processed...

Thank you
 

Jomen

Second Lieutenant
64 Badges
Nov 26, 2008
125
0
  • Crusader Kings II
  • Europa Universalis IV: Mare Nostrum
  • Stellaris - Path to Destruction bundle
  • Victoria 2: Heart of Darkness
  • Victoria 2: A House Divided
  • Sengoku
  • Semper Fi
  • Europa Universalis: Rome
  • Europa Universalis IV: Res Publica
  • Hearts of Iron III: Their Finest Hour
  • Hearts of Iron III
  • For the Motherland
  • Europa Universalis IV: Conquest of Paradise
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Europa Universalis IV: Wealth of Nations
  • Cities in Motion 2
  • Europa Universalis IV: Art of War
  • Stellaris: Leviathans Story Pack
  • Hearts of Iron IV: Expansion Pass
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Europa Universalis IV: Rights of Man
  • Europa Universalis IV: Mandate of Heaven
  • Stellaris: Humanoids Species Pack
  • Crusader Kings Complete
  • Crusader Kings III
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Europa Universalis IV: Cradle of Civilization
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Cossacks
  • Crusader Kings II: Horse Lords
  • Europa Universalis IV: Common Sense
  • Magicka 2
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Victoria 2
  • Magicka
Hi,

I have played game of thrones and prince and the thane mod and both have a duel part. In my games , duel add a fun to battles , i can only greet you for this!

I have a something to say though. When i played GoT mod , Tywin Lannister died in a duel in battle. For those who have the books knows That he is not the kind to throw himself into duel . So what about general That prefere not to go in the Heat of battle. Because those who dont will necessary have a chance to get the coward trait. As duel event cant be avoided , you should get some options for general who prefers lead their army from behind ? ( and this not a necessarely a sign of cowardice)
 

Galle

Lt. General
70 Badges
Apr 20, 2009
1.667
1.083
  • Hearts of Iron II: Armageddon
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Sword of the Stars II
  • Sword of the Stars
  • Sengoku
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Ancient Space
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • BATTLETECH
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Warlock 2: The Exiled
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
Hey Galle,
I've sent you a PM about this...
...but thought it might be useful to ask this in public, others might be interested in the answer as well.

Hope you can help:
I'd like to add options for each Duel Round - so, for instance, on the first Duel Round, the player/AI would face the decision to go
(a) agressive
(b) traditional
(c) defensive
and these stances would affect the odds of the Duel.
Is this possible?
The reason I ask is because I remember there were issues with the MTTH and the time things were processed...

Thank you

This should easily be possible. The Mk II doesn't use MTTH, which means those problems are no longer an issue - instead, it uses ai_chance for its RNG.

If I were attempting to add combat options to the duel engine, I'd add the options to events duel.2 and duel.3, and have the chosen option set a character flag that was used to weight the odds by duel.4 (determining the winner), and possibly duel.7 (determining the severity of the round's outcome).
 

chatnoir17

CK2 NMIH Project Lead
98 Badges
Sep 17, 2009
5.043
192
  • Cities: Skylines
  • Divine Wind
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Diplomacy
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Nemesis
  • Age of Wonders III
  • BATTLETECH
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
May I borrow this wonderful idea for my Sengoku mod? I know the codes of the both games are different, but I would like to try to adjust the content to MIH.
 

Galle

Lt. General
70 Badges
Apr 20, 2009
1.667
1.083
  • Hearts of Iron II: Armageddon
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Tyranny - Tales from the Tiers
  • Sword of the Stars II
  • Sword of the Stars
  • Sengoku
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • Europa Universalis III Complete
  • Heir to the Throne
  • Hearts of Iron III
  • Europa Universalis III Complete
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Ancient Space
  • Tyranny - Bastards Wound
  • Age of Wonders III
  • BATTLETECH
  • Crusader Kings III
  • Crusader Kings II: Monks and Mystics
  • Stellaris: Leviathans Story Pack
  • Stellaris: Digital Anniversary Edition
  • Tyranny: Gold Edition
  • Tyranny: Archon Edition
  • Tyranny: Archon Edition
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Stellaris
  • Crusader Kings II: Conclave
  • Crusader Kings II: Horse Lords
  • Pillars of Eternity
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Pre-order
  • Crusader Kings II: Holy Knight (pre-order)
  • 500k Club
  • Warlock 2: The Exiled
  • Warlock: Master of the Arcane
  • Victoria 2
  • Europa Universalis III Complete
May I borrow this wonderful idea for my Sengoku mod? I know the codes of the both games are different, but I would like to try to adjust the content to MIH.

I am one hundred percent okay with this, provided the AGOT team, Ogaburan, and I are credited for whatever you do use. CK2 and Sengoku's code is close enough, and the Duel Engine uses little enough of CK2's features, that converting it shouldn't be very hard.
 

chatnoir17

CK2 NMIH Project Lead
98 Badges
Sep 17, 2009
5.043
192
  • Cities: Skylines
  • Divine Wind
  • Sengoku
  • Europa Universalis IV: Call to arms event
  • Crusader Kings II
  • Victoria 2: A House Divided
  • Stellaris - Path to Destruction bundle
  • Diplomacy
  • Hearts of Iron IV: Death or Dishonor
  • Stellaris: Nemesis
  • Age of Wonders III
  • BATTLETECH
  • Cities: Skylines - Green Cities
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Europa Universalis IV: Rule Britannia
  • BATTLETECH - Digital Deluxe Edition
  • Cities: Skylines - Parklife
  • Hearts of Iron IV: Expansion Pass
  • Stellaris: Distant Stars
  • Europa Universalis IV: Dharma
  • Crusader Kings II: Holy Fury
  • Europa Universalis IV: Golden Century
  • Imperator: Rome Deluxe Edition
  • Cities: Skylines - Campus
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Stellaris: Galaxy Edition
  • Europa Universalis IV
  • Europa Universalis III Complete
  • Europa Universalis III Complete
  • Victoria 2
  • 500k Club
  • Europa Universalis IV: El Dorado
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Europa Universalis IV: Mandate of Heaven
  • Hearts of Iron IV Sign-up
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV: Colonel
  • Europa Universalis IV: Rights of Man
  • Stellaris: Digital Anniversary Edition
  • Cities: Skylines - Natural Disasters
  • Hearts of Iron IV: Together for Victory
  • Crusader Kings II: Monks and Mystics
  • Steel Division: Normandy 44
I think galle is always ok (refer to the FAQ) good luck to add that in sengoku

Yeah, I just prefer a direct permission from the creators, since as a modder I would like to know where my work is played and used.

I am one hundred percent okay with this, provided the AGOT team, Ogaburan, and I are credited for whatever you do use. CK2 and Sengoku's code is close enough, and the Duel Engine uses little enough of CK2's features, that converting it shouldn't be very hard.

Thanks. CK2 has more variety in modding so I might have to simplify your coding in Sengoku, but otherwise the concept of this Duel Mod will work fine for the Japanese middle ages.
 

GenghisCan

Sergeant
26 Badges
Aug 14, 2010
86
0
  • Sengoku
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Sword of Islam
  • Europa Universalis III
  • Europa Universalis III Complete
  • Divine Wind
  • Rome Gold
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis: Rome
  • March of the Eagles
  • Crusader Kings II
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Way of Life
  • Europa Universalis III Complete
  • Stellaris
  • Imperator: Rome
  • Crusader Kings III
  • 500k Club
  • Rome: Vae Victis
  • Victoria 2
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Crusader Kings II: Charlemagne
Is this compatible with v 1.07?
 

Alratan

First Lieutenant
84 Badges
Jun 10, 2012
289
106
  • Europa Universalis IV
  • Europa Universalis 4: Emperor
  • Crusader Kings III
  • Stellaris: Federations
  • Imperator: Rome
  • Imperator: Rome Deluxe Edition
  • Crusader Kings II
  • Europa Universalis IV: Golden Century
  • Pillars of Eternity
  • Magicka
  • Age of Wonders: Shadow Magic
  • Age of Wonders III
  • Tyranny: Gold Edition
  • Stellaris Sign-up
  • Shadowrun: Dragonfall
  • Prison Architect
  • Imperator: Rome Sign Up
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Ancient Relics
  • Mount & Blade: Warband
  • Stellaris: Galaxy Edition
  • 500k Club
Are there any plans to release an independent version of the tournament system used in the AGoT mod, as well? That would work especially well in Europe given how lackluster the current Grand Tournament decisions are.