Difference between revisions of "GetClassSkill"
Jump to navigation
Jump to search
Added example & whichSkill allowed values.
imported>WereWolf (New page: A command for Oblivion Script Extender Returns the Nth skill of the class. '''Syntax:''' (skill:short) ''reference.''GetClassSkill whichSkill:shor...) |
imported>WereWolf (Added example & whichSkill allowed values.) |
||
Line 4: | Line 4: | ||
'''Syntax:''' | '''Syntax:''' | ||
(skill:short) ''reference.''GetClassSkill whichSkill:short ''class:ref'' | (skill:short) ''reference.''GetClassSkill whichSkill:short[0..6] ''class:ref'' | ||
'''Example:''' | |||
short myfirstskill | |||
short myfirthskill | |||
set myfirstskill to player.GetClassSkill 0 | |||
set myfirthskill to player.GetClassSkill 4 | |||
Gets 1st and 5th skill of player's class. | |||
==Notes== | ==Notes== | ||
*The parameter ''whichSkill:short'' must be '''min: 0''' and '''max: 6'''. If you input a value greater than 6 this function will allways return 0 (Strenght). | |||
*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. |