# Set Dialog Item Text Writeout Duration

Grammar — Set dialogItem text writeout duration to duration for players
FlagsAction

This controls the time it takes for the text to animate if “Set Dialog Item Text Writeout” is set to true.

# Arguments

  • int<control> — Dialog Item
  • fixed — Duration
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemTextWriteoutDuration(
	int lp_dialogItem,
	fixed lp_duration,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3969

    lv_text = DialogControlLastCreated();
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), 13.0, PlayerGroupAll());
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), ConversationDataStateText("StoryText|StoryText03", "Text"), PlayerGroupAll());
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ArcadeIntroText", PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:8508

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 800, 1200);
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), 9.0, PlayerGroupAll());
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/EC38987D"), PlayerGroupAll());
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ArcadeIntroText", PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:3969

    lv_text = DialogControlLastCreated();
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), 13.0, PlayerGroupAll());
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), ConversationDataStateText("StoryText|StoryText03", "Text"), PlayerGroupAll());
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ArcadeIntroText", PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:8508

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 800, 1200);
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), true, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), 9.0, PlayerGroupAll());
    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), StringExternal("Param/Value/EC38987D"), PlayerGroupAll());
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "ArcadeIntroText", PlayerGroupAll());

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2677


    if ((lp_textWriteout == true)) {
        libNtve_gf_SetDialogItemTextWriteoutDuration(lv_dialogitem, lp_textWriteoutDuration, PlayerGroupAll());
    }

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2130


    if ((lp_textWriteout == true)) {
        libNtve_gf_SetDialogItemTextWriteoutDuration(lv_dialogitem, lp_textWriteoutDuration, PlayerGroupAll());
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:222

    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), lp_msg, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), lp_writeOut, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), libStEx_gv_sE_MsgWriteOutDuration, PlayerGroupAll());
    libStEx_gv_sE_HintMsgLabel = DialogControlLastCreated();
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/StartingExperienceLib.galaxy:294

    libNtve_gf_SetDialogItemText(DialogControlLastCreated(), lp_msg, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteout(DialogControlLastCreated(), lp_writeOut, PlayerGroupAll());
    libNtve_gf_SetDialogItemTextWriteoutDuration(DialogControlLastCreated(), libStEx_gv_sE_MsgWriteOutDuration, PlayerGroupAll());
    Wait(lp_duration, c_timeGame);
    DialogControlFadeTransparency(lv_localPanel, PlayerGroupAll(), 1.0, 100.0);