FANDOM


m
(rearranged info, -redundant wikification)
Line 1: Line 1:
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 [[Blueprint]]s and '''must''' be unique.
+
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 [[Blueprint]]s and must be unique.
   
== Interesting facts about tags ==
+
==Naming convention==
* They do not have to be unique
+
As the tag and the resref are two separate entities you may want to set them using a naming convention to save confusion.
* They can be a mixture of uppercase and lowercase (it is not case sensitive)
 
* In most [[module]]s, 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 [[object]]s you will need to change the tag on one of them
 
   
== Example of naming convention ==
+
'''Facts''':
As the '''tag''' and the '''resref''' are two separate entities you may want to set them using the following naming convention to save confusion.
+
* Tags do not have to be unique
  +
* Tags 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
   
'''Creating several "Orc Tables"'''
+
'''Example''': Creating several "Orc Tables"
* Create [[Blueprint]] and set the [[resref]] to "orctable"
+
* Create Blueprint and set the resref to "orctable"
 
* Set the tag to use the same value but in uppercase (ie "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 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"
 
* Create a second instance of the same Blueprint and change the tag to "ORCTABLE_02"
   

Revision as of 17:31, June 23, 2007

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.

Naming convention

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

Facts:

  • Tags do not have to be unique
  • Tags 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: 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"
Community content is available under CC-BY-SA unless otherwise noted.