Discuss this page on this pages [[typTranslate Talk Page|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 [[modding:function:type_functions|type functions]] list
Return to [[:Functions]] list