OK, I'm trying to get a building to summon a unit upon building completion (guardian for the city). I've tried the following iterations with no success...
<GameModifier InternalName="UnitJoin">
<ModType>Unit</ModType>
<Attribute>UnitJoinArmy</Attribute>
<StrVal>AnnieDog</StrVal>
<UnitClass>Unit</UnitClass>
</GameModifier>
<GameModifier InternalName="SummonUnit">
<ModType>Map</ModType>
<Attribute>SummonUnit</Attribute>
<UnitClass>Sentinel</UnitClass>
<StrVal>Sentinel</StrVal>
</GameModifier>
Nothing is happening with either version. Suggestions? Anyone have any success with writing code for a building that creates a unit upon completion, as opposed to making unit production possible?