• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
Showing developer posts only. Show all posts in this thread.

LennartGS

Managing / Game Director @ Triumph
Paradox Staff
16 Badges
Jun 12, 2018
369
747
  • Crusader Kings II
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Gettysburg
  • Heir to the Throne
  • Magicka
  • Naval War: Arctic Circle
  • Sword of the Stars II
  • Warlock: Master of the Arcane
  • Warlock 2: The Exiled
  • Stellaris
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Galaxy Edition
  • Prison Architect
Hi Gloweye, perhaps in the future. AoW AI is written in C++ and programmer led, for speed, debugging and legacy reasons. Maybe its possible make certain AI elements such as spell casting controlled by scripts.
 

Chaingun

Field Marshal
47 Badges
Jul 15, 2002
3.796
2.513
  • Knights of Honor
  • 500k Club
  • Europa Universalis III: Collection
  • Europa Universalis IV: El Dorado
  • Magicka: Wizard Wars Founder Wizard
  • Mount & Blade: Warband
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: Common Sense
  • Europa Universalis IV: Cossacks
  • Europa Universalis IV: Mare Nostrum
  • Europa Universalis IV: Rights of Man
  • Steel Division: Normandy 44
  • War of the Vikings
  • Europa Universalis IV: Third Rome
  • BATTLETECH
  • Surviving Mars
  • Age of Wonders III
  • Europa Universalis IV: Rule Britannia
  • Europa Universalis IV: Dharma
  • Imperator: Rome Deluxe Edition
  • Imperator: Rome
  • Prison Architect
  • Imperator: Rome - Magna Graecia
  • Crusader Kings III
  • Europa Universalis III Complete
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Hearts of Iron III
  • Heir to the Throne
  • Crusader Kings II
  • Magicka
  • Europa Universalis III Complete
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Supreme Ruler 2020
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • Rome: Vae Victis
As you know we do have weight/modifiers/"triggers" AI on e.g. EU4 but it's usually not terribly amazing (an understatement), though indeed modders end up tweaking it way better than the scripted developer AI in the long run.

The main issue here is always the interface between C++ and whatever scripting/data language is used. There's no solution that works best for multiple objectives in software engineering, and it turns out that very moddable AI in an otherwise closed game (where gameplay code resides in C++) majorly adversely affects AI programmer agility and productivity, as well as quite often performance. Sometimes certain details can be put in script because it's convenient to do so, and at other times (more depressingly) because other moddable parts of the game makes having any sort of specific assumptions on the gameplay impossible from AI code, usually leading to poor AI.

Anyway sometimes you're in luck as a modder and it was easier for the developer to put AI in script than not. :)
 
Last edited: