NWNWiki
NWNWiki
3,718
pages
(Clarify string length)
mNo edit summary
Line 8: Line 8:
   
 
== Example of naming convention ==
 
== Example of naming convention ==
As the '''tag''' and the '''resref''' are two seperate entities you may want to set them using the following naming convention to save confusion.
+
As the '''tag''' and the '''resref''' are two separate entities you may want to set them using the following naming convention to save confusion.
   
 
'''Creating several "Orc Tables"'''
 
'''Creating several "Orc Tables"'''

Revision as of 18:32, 1 November 2005

A tag is string (up to 32 characters) which is used to identify an object within a module. This should not be confused with a resref which is used to identify Blueprints and must be unique.

Interesting facts about tags

  • They do not have to be unique
  • They can be a mixture of uppercase and lowercase (it is not case sensitive)
  • In most modules, people will by default set the tag to the same value as the resref for consistency
  • If you want to tell the difference between two objects you will need to change the tag on one of them

Example of naming convention

As the tag and the resref are two separate entities you may want to set them using the following naming convention to save confusion.

Creating several "Orc Tables"

  • Create Blueprint and set the resref to "orctable"
  • Set the tag to use the same value but in uppercase (ie "ORCTABLE")
  • Create an instance of this Blueprint and change the tag on the object to "ORCTABLE_01"
  • Create a second instance of the same Blueprint and change the tag to "ORCTABLE_02"