Discuss this page on this page's [[itmGetName Talk Page|Talk Page]]
=== itmGetName ===
See [[http://xelerus.de/index.php?s=functions&function=49|itmGetName at Xelerus]]
^ Syntax | (itmGetName item flags) -> name |
^ Arguments | item: The itemStruct of the item you want to get the name of. |
^ | [[legend#name_flags|flags]]: The flags to determine what form of the name is to be used. |
^ Returns | The name of the item. |
^ Category | [[item functions|item]], [[name functions|name]] |
^ Description | Returns the name of the item. You must provide a flag to indicate how you want the name formatted. |
=== Example ===
(itmGetName (itmCreate 0x4001 3) 4)
Returns the string "a segment of light titanium armor".
=== Name flags ===
These flags are used for controlling the formatting of names of items, ships and stations.Flags can be added together to create a certain formatting, ie. 3 would be pluralized and capitalized.
1 - capitalize
2 - pluralize
4 - prefix with 'the' or 'a'
8 - prefix with count
Taken from [[legend#name_flags]]
Return to [[:Functions]] list