How to create Artifacts?

InkAxis

King
Joined
Feb 24, 2020
Messages
784
I was wondering how to:
1. Create an artifact
2. Give that artifact to a civ directly through lua

I found this thread:
https://forums.civfanatics.com/threads/trying-to-customize-artifact-lists.542218/
where JFD said that artifacts are just Great Works, with the "ARTIFACT_ANCIENT_RUIN" ArtifactClassType and "GREAT_WORK_ARTIFACT" GreatWorkClassType columns assigned (he said he made an Italy civ with an artifact in it but I looked through the civ's files and couldn't find anything).

So would this be enough to make an artifact:
Code:
    <GreatWorks>
        <Row>
            <Type>GREAT_WORK_EXAMPLE_ARTIFACT</Type>
            <GreatWorkClasssType>GREAT_WORK_ARTIFACT</GreatWorkClasssType>
            <Description>TXT_KEY_GREAT_WORK_EXAMPLE_ARTIFACT</Description>
            <ArtifactClassType>ARTIFACT_ANCIENT_RUIN</ArtifactClassType>
            <Image>Example_artifact.dds</Image>
        </Row>
    </GreatWorks>
    <Language_en_US>
         <Row Tag="TXT_KEY_GREAT_WORK_KANISHKA_STATUE">
              <Text>Example Artifact</Text>
         </Row>
    </Language_en_US>

And would I need the <ArtifactClassType>ARTIFACT_ANCIENT_RUIN</ArtifactClassType> if I don't want it to be dug up from an ancient ruin? How would I make it so that a certain civ gets this artifact?
 
Back
Top Bottom