User Tools

Site Tools


modding:function:typtranslate

Discuss this page on this pages TalkPage

typTranslate

Syntax (typTranslate unid textID [data] [default])
Arguments unid: the unid the text is stored on
textID: ID of the text
data: data to pass on to the text
default: ?
Returns Text if found; Nil otherwise
Category type, unid
Description Translates a text field from a type.

Example

(typTranslate &stContainerHabitat; 'Welcome)

Returns the text with the ID “Welcome” from the container habitat type.

(typTranslate &ovCountingOverlay; "msgCounting" { count:0 }))

Translates the text with the ID “msgScanning” from the type, and sets the “count” field to 0

Return to type functions list

Return to Functions list

modding/function/typtranslate.txt · Last modified: 2017/01/20 05:21 by xephyr