GetBaseSpellCosts

From the CreationKit Wiki
Jump to navigation Jump to search


Returns an array of base spells costs for all known spells that have their base cost modified by skill level, perks, enchantments, and dual casting. This is intended for use with Skyrim Special Edition. Skyrim Original has SKSE version that can return the base spell cost.

Syntax[edit | edit source]

Float[] Function GetBaseSpellCosts()
; return this entire array

; == DESTRUCTION ==
Float[] fBaseSpellCosts = new Float[92]
; == Fire spells ==
fBaseSpellCosts[0] = 14.0   ; Flames
fBaseSpellCosts[1] = 234.0  ; Fire Rune
fBaseSpellCosts[2] = 41.0   ; Firebolt
fBaseSpellCosts[3] = 133.0  ; Fireball
fBaseSpellCosts[4] = 289.0  ; Flame Cloak
fBaseSpellCosts[5] = 298.0  ; Incinerate
fBaseSpellCosts[6] = 118.0  ; Wall of flames
fBaseSpellCosts[7] = 1426.0 ; Fire Storm		
; =================
; ice spells
; =================
fBaseSpellCosts[8] = 16.0    ; Frostbite
fBaseSpellCosts[9] = 293.0   ; Frost Rune
fBaseSpellCosts[10] = 48.0   ; Ice Spike
fBaseSpellCosts[11] = 316.0  ; Frost Cloak
fBaseSpellCosts[12] = 144.0  ; Ice Storm
fBaseSpellCosts[13] = 320.0  ; Icy Spear
fBaseSpellCosts[14] = 137.0  ; Wall of Frost
fBaseSpellCosts[15] = 1106.0 ; Blizzard
; =================
; Shock spells
; =================
fBaseSpellCosts[16] = 19.0   ; Sparks
fBaseSpellCosts[17] = 51.0   ; Lightning Bolt
fBaseSpellCosts[18] = 323.0  ; Lightning Rune 
fBaseSpellCosts[19] = 156.0  ; Chain Lightning
fBaseSpellCosts[20] = 370.0  ; Lightning Cloak
fBaseSpellCosts[21] = 343.0  ; Thunderbolt
fBaseSpellCosts[22] = 145.0  ; Wall of Storms
fBaseSpellCosts[23] = 138.0  ; Lightning Storm
; =================

; == ALTERATION ===
; 14 spells
fBaseSpellCosts[24] = 21.0   ; Candlelight
fBaseSpellCosts[25] = 103.0  ; Oakflesh
fBaseSpellCosts[26] = 84.0   ; Magelight
fBaseSpellCosts[27] = 194.0  ; Stoneflesh
fBaseSpellCosts[28] = 100.0  ; Detect Life
fBaseSpellCosts[29] = 266.0  ; Ironflesh
fBaseSpellCosts[30] = 170.0  ; Telekinesis
fBaseSpellCosts[31] = 100.0  ; Transmute
fBaseSpellCosts[32] = 222.0  ; Waterbreathing
fBaseSpellCosts[33] = 148.0  ; Detect Dead
fBaseSpellCosts[34] = 341.0  ; Ebonyflesh
fBaseSpellCosts[35] = 450.0  ; Paralyze
fBaseSpellCosts[36] = 837.0  ; Dragonhide
fBaseSpellCosts[37] = 937.0  ; Mass Paralysis
;  I don't think equilibrium is affected.
; =================

