# Value From Data Table (String)

Grammarname from the scope|Global/Local data table
FlagsNative | Function

Returns a string value from a data table. Data tables allow you to store and recall values using a string identifier.

# Arguments

  • bool [ preset::DataScope ] — Scope
  • string — Name

Returns — string

native string DataTableGetString(bool global, string name);

Category: Data Table / Load Value

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L513
DataTableGetString(true, lv_name)

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L884
DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L966
DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L6159
DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L6203
DataTableGetString(true, lib281DEC45_gf_ZSS_UIArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L8427
DataTableGetString(true, lv_name)

# campaigns/voidstory.sc2campaign

VoidCampaignMissionLib.galaxy

// L1119
DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)))
// L1132
DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)))
// L1145
DataTableGetString(true, ("PS_" + TriggerGetFunction(lp_cheatTrigger)))

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L3757
DataTableGetString(true, (libVCST_gv_pSC_REDIRECTPREFIX + (lp_character)))
// L3758
DataTableGetString(true, (libVCST_gv_pSC_REDIRECTPREFIX + (lp_character)))

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L1440
DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L1479
DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L1539
DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L1646
DataTableGetString(true, libVCUI_gf_PU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L4499
DataTableGetString(true, libVCUI_gf_PU_ProgressBarUnit_DataNameOld(lp_unit, libVCUI_ge_PU_ProgressBarUnitStoredValuesOld_Attachment))

# mods/heroes.stormmod

MapScript.galaxy

// L771
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L774
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L813
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L816
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L2101
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))
// L2193
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))
// L771
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L774
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L813
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L816
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L2101
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))
// L2193
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))

# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod

LibPBUI.galaxy

// L1602
DataTableGetString(true, ("HeroIndex_" + IntToString(libGame_gv_players[lv_itPlayer2].lv_heroIndex) + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, lv_itPlayer2))))

# mods/heroesdata.stormmod

GameLib.galaxy

// L2617
DataTableGetString(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_BadgeIndex_C))
// L2623
DataTableGetString(false, TriggerEventParamName(libGame_gv_eventID_MapSpecificAwardInitialize_C, libGame_gv_eventParam_MapSpecificAwardInitialize_ScoreValue_C))
// L4168
DataTableGetString(false, TriggerEventParamName(libGame_gv_eventID_HeroGainTalent_C, libGame_gv_eventParam_HeroGainTalent_Gained_Talent))
// L4458
DataTableGetString(false, TriggerEventParamName(libGame_gv_eventID_MapMechanicInit_C, libGame_gv_eventParam_MapMechanicInit_Mechanic_C))
// L5095
DataTableGetString(false, TriggerEventParamName(libGame_gv_eventID_CustomKillVO_C, libGame_gv_eventParam_CustomKillVOKillLine_C))
// L7504
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L7883
DataTableGetString(true, ("HeroIndex_" + IntToString(libGame_gv_players[lp_choosingPlayer].lv_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itMountCategory)))
// L7924
DataTableGetString(true, ("SprayIndex_" + IntToString(lv_randomChoice)))
// L7950
DataTableGetString(true, ("BannerIndex_" + IntToString(lv_randomChoice)))
// L7976
DataTableGetString(true, ("AnnouncerPackIndex_" + IntToString(lv_randomChoice)))

# mods/heroesdata.stormmod

HeroesLib.galaxy

// L984
DataTableGetString(true, ("SprayIndex_" + IntToString(lp_index)))
// L1049
DataTableGetString(true, ("BannerIndex_" + IntToString(lp_index)))
// L1132
DataTableGetString(true, ("AnnouncerPackIndex_" + IntToString(lp_index)))
// L1233
DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_VoiceLineIndex_" + IntToString(lp_voiceLineIndex)))
// L1368
DataTableGetString(true, ("MountIndex_" + IntToString(lp_index)))
// L1389
DataTableGetString(true, ("Mounts_MountCategory_" + lv_mountCategory + "_Index_" + IntToString(lv_itMount) + "_ID"))
// L1419
DataTableGetString(true, ("Mounts_MountCategory_" + lv_mountCategory + "_Index_" + IntToString(lv_itMount) + "_ID"))
// L1448
DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_MountCategoryIndex_" + IntToString(lv_itCategory)))
// L1457
DataTableGetString(true, ("SkinIndex_" + IntToString(lp_skinIndex) + "_MountCategoryIndex_" + IntToString(lv_itSkinCategory)))
// L1777
DataTableGetString(true, ("SkinIndex_" + IntToString(lp_index)))

