String

From GECK
Jump to: navigation, search
This article is incomplete. You can help by filling in any blank descriptions.
Further information might be found in a section of the discussion page. Please remove this message when no longer necessary.

The string directive is a trait that specifies a text string to be displayed in a user interface XML block.

A string can be set directly, use a game variable string via &-sNameOfStringVariable for localization, or be copied from another variable.

Example

<string> This is a string </string>

<string> &-sInventoryCaps </string>

<string> <copy src="parent()" trait="string"/> </string>

Notes

To Display an integer you need to store it another element then copy it over, or use io. <string>10<\string> won't work:

<_Value>10<_Value>

<string> <copy src="me()" trait="_Value"/> <\string>

See Also