CoreUnits.xml is hard to decode

Been trying to level out those hired heroes, but there is no explicit level for any of them. I suspect that the Spawn Rating determines what level a unit is and which tech unlocks the unit for hire, but not all units have a Spawn Rating. In place of that some have a "HasEssence" tag, which as you might remember is from WoM. Can anyone think of a way to see the level of a unit and modify it or are we stuck with observing every hero and modding based on observation?

3,345 views 5 replies
Reply #1 Top

I perused the coreunits.xml and I agree with your assessment about the spawn rating. I looked at several of my games and it appears that the spawn rating is as follows

spawn rating 1 : level 1 hero

spawn rating 2 : level 3 hero

spawn rating 3 : level 5 hero

spawn rating 4 : level 7 hero

spawn rating 5 : level 9 hero

I looked at each of my maps (cheating of course) and could not find anybody with the hasessence tag. I wonder if you change this to spawnrating # if they will show up on the map.

Reply #2 Top

I would hope that at some point the unit's level will be defined in the xml more clearly. Maybe when they do a balance pass on heroes again. They have not been touched much over the last beta cycles. I understand why. Heroes take up about 8,000 lines of code. I am currently going through each one and giving them armor, weapons, a good path, and some unique proficiencies.

 

Gonna have to go into hardcore mod mode:

 

*Activate beer, coffee, carrots, and Once More With Feeling (BtVS:S06E07) on repeat*

:ninja:

Reply #3 Top

Maybe use sinilar stuff to Adventurer to hand out extra levels?

Reply #4 Top

If your intent is to change their first levels, you can do so from their spawners in coregoodiehuts.xml.

          <UnitInstance>
                <UnitSubclassType>NPCChamp</UnitSubclassType>
                <RandomNPCSpawnRating>3</RandomNPCSpawnRating>
                <RandomNPCAllegiance>Empire</RandomNPCAllegiance>
                <Level>5</Level>
            </UnitInstance>

           <UnitInstance>
                <UnitSubclassType>NPCChamp</UnitSubclassType>
                <RandomNPCSpawnRating>4</RandomNPCSpawnRating>
                <RandomNPCAllegiance>Empire</RandomNPCAllegiance>
                <Level>7</Level>
            </UnitInstance>

and so on.

Reply #5 Top

:omg:

 

The goodiehut denotes the unit level? Well I'll be... 

 

This changes everything. I am just about half done with the traits. Nice to see there is some logic to the spawn ratings so all this work is not useless. Thanks for the info.