Difference between revisions of "Vn ms fnc sfx typeText"

From Savage Game Design Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
 
             2: time to wait after line      [NUMBER, defaults to 1]</pre>
 
             2: time to wait after line      [NUMBER, defaults to 1]</pre>
  
|s= [] call [[vn_ms_fnc_sfx_typeText]];
+
|s= [_lines,_posX,_posY,_rootFormat] call [[vn_ms_fnc_sfx_typeText]];
  
 
|p1n=_lines
 
|p1n=_lines

Latest revision as of 22:43, 4 May 2022

← back to Functions Introduced in S.O.G. Prairie Fire v1.00
by Wyqer, veteran29
Argument(s): n/a
Effect(s): unknown

Description

Types a structured text on the screen, letter by letter.

    Parameter [_lines]:
        [_lines] - Multidimensional array of lines to write [ARRAY, defaults to []]
            0: text to display              [STRING, defaults to ""]
            1: structured text formatting   [STRING, defaults to "<t align = 'left' shadow = '1' size = '0.7'>%1</t><br/>"]
            2: time to wait after line      [NUMBER, defaults to 1]

Syntax

Syntax
[_lines,_posX,_posY,_rootFormat] call vn_ms_fnc_sfx_typeText;
Parameters
_lines: Array - (Optional, default []) Multidimensional array of lines to write
_posX: NUMBER, ARRAY - (Optional, default 0) Display position X, or X and W if an array
_posY: NUMBER, ARRAY - (Optional, default 0) Display position Y, or Y and H if an array
_rootFormat: String - (Optional, default "<t font='tt2020style_e_vn'>%1</t>") Default structured text wrapper template around each line
Return value
Script (Handle) - Script handle to typing text

Examples

Example 1
[ [ ["Operation: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], ["Eldest Son"], ["12th May 1969. 1600h"], ["SOG CCN, FOB 1, Phu Bai, South Vietnam"], [" "], ["Target AO: ", "<t align = 'left' shadow = '1' size = '1' font='tt2020style_e_vn_bold'>%1</t>"], ["Whiskey 4"] ] ] spawn vn_ms_fnc_sfx_typeText;