The SetSubRace()
NWScript command sets the subrace of an object (which must be a creature) to the specified string.
One use of this command is to simulate a racial change for a player character, as the character sheet will report the subrace instead of the race if a subrace is provided. Another use is to normalize the subrace of a player character. (This would allow the player some liberty in how to enter a subrace at character creation — such as being case-insensitive or allowing abbreviations — but still allow most scripts to be more efficient by accepting only a single form of each subrace's name.)
Definition[]
void SetSubRace (object oCreature, string sSubRace
)
object oCreature
- The creature whose subrace will be set.
string sSubRace
- The new subrace.