# mods/heroesdata.stormmod

SupportLib.galaxy

// L465
DataTableGetString(true, ("DMGStatTrackPlayer" + lv_reportPlayerAsStr + ":Effect" + IntToString(lv_itEntry)))
// L486
DataTableGetString(true, ("HLGStatTrackPlayer" + lv_reportPlayerAsStr + ":Effect" + IntToString(lv_itEntry)))
// L2491
DataTableGetString(true, ("DMGStatTrackPlayer" + lv_damagingEffectPlayerAsStr + ":Effect" + IntToString(lv_itDamageEffect)))
// L2576
DataTableGetString(true, ("HLGStatTrackPlayer" + lv_healingEffectPlayerAsStr + ":Effect" + IntToString(lv_itHealingEffect)))
// L5759
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_heroIndex)))

# mods/heroesdata.stormmod

UILib.galaxy

// L2032
DataTableGetString(true, ("HeroIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_heroDropdown, 1)) + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, 1))))
// L2057
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L2058
DataTableGetString(true, ("HeroIndex_" + IntToString(lv_itHeroIndex)))
// L2084
DataTableGetString(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_SkinIndex_" + IntToString(lv_itSkin)))
// L2113
DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, lp_player))))
// L2118
DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_MountCategoryIndex_" + IntToString(lv_itMountCategory)))
// L2149
DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, lp_player))))
// L2150
DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_MountCategoryIndex_" + IntToString(lp_mountTypeIndex)))
// L2155
DataTableGetString(true, ("Mounts_MountCategory_" + lv_mountCategoryStr + "_Index_" + IntToString(lv_itMount) + "_ID"))
// L10781
DataTableGetString(true, ("DEBUG_AnnouncerVOSoundLink_Player_" + IntToString(lv_triggeringPlayer) + "_ListIndex_" + IntToString(lv_listIndexLeft) + "_SoundID"))

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L2129
DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)))
// L2141
DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)))
// L2153
DataTableGetString(true, ("NS_" + TriggerGetFunction(lp_cheatTrigger)))

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L3226
DataTableGetString(true, (libNCST_gv_nSC_REDIRECTPREFIX + (lp_character)))
// L3227
DataTableGetString(true, (libNCST_gv_nSC_REDIRECTPREFIX + (lp_character)))

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L567
DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L605
DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L667
DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L808
DataTableGetString(true, libNCUI_gf_NU_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L651
DataTableGetString(true, ("DebugTechSaveTechItem_" + (lv_indexTechItem)))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L2716
DataTableGetString(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_GetDataTableName_Unit(lp_unitTypeIndex))
// L5939
DataTableGetString(false, TriggerEventParamName(EventGenericName(), "EventHeroInstance"))

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L4129
DataTableGetString(true, ("CT_CorpseType_" + IntToString(lp_corpseIndex)))
// L9033
DataTableGetString(true, ("CT_ResType_" + IntToString(UnitGetTag(lv_indexResource))))

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L5098
DataTableGetString(true, ("CC_ScoreType_" + IntToString(lv_scoreIndex)))
// L5111
DataTableGetString(true, ("CC_ScoreType_" + IntToString(lv_scoreIndex)))
// L5530
DataTableGetString(true, lv_name)
// L8591
DataTableGetString(true, ("CC_ScoreType_" + IntToString(lv_scoreIndex)))

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L3580
DataTableGetString(true, libCOUI_gf_CU_ProgressBarUnit_DataNameOld(lp_unit, libCOUI_ge_CU_ProgressBarUnitStoredValuesOld_Attachment))

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L7295
DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L7327
DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L7366
DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))
// L7400
DataTableGetString(true, libA3DDD02B_gf_PP_ArchivesDataString(BattleReportPanelGetSelectedBattleReport(1)))

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L206
DataTableGetString(false, TriggerEventParamName(EventGenericName(), "Cheat"))
// L218
DataTableGetString(false, TriggerEventParamName(EventGenericName(), ("Param" + IntToString(lp_parameterIndex))))