; =================
; == CONJURATION ==
; 22 spells
; == Bound Spells =
fBaseSpellCosts[38] = 93.0     ; Bound Sword
fBaseSpellCosts[39] = 169.0    ; Bound BattleAxe
fBaseSpellCosts[40] = 207.0    ; Bound Bow
; =================
; == Summons ======
fBaseSpellCosts[41] = 107.0    ; Conjure Familiar
fBaseSpellCosts[42] = 150.0    ; Conjure Flame Atronach
fBaseSpellCosts[43] = 57.0     ; Flaming Familiar
fBaseSpellCosts[44] = 215.0    ; Conjure Frost Atronach
fBaseSpellCosts[45] = 717.0    ; Conjure Dragon Priest
fBaseSpellCosts[46] = 358.0    ; Conjure Dremora Lord
fBaseSpellCosts[47] = 322.0    ; Conjure Storm Atronach
fBaseSpellCosts[48] = 900.0    ; Flame Thrall
fBaseSpellCosts[49] = 1100.0   ; Frost Thrall
fBaseSpellCosts[50] = 1200.0   ; Storm Thrall
; =================
; == Reanimation ==
fBaseSpellCosts[51] = 103.0    ; Raize Zombie
fBaseSpellCosts[52] = 144.0    ; Reanimate Corpse
fBaseSpellCosts[53] = 183.0    ; Revenant
fBaseSpellCosts[54] = 302.0    ; Dread Zombie
fBaseSpellCosts[55] = 1000.0   ; Dead Thrall
; ==================
; ==== Command =====
fBaseSpellCosts[56] = 196.0    ; Banish Daedra
fBaseSpellCosts[57] = 243.0    ; Command Daedra
fBaseSpellCosts[58] = 215.0    ; Expel Daedra
fBaseSpellCosts[59] = 107.0    ; Soul Trap
; ==================

; ==================
; ==== ILLUSION ====
; 15 spells
fBaseSpellCosts[60] = 25.0        ; Clairvoyance
fBaseSpellCosts[61] = 39.0        ; Courage
fBaseSpellCosts[62] = 67.0        ; Fury
fBaseSpellCosts[63] = 146.0       ; Calm
fBaseSpellCosts[64] = 153.0       ; Fear
fBaseSpellCosts[65] = 144.0       ; Muffle
fBaseSpellCosts[66] = 209.0       ; Frenzy
fBaseSpellCosts[67] = 113.0       ; Rally
fBaseSpellCosts[68] = 334.0       ; Invisibility
fBaseSpellCosts[69] = 290.0       ; Pacify
fBaseSpellCosts[70] = 316.0       ; Rout
fBaseSpellCosts[71] = 655.0       ; Call to Arms
fBaseSpellCosts[72] = 1052.0      ; Harmony
fBaseSpellCosts[73] = 866.0       ; Hysteria
fBaseSpellCosts[74] = 990.0       ; Mayhem
; ====================

; ====================
; == RESTORATION =====
; 17 spells
; === Wards ==========
fBaseSpellCosts[75] = 34.0      ; Lesser Ward
fBaseSpellCosts[76] = 58.0      ; Steadfast Ward
fBaseSpellCosts[77] = 86.0      ; Greater Ward
; ====================
; ==== Healing =======
fBaseSpellCosts[78] = 12.0      ; Healing
fBaseSpellCosts[79] = 73.0      ; Fast Healing
fBaseSpellCosts[80] = 25.0      ; Healing Hands
fBaseSpellCosts[81] = 126.0     ; Close Wounds
fBaseSpellCosts[82] = 80.0      ; Heal Other
fBaseSpellCosts[83] = 254.0     ; Grand Healing
; == Turn undead =====
fBaseSpellCosts[84] = 84.0     ; Turn lesser undead
fBaseSpellCosts[85] = 115.0    ; Repel Lesser Undead
fBaseSpellCosts[86] = 168.0    ; Turn Undead
fBaseSpellCosts[87] = 171.0    ; Circle of Protection
fBaseSpellCosts[88] = 353.0    ; Repel Undead
fBaseSpellCosts[89] = 267.0    ; Turn Greater Undead
fBaseSpellCosts[90] = 988.0    ; Bane of the undead
fBaseSpellCosts[91] = 716.0    ; Guardian Circle

return fBaseSpellCosts
EndFunction

Parameters[edit | edit source]

  • None

Return Value[edit | edit source]

  • An array of base spell costs.

Notes[edit | edit source]

  • This function was created while using none of the DLCs selected in the Creation Kit. Thus DLC spells were not included. Adding them is simple as increasing the number of elements and adding said DLC spell to that index.
  • Use of this function requires an array of corresponding spells to be in the same order(and total number) so that the correct value is returned for the desired spell.

See Also[edit | edit source]