[Question] Is there a way to put Champions and / or Monsters in formation ? (Squad/Company)

Trying to create som custom npc stuff, but just cant find out how to put units in formation, anyone know?

[Edit: This is about putting units in squads or troops, not placement in tactical battle or on a tile, sorry if i made this unclear]

 

3,237 views 6 replies
Reply #1 Top

I second this - but for a different reason maybe...   It doesn't make any sense that when I enter a tactical battle, the units are randomly distributed.  Sometimes in absurd ways, although I do note the champions tend are usually behind the other units.

 

Shouldn't we be able to pre-organize our the order of an army's units, at least when we are the attacker?  Maybe it makes sense for it to be random when another army is attacking you, but certainly not when I swoop down to ambush someone...

 

 

Reply #2 Top

This should be possible but it really depends on what you mean by put them into formations. There are two different things you may desire to have. The first is an increase in troop size, ie parties, raids, companies, etc., which would give you the ability to have multiple units in a single unit. Alot of this code is in coreunitgroupingtypes. The second is how groups are displayed which is done in coreformations.

Reply #3 Top

I have been trying to modify this

  <UnitGroupingType InternalName="UnitGroupingType_Group">
    <DisplayName>Group</DisplayName>
    <TroopCount>3</TroopCount>
    <IconFile>Party.png</IconFile>

    <BaseTurnsToTrain>6</BaseTurnsToTrain>
    <WageMultiplier>3.0</WageMultiplier>

    <PewterStandModel>Gfx//HKB//Stands//Stand_Square_01.hkb</PewterStandModel>
    <Prereq>
      <Type>Tech</Type>
      <Target>Player</Target>
      <Attribute>Armies_Trogs</Attribute>
      <Value>0</Value>
    </Prereq>
  </UnitGroupingType>

But .. not been able to have 1 champion and 2 darklings in such a group

Im not very steady with xml, so i would appreciate help :)

 

Reply #4 Top

I hope we can figure out a way to do this sometime. It would be great to be able to have champions lead units, especially if the Champions could give a bonus based on abilities or stats. This would increase the survivability of champions and help balance them.

Reply #5 Top

OK, I am going to teach yall something about unit groupings, modifying the unit groupings is kind of a pain in the ass. Since alot of this is preset in the UI, it is really hard to expand the number of unit groupings. On top of this, the unit groupings xml file is set to standalone and will basically override any changes you try to make in a very bizarre way. The best way to mod this functionality is to directly modify the core file, which I know is not good for realeasable mods.


EDIT: After talking with Cari_Elf, I have been informed that some parts of the system do not check adequately for updates. I had previously believed that the standalone tag was the reason, but nope just some wackiness.

Reply #6 Top

Not really trying to change anything, just to put 3 darklings or any unit in a Troop/Squad, then spawn them with the <NPCPartyMember>Unitname</NPCPartyMember> so they join a ncp champion, but i cannot find the code that makes it so.

What i really want is to add one champion and 2 units in a Troop or a Squad as Kingdom tech says.

Think perhaps i worded the post so people think i want to change how units appear on a tile .. hmm ?