Sid Meier's Civilization: Beyond Earth

Sid Meier's Civilization: Beyond Earth

Experience Worlds Beyond Earth
Game modifications, scenarios, interface, and so much more. Explore the modding world of Beyond Earth, and when you're ready, download the SDK to create and upload your own.
ImperatorNemarius 2017 年 3 月 14 日 下午 4:58
Giving a Unit Inherent Perks / Creating a New Promotion
I've been making a mod for several new units, buildings, and Wonders. I have been trying to give two of the units inherent perks, rather than the normal inherent promotions The units themselves work fine, and I can create them without problem when I go to test it in game, but I can only make them if I use the version of the mod that doesn't attempt to give them inherent perks.
I have confirmed through testing that the problem is not with:
--The units (without inherent perks)
--The buildings
--The wonders

I have created a version of the mod that is only one of the units and its inherent perks, so that is where the problem lies. I have tried several ways of doing it, but haven't succeeded. This is what I want to give the units:

Perks:
<VisibilityChange>1</VisibilityChange>
<DamageToAdjacentUnitsOnAttack>15</DamageToAdjacentUnitsOnAttack><IgnoreRangedAttackLineOfSight>true</IgnoreRangedAttackLineOfSight>
<MoveAfterAttacking>true</MoveAfterAttacking>
<IgnoreZoneOfControl>true</IgnoreZoneOfControl>
<AlwaysHeal>true</AlwaysHeal>
<ExtraAttacks>1</ExtraAttacks>

So two questions:

1) Any ideas for how to give the units these perks at the beginning? I've tried a few things, but I'll try anything again, just because I may have missed a little thing that caused it to fail.

2) If I cannot give them perks, how do I create a promotion with those same effects, so that I can give the unit that promotion? I tried that a couple times, but it caused the promotion to show up for all units. I classified the promotion so that it should not be possible to choose it, but it didn't work.