Creating a Dueling Spirit

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

 

  1. wOS.ALCS.Dueling:RegisterSpirit({
  2.     Name = "Soul of Lexia Z'oe", -- The name of the dueling spirit
  3.     Description = "Once a noble fighter, the wisdom of Lexia Z'oe lives on and guides you towards greatness", -- The description of the dueling spirit
  4.     RarityName = "Legendary", -- The spirit's rarity name
  5.     RarityColor = Color( 150, 0, 250 ), -- The RGB color of the rarity
  6.     SpiritModel = "models/spirits/lexia_zoe", -- Model path of the spirit
  7.     DuelTitle = "Awakened", -- The title when player enters a duel
  8.     TagLine = "Enlightened by the past", -- The tagline when player enters a duel
  9.     Sequence = "Animation of the dueling spirit",
  10.     ChallengeSound = "sounds/dueling/lexia_zoe_challenge",  -- The sound that is played when player initiates a duel.
  11.     VictorySound = "sounds/dueling/lexia_zoe_victory", -- The sound that is played when player wins a duel.
  12.     MaxEnergy = 1000,   -- The amount of energy needed to ascend this spirit
  13.     StartingRoll = 25, -- The base number an artifact roll will start from
  14.     PassiveLevel = 30, -- Level of spirit before the function effects apply (OnSpawn, OnThink, etc.)
  15.     Rarity = 25, -- Rarity of Spirit
  16.     DroppableArtifacts = {
  17.         [ "Sigma's Superiority" ] = 100, -- Name of the artifact, and the number required to roll 
  18.     },
  19.     OnDuelStart = function( ply ) end, -- Function to run when a duel has started.
  20.     OnSpawn = function( ply ) end, -- Function to run when player spawns
  21.     OnThink = function( ply ) end, -- Function to run each server tick
  22.     OnDeath = function( ply ) end, -- Function to run when player dies
  23. })
  • 0 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 an Artifact

You can see a list of default dueling spirits under dueling/artifacts/default_artifacts.lua. If...