Difference between revisions of "GetClassAttribute"

399 bytes added ,  01:43, 25 September 2011
m
Reverted edits by EShaeffer54 (talk) to last revision by Rezero
imported>WereWolf
(Fixed categories)
imported>DragoonWraith
m (Reverted edits by EShaeffer54 (talk) to last revision by Rezero)
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
A command for [[:Category:Oblivion Script Extender|Oblivion Script Extender]]
'''Syntax:'''
(attribute:short) ''reference''.GetClassAttribute whichAttribute:short[0..1] ''class:ref''


Returns the Nth attribute of the class.
Returns the Nth attribute of the class.


'''Syntax:'''
'''Example:'''
  (attribute:short) ''reference''.GetClassAttribute whichAttribute:short ''class:ref''
  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==
==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).
*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.