Difference between revisions of "GetEffectiveArmorAR"
m
→Code
imported>Low Post (New page: __NOTOC__ A User Function for use with Oblivion Script Extender '''Syntax:''' (effectiveArmorAR:short) reference.Call GetEffectiveArmorAR Armo...) |
imported>Low Post m (→Code) |
||
Line 29: | Line 29: | ||
endif | endif | ||
if ( GetArmorType Armor ) | if ( GetArmorType Armor ) | ||
let ActorValueCode := | let ActorValueCode := 18 | ||
else | |||
let ActorValueCode := 27 | |||
endif | endif | ||
let Skill := ( Call [[GetEffectiveSkill]] ActorValueCode ) | let Skill := ( Call [[GetEffectiveSkill]] ActorValueCode ) | ||
let value := ( | let value := ( Skill / 100 ) | ||
let value *= ( GetGameSetting fArmorRatingMax ) - ( GetGameSetting fArmorRatingBase ) | let value *= ( GetGameSetting fArmorRatingMax ) - ( GetGameSetting fArmorRatingBase ) | ||
let value += ( GetGameSetting fArmorRatingBase ) | let value += ( GetGameSetting fArmorRatingBase ) |