This wiki is a copy of the original Oblivion CS wiki created and maintained by the UESP.net. See CSwiki:Copy Notice for more info.

Difference between revisions of "IsClassAttribute"

Jump to navigation Jump to search
1,514 bytes removed ,  18:29, 22 January 2008
Fixed syntax, example, added link to Stats list
imported>WereWolf
imported>Haama
(Fixed syntax, example, added link to Stats list)
Line 2: Line 2:


'''Syntax:'''
'''Syntax:'''
  (isClassAttribute:bool) ''reference''.IsClassAttribute attribute:short ''class:ref''
  (isClassAttribute:bool) ''reference''.IsClassAttribute attribute:string ''class:ref''


Returns whether the passed attribute is an attribute of the class.
Returns whether the passed attribute is an attribute of the class.
Line 8: Line 8:
'''Example:'''
'''Example:'''
  short attribute
  short attribute
  set attribute to player.IsClassAttribute 3
  set attribute to player.IsClassAttribute Agility
  if (attribute == 1)
  if (attribute == 1)
   messagebox "Agility is one of the Attributes of your class."
   messagebox "Agility is one of the Attributes of your class."
Line 18: Line 18:
*If called on a reference it will attempt to find the class from that referenced NPC and use that.
*If called on a reference it will attempt to find the class from that referenced NPC and use that.
*If a class FormID is passed, that takes precedence.
*If a class FormID is passed, that takes precedence.
*Available since OBSE v0011.
'''Actor Value Codes:'''
  0:    Strength
  1:    Intelligence
  2:    Willpower
  3:    Agility
  4:    Speed
  5:    Endurance
  6:    Personality
  7:    Luck
  8:    Health
  9:    Magicka
  10:    Fatigue
  11:    Encumbrance
  12:    Armorer
  13:    Athletics
  14:    Blade
  15:    Block
  16:    Blunt
  17:    HandToHand
  18:    HeavyArmor
  19:    Alchemy
  20:    Alteration
  21:    Conjuration
  22:    Destruction
  23:    Illusion
  24:    Mysticism
  25:    Restoration
  26:    Acrobatics
  27:    LightArmor
  28:    Marksman
  29:    Mercantile
  30:    Security
  31:    Sneak
  32:    Speechcraft
  33:    Aggression
  34:    Confidence
  35:    Energy
  36:    Responsibility
  37:    Bounty
  38:    Fame
  39:    Infamy
  40:    MagickaMultiplier
  41:    NightEyeBonus
  42:    AttackBonus
  43:    DefendBonus
  44:    CastingPenalty
  45:    Blindness
  46:    Chameleon
  47:    Invisibility
  48:    Paralysis
  49:    Silence
  50:    Confusion
  51:    DetectItemRange
  52:    SpellAbsorbChance
  53:    SpellReflectChance
  54:    SwimSpeedMultiplier
  55:    WaterBreathing
  56:    WaterWalking
  57:    StuntedMagicka
  58:    DetectLifeRange
  59:    ReflectDamage
  60:    Telekinesis
  61:    ResistFire
  62:    ResistFrost
  63:    ResistDisease
  64:    ResistMagic
  65:    ResistNormalWeapons
  68:    ResistParalysis
  67:    ResistPoison
  68:    ResistShock
  69:    Vampirism
  70:    Darkness
  71:    ResistWaterDamage
256:    No Actor Value


==See Also==
==See Also==
*[[Stats List]]
*[[GetClass]]
*[[GetClass]]
*[[GetClassAttribute]]
*[[GetClassAttribute]]
Anonymous user

Navigation menu