Difference between revisions of "FMagicCasterSkillCostBase"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Templarion
 
imported>ABO
m (rearranged cost forumula to make it more obvious.)
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Look [http://cs.elderscrolls.com/constwiki/index.php/FMagicCasterSkillCostMult link this link]
{| border="1" cellpadding="5" cellspacing="0"
|-
!style="background:#ffdead;" width="100"  | Description
|style="background:#ffeded;" |


Default value: 0.2
Used in determining the total cost of Magicka required to cast a spell. If the CS indicates a cost of X for a spell, you can use the following formula to determine what the cost will be ingame based on the appropriate skill:<br><br>
 
BaseCost * ([[fMagicCasterSkillCostBase]] + [[fMagicCasterSkillCostMult]] * (1 - skill/100))<br><br>
 
Where BaseCost is the BaseCost to cast the spell as indicated by the spell (not the spell effects) in the CS.
|-
!style="background:#ffdead;" |Default value
|style="background:#ffeded;" |
 
0.2000
|}
 
==More Information==
modifier = ( 1 - skill/100 ) * fMagicCasterSkillCostMult + fMagicCasterSkillCostBase
 
effect cost = raw effect cost * modifier
 
(raw effect cost is the base cost of the effect modified by the effect's area, duration, magnitude, and whether or not it's a target spell. I didn't want to call it "base cost" here because that's the value you see for an effect in the Magic Effects window).
 
For a spell with multiple effects, this is calculated for each effect and added up to arrive at the total cost, unless the spell has the cost overridden in the editor, in which case the overridden cost is multiplied for the modifier and the skill is that for the dominant effect of the spell.
 
Also, luck will modify the skill somewhat before it's plugged into the formula (the game should be set up so that luck=50 will have no effect).
 
<div id="catlinks"><p class='catlinks'>[[Special: Categories|Category]]: [[:Category: Settings|Settings]] | [[:Category: Spell Cost|Spell Cost]]</p></div>

Latest revision as of 19:35, 3 December 2008

Description

Used in determining the total cost of Magicka required to cast a spell. If the CS indicates a cost of X for a spell, you can use the following formula to determine what the cost will be ingame based on the appropriate skill:

BaseCost * (fMagicCasterSkillCostBase + fMagicCasterSkillCostMult * (1 - skill/100))

Where BaseCost is the BaseCost to cast the spell as indicated by the spell (not the spell effects) in the CS.

Default value

0.2000

More Information[edit | edit source]

modifier = ( 1 - skill/100 ) * fMagicCasterSkillCostMult + fMagicCasterSkillCostBase

effect cost = raw effect cost * modifier

(raw effect cost is the base cost of the effect modified by the effect's area, duration, magnitude, and whether or not it's a target spell. I didn't want to call it "base cost" here because that's the value you see for an effect in the Magic Effects window).

For a spell with multiple effects, this is calculated for each effect and added up to arrive at the total cost, unless the spell has the cost overridden in the editor, in which case the overridden cost is multiplied for the modifier and the skill is that for the dominant effect of the spell.

Also, luck will modify the skill somewhat before it's plugged into the formula (the game should be set up so that luck=50 will have no effect).