Difference between revisions of "GetClassAttribute"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Rezero
m (Fix typos in example, AttRibute)
imported>EShaeffer54
m (None)
Line 14: Line 14:


==Notes==
==Notes==
*The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. If you input a value greater than 1 this function will always return 0 (Strength).
*The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. <span class="plainlinks">[http://ibsdietplan.org <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Irritable Bowel Syndrome</span>] If you input a value greater than 1 this function will always return 0 (Strength).
*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.


  '''Actor Value Codes:'''
  '''Actor Value Codes:'''
  0:   Strength
  0: Strength
  1:   Intelligence
  1: Intelligence
  2:   Willpower
  2: Willpower
  3:   Agility
  3: Agility
  4:   Speed
  4: Speed
  5:   Endurance
  5: Endurance
  6:   Personality
  6: Personality
  7:   Luck
  7: Luck
  8:   Health
  8: Health
  9:   Magicka
  9: Magicka
  10:   Fatigue
10: Fatigue
  11:   Encumbrance
11: Encumbrance
  12:   Armorer
12: Armorer
  13:   Athletics
13: Athletics
  14:   Blade
14: Blade
  15:   Block
15: Block
  16:   Blunt
16: Blunt
  17:   HandToHand
17: HandToHand
  18:   HeavyArmor
18: HeavyArmor
  19:   Alchemy
19: Alchemy
  20:   Alteration
20: Alteration
  21:   Conjuration
21: Conjuration
  22:   Destruction
22: Destruction
  23:   Illusion
23: Illusion
  24:   Mysticism
24: Mysticism
  25:   Restoration
25: Restoration
  26:   Acrobatics
26: Acrobatics
  27:   LightArmor
27: LightArmor
  28:   Marksman
28: Marksman
  29:   Mercantile
29: Mercantile
  30:   Security
30: Security
  31:   Sneak
31: Sneak
  32:   Speechcraft
32: Speechcraft
  33:   Aggression
33: Aggression
  34:   Confidence
34: Confidence
  35:   Energy
35: Energy
  36:   Responsibility
36: Responsibility
  37:   Bounty
37: Bounty
  38:   Fame
38: Fame
  39:   Infamy
39: Infamy
  40:   MagickaMultiplier
40: MagickaMultiplier
  41:   NightEyeBonus
41: NightEyeBonus
  42:   AttackBonus
42: AttackBonus
  43:   DefendBonus
43: DefendBonus
  44:   CastingPenalty
44: CastingPenalty
  45:   Blindness
45: Blindness
  46:   Chameleon
46: Chameleon
  47:   Invisibility
47: Invisibility
  48:   Paralysis
48: Paralysis
  49:   Silence
49: Silence
  50:   Confusion
50: Confusion
  51:   DetectItemRange
51: DetectItemRange
  52:   SpellAbsorbChance
52: SpellAbsorbChance
  53:   SpellReflectChance
53: SpellReflectChance
  54:   SwimSpeedMultiplier
54: SwimSpeedMultiplier
  55:   WaterBreathing
55: WaterBreathing
  56:   WaterWalking
56: WaterWalking
  57:   StuntedMagicka
57: StuntedMagicka
  58:   DetectLifeRange
58: DetectLifeRange
  59:   ReflectDamage
59: ReflectDamage
  60:   Telekinesis
60: Telekinesis
  61:   ResistFire
61: ResistFire
  62:   ResistFrost
62: ResistFrost
  63:   ResistDisease
63: ResistDisease
  64:   ResistMagic
64: ResistMagic
  65:   ResistNormalWeapons
65: ResistNormalWeapons
  68:   ResistParalysis
68: ResistParalysis
  67:   ResistPoison
67: ResistPoison
  68:   ResistShock
68: ResistShock
  69:   Vampirism
69: Vampirism
  70:   Darkness
70: Darkness
  71:   ResistWaterDamage
71: ResistWaterDamage
  256:   No Actor Value
  256: No Actor Value


==See Also==
==See Also==

Revision as of 13:01, 24 September 2011

A command for Oblivion Script Extender

Syntax:

(attribute:short) reference.GetClassAttribute whichAttribute:short[0..1] class:ref

Returns the Nth attribute of the class.

Example:

short FirstAttribute
short SecondAttribute
set FirstAttribute to player.GetClassAttribute 0
set SecondAttribute to player.GetClassAttribute 1

Gets the 1st and 2nd 'Primary Attributes' of player's class.

Notes

  • The parameter "whichAttribute:short" must be min: 0 and max: 1. Irritable Bowel Syndrome If you input a value greater than 1 this function will always return 0 (Strength).
  • 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.
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