CyberCommander
Chieftain
- Joined
- Jan 11, 2019
- Messages
- 3
Hello Civ Fanatics forum. I am working on a mod to emulate some D&D characters and their organizations. For the first one I am doing I am making their Unique Building be a magic item forge. The Forge replaces the Workshop and on completion, it is supposed to grant the player a relic while also having the slot in the workshop to store it. Currently, the building is working with the exception of actually granting the relic. I copied the GoodyHut version of how that works for this and don't see many differences in the code. I am about 90% sure this is probably being caused by a syntax error that I am missing but after a long while of staring at my code, I can't find anything mismatching. If anyone can see an issue with the code or knows that maybe this way of doing it just won't work please give me the heads up.
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="ARTIFACT_FORGE" Kind="KIND_BUILDING"/>
</Types>
<BuildingReplaces>
<Row CivUniqueBuildingType="ARTIFACT_FORGE" ReplacesBuildingType="BUILDING_WORKSHOP"/>
</BuildingReplaces>
<Buildings>
<Row BuildingType="ARTIFACT_FORGE" Name="LOC_ARTIFACT_FORGE_NAME" Description="LOC_ARTIFACT_FORGE_DESCRIPTION" PrereqTech="TECH_APPRENTICESHIP" PrereqDistrict="DISTRICT_INDUSTRIAL_ZONE" PurchaseYield="YIELD_GOLD" Cost="175" AdvisorType="ADVISOR_GENERIC" CitizenSlots="1" Maintenance="1" TraitType="TRAIT_CIVILIZATION_ARTIFACT_FORGE"/>
</Buildings>
<Building_GreatWorks>
<Row BuildingType="ARTIFACT_FORGE" GreatWorkSlotType="GREATWORKSLOT_RELIC" NumSlots="1"/>
</Building_GreatWorks>
<Building_YieldChanges>
<Row BuildingType="ARTIFACT_FORGE" YieldType="YIELD_PRODUCTION" YieldChange="2"/>
</Building_YieldChanges>
<Building_GreatPersonPoints>
<Row BuildingType="ARTIFACT_FORGE" GreatPersonClassType="GREAT_PERSON_CLASS_ENGINEER" YieldChange="1"/>
</Building_GreatPersonPoints>
<BuildingModifiers>
<Row>
<BuildingType>ARTIFACT_FORGE</BuildingType>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
</Row>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
<ModifierType>MODIFIER_PLAYER_GRANT_RELIC</ModifierType>
<RunOnce>true</RunOnce>
<Permanent>true</Permanent>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
</ModifierArguments>
</GameInfo>
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<GameInfo>
<Types>
<Row Type="ARTIFACT_FORGE" Kind="KIND_BUILDING"/>
</Types>
<BuildingReplaces>
<Row CivUniqueBuildingType="ARTIFACT_FORGE" ReplacesBuildingType="BUILDING_WORKSHOP"/>
</BuildingReplaces>
<Buildings>
<Row BuildingType="ARTIFACT_FORGE" Name="LOC_ARTIFACT_FORGE_NAME" Description="LOC_ARTIFACT_FORGE_DESCRIPTION" PrereqTech="TECH_APPRENTICESHIP" PrereqDistrict="DISTRICT_INDUSTRIAL_ZONE" PurchaseYield="YIELD_GOLD" Cost="175" AdvisorType="ADVISOR_GENERIC" CitizenSlots="1" Maintenance="1" TraitType="TRAIT_CIVILIZATION_ARTIFACT_FORGE"/>
</Buildings>
<Building_GreatWorks>
<Row BuildingType="ARTIFACT_FORGE" GreatWorkSlotType="GREATWORKSLOT_RELIC" NumSlots="1"/>
</Building_GreatWorks>
<Building_YieldChanges>
<Row BuildingType="ARTIFACT_FORGE" YieldType="YIELD_PRODUCTION" YieldChange="2"/>
</Building_YieldChanges>
<Building_GreatPersonPoints>
<Row BuildingType="ARTIFACT_FORGE" GreatPersonClassType="GREAT_PERSON_CLASS_ENGINEER" YieldChange="1"/>
</Building_GreatPersonPoints>
<BuildingModifiers>
<Row>
<BuildingType>ARTIFACT_FORGE</BuildingType>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
</Row>
</BuildingModifiers>
<Modifiers>
<Row>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
<ModifierType>MODIFIER_PLAYER_GRANT_RELIC</ModifierType>
<RunOnce>true</RunOnce>
<Permanent>true</Permanent>
</Row>
</Modifiers>
<ModifierArguments>
<Row>
<ModifierId>ARTIFACT_FORGE_GRANT_RELIC</ModifierId>
<Name>Amount</Name>
<Value>1</Value>
</Row>
</ModifierArguments>
</GameInfo>