SetDescription

From the Oblivion ConstructionSet Wiki
Revision as of 03:06, 25 October 2011 by imported>Saebel
Jump to navigation Jump to search
< [[::Category:Functions|Category:Functions]]

A function added by the Oblivion Script Extender.

Syntax:

(success:bool) reference.SetDescription description:string form:ref skillLevel:short

Modifies the text of a TESDescription (e.g. book, class, skill, skill level, etc). The modified description will be used for the remainder of the game session. To modify the text displayed when achieving a new level of mastery (Apprentice, Journeyman, etc) in a skill, pass the skill as the second argument and a skill level as the third, where skill level ranges from 0 (Apprentice) to 3 (Master).


A specific example for modifying the description of a skill when achieving a mastery rank in that skill would be: Template:SetDescription "Stepping softly, hiding in the shadows, you are like a freaking NINJA! Dang you are so sneaky! I shall bow down and call you Master" SkillSneak 3 ; Master Note the syntax of using SkillSneak (which is the skill details), not just Sneak (which is the actor value).