Difference between revisions of "Category:Potion Strength"

1,241 bytes added ,  19:48, 8 February 2009
imported>Haama
(Added background section)
imported>Haama
 
(5 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==
The formula is used on each effect of the potion individually. The formula actually has many variations, but they follow a bit of a pattern that can be broken down into 3 steps:
#Effective Alchemy Skill Level - Alchemy modified by luck, as with all other skills
#Base Magnitude/Duration - Bonuses from the Mortar and Pestle
#Final Magnitude/Duration - Bonuses from the other apparatuses
#*This is the same as Base magnitude/Duration if the player is only using a Mortar and Pestle, or the other apparatuses don't affect the effect's potency
#**Calcinators affect everything.
#**Retorts only affect beneficial effects.
#**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]]. Note that Alchemy modifications like Fortify Alchemy won't change Effective Skill Level (but Luck modifications will as with every other skill).
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 there are mods that uncap it.
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 77: 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