NWN2Wiki
No edit summary
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Obsidian]] has stated that a '''SetName''' [[NWScript function]] is not yet included in NWN2, but there's no reason it won't be. It's inclusion will depend on the availability of resources.
+
The '''SetName''' [[NWScript function]] should be included in NWN2 [http://nwn2.warcry.com/scripts/news/view_news.phtml?site=91&id=55942]. Currently however, this function does not exist in the pre-order toolset
   
  +
// Set the name of oObject.
- Bioware is adding this function with the 1.67 NWN patch and has stated publically that the new code will be made available to Obsidian. The current implementation is for non-player creatures, placeables and items.
 
  +
// - oObject: the object for which you are changing the name (a creature, placeable, item, or door).
  +
// - sNewName: the new name that the object will use.
  +
// Note: SetName() does not work on player objects.
  +
// Setting an object's name to "" will make the object
  +
// revert to using the name it had originally before any
  +
// SetName() calls were made on the object.
  +
void SetName(object oObject, string sNewName="")
   
  +
'''WARNING:''' This function is missing from NWN2 and thus any script which is imported that uses this function will fail to compile
{{stub}}
 
   
  +
{{ScriptFunction}}
[[Category:NWScript functions]]
 
  +
{{ScriptCategory|Import Concern|{{PAGENAME}}}}

Latest revision as of 12:21, 7 October 2006

The SetName NWScript function should be included in NWN2 [1]. Currently however, this function does not exist in the pre-order toolset

// Set the name of oObject.
// - oObject: the object for which you are changing the name (a creature, placeable, item, or door).
// - sNewName: the new name that the object will use.
// Note: SetName() does not work on player objects.
//       Setting an object's name to "" will make the object
//       revert to using the name it had originally before any
//       SetName() calls were made on the object.
void SetName(object oObject, string sNewName="")

WARNING: This function is missing from NWN2 and thus any script which is imported that uses this function will fail to compile