Difference between revisions of "Category:Spell Cost"

826 bytes added ,  05:34, 11 January 2008
no edit summary
imported>Skyranger-1
(changed "effect base cost" to "component base cost" to reduce confusion (I hope))
imported>Skyranger-1
Line 33: Line 33:
|}
|}


The complete formula is the product of these factors, as below:
Each individual effect in a spell contributes to the final cost of the spell independently.  The contributions from a single effect follow this formula:
Effect Factor = Base Cost * fMagicDurMagBaseCostMult
  Effect Factor = Base Cost * fMagicDurMagBaseCostMult
Magnitude Factor = Magnitude ^ fMagicCostScale
  Magnitude Factor = Magnitude ^ fMagicCostScale
Duration Factor = Duration (minimum of 1)
  Duration Factor = Duration (minimum of 1)
Area Factor = Area * fMagicAreaBaseCostMult (minimum of 1)
  Area Factor = Area * fMagicAreaBaseCostMult (minimum of 1)
Range Factor = if Target, fMagicRangeTargetCostMult; else, 1
  Range Factor = if Target, fMagicRangeTargetCostMult; else, 1
Skill Factor = fMagicCasterSkillCostBase + fMagicCasterSkillCostMult * (1 - Effective Skill/100)
  Skill Factor =  
    fMagicCasterSkillCostBase + fMagicCasterSkillCostMult * (1 - Effective Skill/100)
Component Base Cost = Effect Factor * Magnitude Factor * Duration Factor * Area Factor * Range Factor
 
Component Casting Cost = Component Base Cost * Skill Factor
  Unscaled Effect Cost = Effect Factor * Magnitude Factor *  
   
      Duration Factor * Area Factor * Range Factor (minimum 1)
  Spell Base Cost = Sum(Component Base Costs)
  Scaled Effect Cost = Effect Factor * Magnitude Factor *
Spell Casting Cost = Sum(Component Casting Costs)
      Duration Factor * Area Factor * Range Factor * Skill Factor (minimum 1)
 
Unscaled Effect Cost and Scaled Effect Cost are both rounded down.  All other quantities above are not rounded.  
 
The overall cost of the spell ends up being:
 
  Unscaled Spell Cost: sum of all the Unscaled Effect Costs
  Scaled Spell Cost: sum of all the Scaled Effect Costs
 
The Scaled Spell Cost is the amount of magicka it takes to cast the spell.  It is the quantity listed next to the spell in-game in your magic menu.  
 
The Unscaled Spell Cost is the value listed in the Construction Set as "spell cost".  It determines what mastery level the spell is, and thus the minimum skill level required to cast the spell, but has no other effect.  The Mastery level is determined by comparing the Unscaled Spell Cost to the relevant [[:Category:Settings|game settings]]:
 
The above applies to auto-calculated spells only.  Spells made in the spellmaker are considered auto-calculated, as are those flagged as auto-calculated in the Construction Set.  If the spell is not auto-calculated, a simpler formula is used:
  Unscaled Spell Cost = the value manually specified in the Construction Set
  Scaled Spell Cost = Unscaled Spell Cost * Skill Factor (rounded down) (no minimum)


== Note ==
== Note ==
* If a Component Casting Cost is less than 1, then it will be treated as 1 instead when calculating Spell Casting Cost. 
* An auto-calculated spell's school is determined by the most expensive single effect, not by which school has the most combined cost, so multiple effects from a single school will not help that school "win"
* Likewise, if a Component Base Cost is less than 1, then it will be treated as 1 instead when calculating Spell Base Cost.  This happens in-game only, and NOT in the Construction set, leading to the Construction Set sometimes displaying incorrect mastery levels for spells. 
* The formulas above for auto-calculated scaled spell cost and unscaled spell cost are those used in the game.  However, the Construction set itself calculates values by a slightly different formula, causing minor discrepancies between the costs and mastery levels of spells in the game and in the CS.  The only difference is, the CS does not raise Unscaled Effect Cost or Scaled Effect Cost to a minimum of 1.  Thus, in the CS an auto-calculated spell may be shown as having a (scaled or unscaled) cost less than the number of effects, but in the game that is impossible.   
* If the spell has "auto-calculate" disabled, then its manually set base cost overrides the normal base cost.  Non-auto-calculated spells are treated as having only one spell effect, with a Component Base Cost equal to the Spell Base Cost and a magic school that is manually specified in the Construction Set. 
* Spell Base Cost here is the cost in the CS, while Spell Casting Cost is the actual cost the spell requires.  The Mastery level is determined by comparing the Spell Base Cost to the relevant [[:Category:Settings|game settings]]:
* A spell's school is determined by the most expensive single effect, not by which school has the most combined cost, so multiple effects from a single school will not help that school "win".  However, if auto-calculate is disabled then spells school is the explicitly specified spell school.   
* Enchantment cost (in Charge) uses the exact same formula, but is not affected by Luck or any skill.   
* Enchantment cost (in Charge) uses the exact same formula, but is not affected by Luck or any skill.   
* The cost in Septims to buy any spell is equal to three times its Magicka cost.  (the exact multiplier is determined by a Game Setting).   
* The cost in Septims to buy any spell is equal to three times its Magicka cost.  (the exact multiplier is determined by a Game Setting).   




Anonymous user