PropertyValue
rdfs:label
  • SetSubRace
rdfs:comment
  • Note: It is unclear why the GetSubRace() function returns an integer relating to RACIAL_SUBTYPE_*, but the SetSubRace only takes a string.
  • 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.)
dcterms:subject
dbkwik:nwn2/property/wikiPageUsesTemplate
returns
Name
  • SetSubRace
param
  • object oCreature
  • string sSubRace
param2desc
  • The new subrace.
param1desc
  • The creature whose subrace will be set.
dbkwik:nwn/property/wikiPageUsesTemplate
abstract
  • Note: It is unclear why the GetSubRace() function returns an integer relating to RACIAL_SUBTYPE_*, but the SetSubRace only takes a string.
  • 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.)