Difference between revisions of "Category:Potion Strength"

499 bytes added ,  19:48, 8 February 2009
imported>Haama
(→‎Effective Skill Level: Clarifications)
imported>Haama
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Each effect of a player-created potion is determined individually. The formula changes depending on what apparatuses the player uses, whether they're creating a potion or poison, and the effect itself. To make things easier it has been broken down into several pieces. These are all based on [http://www.uesp.net/wiki/Oblivion:Alchemy#Calculating_Potion_Strengths formulas found on UESP], and it might be easier to start there and look at the default formulas without game settings.
Each effect of a player-created potion is determined individually. The formula changes depending on what apparatuses the player uses, whether they're creating a potion or poison, and the effect itself. To make things easier it has been broken down into several pieces. These are all based on [http://www.uesp.net/wiki/Oblivion:Alchemy#Calculating_Potion_Strengths formulas found on UESP], and it might be easier to start there and look at the default formulas without game settings.
The functions below run off the screen. We are trying to get some new LaTeX functions added to the wiki to hopefully take care of this. If anyone knows another way to fix them... Until then you can highlight them to see all of the function.


==Background==
==Background==
Line 10: Line 12:
#**Retorts only affect beneficial effects.
#**Retorts only affect beneficial effects.
#**Alembics only affect hostile effects on potions.
#**Alembics only affect hostile effects on potions.
If you're trying to script this, there are several functions that you'll need:
*[[GetActorValue]]
*[[GetBaseActorValue]]
*[[GetGameSetting]]
*[[GetApparatusType]] (OBSE)
*[[GetQuality]] (OBSE)
*[[GetMagicEffectBaseCost]] (OBSE)


==Effective Skill Level==
==Effective Skill Level==
Start by finding the [[Effective Skill Level]]. Unlike other skills, Alchemy modifications (i.e., Fortify Alchemy) aren't counted and you should use the base Alchemy skill level. For Luck, the final/modified Luck should be used.
Start by finding the [[Effective Skill Level]]. Unlike other skills, Alchemy modifications (i.e., Fortify Alchemy) aren't counted and you should use the base Alchemy skill level. For Luck, the final/modified Luck should be used.
  Effective Skill Level = BaseAlchemySkill + [[iActorLuckSkillBase]] + ([[fActorLuckSkillMult]] * Luck)
  Effective Skill Level = BaseAlchemySkill + [[iActorLuckSkillBase]] + ([[fActorLuckSkillMult]] * Luck)
This is capped to 100 by default, but it may be possible for future mods to increase or remove the cap.
This is capped to 100 by default, but it may be possible for future mods to increase or remove the cap. It also has a minimum of 0.


==Figure out the effect type==
==Figure out the effect type==
Line 85: Line 95:
===Base Magnitude===
===Base Magnitude===
This is very similar to the Type 1 formula, but it is not the same. You can find the quality of the Mortar and Pestle in the CS (see [[Apparatus]] for more information and a list of default values) or via script with OBSE's [[GetQuality]]. Effect Base Costs can be found under [[Magic Effects]], on [http://www.uesp.net/wiki/Oblivion:Magical_Effects UESP], or via script with OBSE's [[GetMagicEffectBaseCost]].
This is very similar to the Type 1 formula, but it is not the same. You can find the quality of the Mortar and Pestle in the CS (see [[Apparatus]] for more information and a list of default values) or via script with OBSE's [[GetQuality]]. Effect Base Costs can be found under [[Magic Effects]], on [http://www.uesp.net/wiki/Oblivion:Magical_Effects UESP], or via script with OBSE's [[GetMagicEffectBaseCost]].
  Base Magnitude = <nowiki>[</nowiki>(EffectiveSkillLevel + MortQuality * [[fPotionMortPestleMult]]) / (EffectBaseCost / [[fMagicDurMagBaseCostMult]])<nowiki>]</nowiki> ^ <nowiki>[</nowiki>1 / ([[fMagicCostScale]])<nowiki>]</nowiki>
  Base Magnitude = <nowiki>[</nowiki>(EffectiveSkillLevel + MortQuality * [[fPotionMortPestleMult]]) / (EffectBaseCost * [[fMagicDurMagBaseCostMult]])<nowiki>]</nowiki> ^ <nowiki>[</nowiki>1 / ([[fMagicCostScale]])<nowiki>]</nowiki>
Note that if the player is using a Mortar and Pestle only this is the final Duration.
Note that if the player is using a Mortar and Pestle only this is the final Duration.


Anonymous user