Creating an Artifact

You can see a list of default dueling spirits under dueling/artifacts/default_artifacts.lua. If you want to create your own custom dueling spirits, it is advisable to do this in a new file under the /artifacts/ directory.

 

  1. wOS.ALCS.Dueling.Artifact:RegisterArtifact({
  2.     Name = "Sigma's Superiority", -- Name of the artifact
  3.     Description = "Bask in the glory of the almighty Sigma", -- Description of the artifact
  4.     RarityName = "Legendary", -- Rarity Name
  5.     RarityColor = Color( 255, 125, 0 ), -- Rarity Color
  6.     Model = "models/artifacts/sigmassuperiority", -- Artifact ModelID
  7.     DropRequirement = 5, -- Ascension level required to drop this artifact
  8.     OnSpawn = function( ply ) --
  9.         ply:AddArtifactSkill( "Combat", 1, 1 ) -- Give a skill tree perk
  10.         ply:SetMaxHealth( ply:GetMaxHealth() * 1.2 ) -- Increase their max health by 20%
  11.         ply:SetHealth( ply:GetMaxHealth() ) -- Restore them to full health
  12.     end,
  13. })
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Dueling Spirits and Artifacts General Information

Dueling Spirits What is a Dueling Spirit? A Dueling Spirit is an item you can earn by...

Creating a Dueling Spirit

You can see a list of default dueling spirits under dueling/spirits/default_spirits.lua. If you...