1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How to create Artifacts?

Discussion in 'Civ5 - Creation & Customization' started by InkAxis, Apr 27, 2020.

  1. InkAxis

    InkAxis Chieftain

    Joined:
    Feb 24, 2020
    Messages:
    50
    Gender:
    Male
    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?
     

Share This Page