Modifying Diplomatic Modifiers

So, it's been brought up in the General forum that it would be cool (and sensible) if the NPC factions took into account your magical knowledge much like the size of your military (since you can easily destroy people with magic as fast or faster than with an army).

I peeked around in some of the XML files and found:  CoreAIDefs.xml (big thanks to Dioxus for laying some of the XML files out for the community).

In here, there is a set of nodes like this:

<AIRelationsWeight InternalName="MutualFamily">
  <Description>We have mutual family</Description>
  <Icon>Event_MeetFaction.png</Icon>
  <Weight>2.0</Weight>
  </AIRelationsWeight>

Seems pretty self-explanatory.  However, here's the question I have for Stardock / anyone whose been pretty involved with modding so far:

Is there a list of InternalName variables that we can use for various XML attributes?  What I want to do is something like this:

<AIRelationsWeight InternalName="MuchStrongerMagicThanYou">
  <Description>We have mutual family</Description>
  <Icon>Event_MeetFaction.png</Icon>
<DifferenceMaxValue>4</DifferenceMaxValue>
  <Weight>2.0</Weight>
  </AIRelationsWeight>

The diplomacy modification will have several levels:

  1. Stronger - NPC is at least 1 spell level above you - Weight -1
  2. Much Stronger - NPC is at least 3 spell levels above you - Weight -3
  3. Vastly Stronger - NPC is at least 5 spell levels above you - Weight -5
  4. Weaker - You are at least 1 spell level above NPC - Weight 1
  5. Much Weaker -  You are at least 3 spell levels above NPC - Weight 3
  6. Vastly Weaker -  You are at least 5 spell levels above NPC - Weight 5

Thanks!

 

3,401 views 2 replies
Reply #1 Top

From the exe (some may not work, some may not be active)

TonDiplomaticCapital

LotDiplomaticCapital

SomeDiplomaticCapital

DifferentAllegience.SameAllegience

TreatiesTogether

MutualGrandChildren

MutualFamily

MyChildDiedInYourCare

YouKilledMySpouse

YouControlAllTheShards

YouAreDominatingMe

WeAreAtWar

VastlyWeakerMilitaryThanYou

MuchWeakerMilitaryThanYou

WeakerMilitaryThanYou

VastlyStrongerMilitaryThanYou

MuchStrongerMilitaryThanYou

StrongerMilitaryThanYou

Reply #2 Top

I guess I phrased that question incorrectly...

I'm looking for values that aren't currently available in the XML file.

I've reposted this question on the following post since it seems to be the same thin:

https://forums.elementalgame.com/394705