# Save Data Table Value (Dialog Item)

Grammar — Save value as name in the scope|Global/Local data table
FlagsAction

Saves a dialog item value into a data table. Data tables allow you to store and recall values using a string identifier. If you save a data table value using a string identifier that already exists, you will overwrite the old value, even if it is a different data type than the value you are saving.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name
  • int [ control ] — Value

Returns — void

void libNtve_gf_SaveDataTableValueDialogItem(
	bool lp_scope,
	string lp_name,
	int lp_value,
);

Category: Data Table / Save Value

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L8324
libNtve_gf_SaveDataTableValueDialogItem(true, (libSwaC_gv_zSC_ArmyCalloutFlashDataPrefix + (lp_armyCategory)), DialogControlLastCreated())
// L14587
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("Button", (lp_mission)), DialogControlLastCreated())
// L14594
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("StateLabel", (lp_mission)), DialogControlLastCreated())
// L14599
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("TechLabel", (lp_mission)), DialogControlLastCreated())
// L14604
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("BonusLabel", (lp_mission)), DialogControlLastCreated())
// L14610
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("PlayButton", (lp_mission)), DialogControlLastCreated())
// L14616
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("PlayImage", (lp_mission)), DialogControlLastCreated())
// L14692
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("PlanetButton", ("Expedition")), DialogControlLastCreated())
// L14694
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("PlanetImage", ("Expedition")), DialogControlLastCreated())
// L14708
libNtve_gf_SaveDataTableValueDialogItem(true, libSwaC_gf_ZS_DebugProgressDataTableID("PlanetButton", ("Char")), DialogControlLastCreated())

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L900
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("Button", (lp_mission)), DialogControlLastCreated())
// L907
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("StateLabel", (lp_mission)), DialogControlLastCreated())
// L912
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("TechLabel", (lp_mission)), DialogControlLastCreated())
// L917
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("ChampionLabel", (lp_mission)), DialogControlLastCreated())
// L923
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("PlayButton", (lp_mission)), DialogControlLastCreated())
// L929
libNtve_gf_SaveDataTableValueDialogItem(true, libVoiC_gf_PC_DebugProgressDataTableID("PlayImage", (lp_mission)), DialogControlLastCreated())

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L4362
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Panel), lv_progressBarPanel)
// L4363
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar), lv_progressBarProgressBar)
// L4364
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Label), lv_progressBarLabel)
// L4365
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value), lv_progressBarValue)
// L4411
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Panel), lv_noDialogItem)
// L4412
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar), lv_noDialogItem)
// L4413
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value), lv_noDialogItem)
// L4414
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_ProgressBarUnit_DialogNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnit_DialogTypesOld_ProgressBar_Label), lv_noDialogItem)
// L4649
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_UnitProgressBar_Dialog(lp_unit, libVCUI_ge_PU_UnitProgressBar_DialogTypes_ProgressBar_Label), lv_progressBarLabel)
// L4650
libNtve_gf_SaveDataTableValueDialogItem(true, libVCUI_gf_PU_UnitProgressBar_Dialog(lp_unit, libVCUI_ge_PU_UnitProgressBar_DialogTypes_ProgressBar_Value), lv_progressBarValue)

# mods/missionpacks/campaigncommon.sc2mod

LibCMUI.galaxy

// L197
libNtve_gf_SaveDataTableValueDialogItem(true, libCMUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCMUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Label), lv_progressBarLabel)
// L198
libNtve_gf_SaveDataTableValueDialogItem(true, libCMUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCMUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Value), lv_progressBarValue)
// L199
libNtve_gf_SaveDataTableValueDialogItem(true, libCMUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCMUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Bar), lv_progressBar)
// L200
libNtve_gf_SaveDataTableValueDialogItem(true, libCMUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCMUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Broder), lv_progressBarBorder)

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L810
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("Button", (lp_mission)), DialogControlLastCreated())
// L817
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("StateLabel", (lp_mission)), DialogControlLastCreated())
// L822
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("TechLabel", (lp_mission)), DialogControlLastCreated())
// L827
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("ChampionLabel", (lp_mission)), DialogControlLastCreated())
// L833
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("PlayButton", (lp_mission)), DialogControlLastCreated())
// L839
libNtve_gf_SaveDataTableValueDialogItem(true, libNovC_gf_NC_DebugProgressDataTableID("PlayImage", (lp_mission)), DialogControlLastCreated())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L3443
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Panel), lv_progressBarPanel)
// L3444
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar), lv_progressBarProgressBar)
// L3445
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Label), lv_progressBarLabel)
// L3446
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value), lv_progressBarValue)
// L3492
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Panel), lv_noDialogItem)
// L3493
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_ProgressBar), lv_noDialogItem)
// L3494
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Value), lv_noDialogItem)
// L3495
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_ProgressBarUnit_DialogNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnit_DialogTypesOld_ProgressBar_Label), lv_noDialogItem)
// L3730
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCOUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Label), lv_progressBarLabel)
// L3731
libNtve_gf_SaveDataTableValueDialogItem(true, libCOUI_gf_CU_UnitProgressBar_Dialog(lp_unit, libCOUI_ge_CU_UnitProgressBar_DialogTypes_ProgressBar_Value), lv_progressBarValue)