 |
11-18-2019, 07:38 AM
|
|
The Wary
Forum posts: 0
File comments: 30
Uploads: 3
|
New compiler option version selection:
"Percentage calculations only" supports ratings->percentages, percentages->ratings and rating penetration calculations.
Resulting CalcStat function size will become smaller with the reduced number of stats. Search tree depth becomes smaller as well, so stat searches become slightly more efficient.
You can query version type with stat -Version which will return something like "1.1.1f" or "1.1.1p" (string type).
Last edited by Giseldah : 11-20-2019 at 02:18 AM.
|
|
|
11-01-2019, 03:20 AM
|
|
The Wary
Forum posts: 0
File comments: 30
Uploads: 3
|
Pseudo code in definitions
Some small explanation of the stat data definitions:
Value = CalcStat( string Name, number L, number N | string C )
L(evel) and N(umeral) can be used directly in formulas as can some support functions in combination with C.
To keep definitions shorter, and so more readable, I've developed some pseudocode:
@Name{L}#{N} or @Name{L}#{C}
This is the same as above.
{} is not needed if the passed values are digits or a dot:
@Name130#0.4
Default for N is 1, so only @Name130 is the same as @Name130#1.
@Name130# means that you pass along L=130 and the current context N.
@Name#0.4 means that you pass current context L and N=0.4.
@Name# means that you pass current context L and N.
@Name means that you only pass current context L
No short code for passing C is provided at the moment, other then explicit #{C}.
Examples:
@Block#1.2 - returns 1.2 points of current L (item)Block rating, where L is assumed to be the item level in this case.
@PhyMasT#0.8 - returns 0.8 points of current L (Trait/skill)Physical Mastery rating, where L is assumed to be the character level (see notes).
@CritHit{@LvlToILvl}# - @LvlToILvl assumes current L=character level and translates this to an item level. the resulting item level is then passed as L to @CritHit along with current N and this returns the (item)Critical Rating.
Last edited by Giseldah : 11-01-2019 at 04:12 AM.
|
|
|
12-07-2018, 09:19 AM
|
|
The Wary
Forum posts: 0
File comments: 30
Uploads: 3
|
Changes
These stats were changed:
CPTCRITDEF - Captain critical defence rating passive
DWARFENDURVITALITY - Dwarf racial trait skill Dwarf Endurance Vitality
GRDCRITDEF - Guardian critical defence rating passive
GRDPROTECTIONAVOID - Guardian trait skill Protection b/p/e ratings
GRDTENDERIZECRITHIT - Guardian trait Tenderize Critical hit rating
GRDWARDTACTTACMIT - Guardian trait Guardian's Ward Tactics Tactical Mitigation
LMHEARTYDIETMORALE - Lore-master trait Hearty Diet Morale
RACIALMAIN - racial traits main stat
SHIELDBRAWLERBLOCK - Dwarf racial trait Shield-brawler Block rating
|
|
|
12-02-2018, 03:58 PM
|
|
The Wary
Forum posts: 0
File comments: 30
Uploads: 3
|
Some usage examples
Just a few of the many calculations:
Tactical Offence Damage percentage (+0.0002 to make it like in the character window) =
CalcStat("TacDmgPRatP",PlayerLevel,Rating)+0.0002
Resistance percentage from rating including T2 penetration =
CalcStat("ResistPRatP",PlayerLevel,Rating+CalcStat ("T2PenResist",MobLevel))+0.0002
Full Evade percentage cap =
CalcStat("EvadePRatPCap",PlayerLevel)
Required Evade rating for percentage =
CalcStat("EvadePPRat",PlayerLevel,Percentage)
Mithrin Vitality essence value (ilvl 372) =
CalcStat("Vitality",372)
Armour value for ilvl 380 medium head gear purple =
CalcStat("Armour",380,"MHP")
Captain's In Defence of Middle-Earth main stats buff =
CalcStat("CptIDOMEMain",PlayerLevel)
Critical Defence on item =
CalcStat("CritDef",ilvl,points)
Knowledge of Eldar Days III LI title Tactical Mastery Rating =
CalcStat("TitTacMas",nil,"III")
Last edited by Giseldah : 12-02-2018 at 04:30 PM.
|
|
|
 |
|
All times are GMT -5. The time now is 08:10 AM.
|
 |