Logo Platform
logo amplifiers simplified

Any way to change what faction heroes spawn in the Academy?

Reply
Copied to clipboard!
9 years ago
Jan 18, 2016, 11:19:09 AM
I'm specifically wondering if there might be a way to code it so that you only spawn (or heavily weigh the chance to spawn) your own faction's heroes as Exclusives.



I know the broader hero market comes from all the various empires.
0Send private message
9 years ago
Jan 18, 2016, 11:54:39 AM
Also, where do you define the faction of a hero. The only thing I can think of is that the unit ID has the faction name in it. I haven't seen a flag or option anywhere that sets the faction of a hero.
0Send private message
9 years ago
Jan 18, 2016, 12:10:27 PM
I don't have the files on hand to check right now, but I do remember that there doesn't seem to be a separate line for the hero faction. I never tried, but it may be possible that the UnitBody determines the hero's faction.



Good luck figuring out how to modify the spawn rates. I haven't looked into that myself, but it might become necessary for other mods, like the hero extension.
0Send private message
9 years ago
Jan 18, 2016, 6:52:50 PM
I think you're right, Cat. The only place I can possibly see the faction being defined is in the unit body in UnitProfiles(Hero).xml



0Send private message
9 years ago
Jan 26, 2016, 4:58:40 PM
Hello,

The way we define to which faction a hero belongs is through this line in UnitBodyDefinitions.xml:





Units also have .../EmpireTypeMajor,AffinityDrakkens



For your own faction as exclusives I think this is something hard-coded and thus difficult to change through a mod.

I will try to ask around though.
0Send private message
9 years ago
Jan 26, 2016, 5:36:34 PM
Thanks so much Pikou! <3
0Send private message
?

Click here to login

Reply
Comment