Difference between revisions of "GetClassAttribute"

5 bytes added ,  13:13, 29 August 2009
m
Fix typos in example, AttRibute
imported>Horny Quintus
m (Spelling)
imported>Rezero
m (Fix typos in example, AttRibute)
Line 7: Line 7:


'''Example:'''
'''Example:'''
  short FirstAttibute
  short FirstAttribute
  short SecondAttibute
  short SecondAttribute
  set FirstAttibute to player.GetClassAttibute 0
  set FirstAttribute to player.GetClassAttribute 0
  set SecondAttibute to player.GetClassAttibute 1
  set SecondAttribute to player.GetClassAttribute 1
Gets the 1st and 2nd 'Primary Attributes' of player's class.
Gets the 1st and 2nd 'Primary Attributes' of player's class.


==Notes==
==Notes==
*The parameter "'''''whichAttribute:short'''''" must be '''min: 0''' and '''max: 1'''. If you input a value greater than 1 this function will allways return 0 (Strength).
*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).
*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.
Anonymous user