# Value From Data Table (Unit)
Grammar — name from the scope|Global/Local data table
Flags —Native
|Function
Returns a unit value from a data table. Data tables allow you to store and recall values using a string identifier.
# Arguments
bool
<preset::DataScope> — Scopestring
— Name
Returns — unit
native unit DataTableGetUnit(bool global, string name);
# Related
Category: Data Table / Load Value
- Value From Data Table (Ability Command) —
abilcmd
— DataTableGetAbilCmd - Value From Data Table (Actor) —
actor
— DataTableGetActor - Value From Data Table (Actor Scope) —
actorscope
— DataTableGetActorScope - Value From Data Table (AI Filter) —
aifilter
— DataTableGetAIFilter - Value From Data Table (Bank) —
bank
— DataTableGetBank - Value From Data Table (Boolean) —
bool
— DataTableGetBool - Value From Data Table (Byte) —
byte
— DataTableGetByte - Value From Data Table (Camera Object) —
camerainfo
— DataTableGetCameraInfo - Value From Data Table (Cinematic) —
int
<cinematic> — DataTableGetCinematic - Value From Data Table (Color) —
color
— DataTableGetColor - Value From Data Table (Control) —
int
<control> — DataTableGetControl - Value From Data Table (Conversation) —
int
<conversation> — DataTableGetConversation - Value From Data Table (Conversation Reply) —
int
<reply> — DataTableGetReply - Value From Data Table (Dialog) —
int
<dialog> — DataTableGetDialog - Value From Data Table (Dialog Item) —
int
<control> — libNtve_gf_ValueFromDataTableDialogItem - Value From Data Table (Difficulty Level) —
int
<difficulty> — libNtve_gf_ValueFromDataTableDifficultyLevel - Value From Data Table (Doodad) —
doodad
— DataTableGetDoodad - Value From Data Table (Integer) —
int
— DataTableGetInt - Value From Data Table (Marker) —
marker
— DataTableGetMarker - Value From Data Table (Objective) —
int
<objective> — DataTableGetObjective - Value From Data Table (Order) —
order
— DataTableGetOrder - Value From Data Table (Ping) —
int
<ping> — DataTableGetPing - Value From Data Table (Planet) —
int
<planet> — DataTableGetPlanet - Value From Data Table (Player Color) —
int
<playercolor> — libNtve_gf_ValueFromDataTablePlayerColor - Value From Data Table (Player Group) —
playergroup
— DataTableGetPlayerGroup - Value From Data Table (Point) —
point
— DataTableGetPoint - Value From Data Table (Portrait) —
int
<portrait> — DataTableGetPortrait - Value From Data Table (Real) —
fixed
— DataTableGetFixed - Value From Data Table (Region) —
region
— DataTableGetRegion - Value From Data Table (Revealer) —
revealer
— DataTableGetRevealer - Value From Data Table (Sound) —
sound
— DataTableGetSound - Value From Data Table (Sound Link) —
soundlink
— DataTableGetSoundLink - Value From Data Table (String) —
string
— DataTableGetString - Value From Data Table (Text) —
text
— DataTableGetText - Value From Data Table (Text Tag) —
int
<preset::TextTag> — libNtve_gf_ValueFromDataTableTextTag - Value From Data Table (Timer) —
timer
— DataTableGetTimer - Value From Data Table (Transmission) —
int
<transmission> — DataTableGetTransmission - Value From Data Table (Transmission Source) —
transmissionsource
— DataTableGetTransmissionSource - Value From Data Table (Trigger) —
trigger
— DataTableGetTrigger - Value From Data Table (Unit) —
unit
— DataTableGetUnit - Value From Data Table (Unit Filter) —
unitfilter
— DataTableGetUnitFilter - Value From Data Table (Unit Group) —
unitgroup
— DataTableGetUnitGroup - Value From Data Table (Unit Reference)
- Value From Data Table (Wave) —
wave
— DataTableGetWave - Value From Data Table (Wave Info) —
waveinfo
— DataTableGetWaveInfo - Value From Data Table (Wave Target) —
wavetarget
— DataTableGetWaveTarget
# Examples
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7828
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(true, (libSwaC_gv_zSC_ArmyCustomEggUnitDataPrefix + (lp_armyCategory)));
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:5203
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, "%REPLACEDUNIT%");
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:4448
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, "%REPLACEDUNIT%");
}
mods/heroesbrawlmods/brawlmapmods/coop/pvebrawlmod.stormmod — base.stormdata/LibPVEB.galaxy:802
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libPVEB_gv_eventID_NPCHeroSpawn_C, libPVEB_gv_eventParam_NPCHeroSpawn_HeroUnit_C));
}
mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod — base.stormdata/LibPVEM.galaxy:1009
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libPVEM_gv_pvEEventIDNPCHeroSpawn_C, libPVEM_gv_pvEEventParamNPCHeroSpawnHeroUnit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:477
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGDHL_gv_eventID_AbathurUltimateEvolutionEnded_C, libGDHL_gv_eventParam_AbathurUltimateEvolution_ClonedUnit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:530
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGDHL_gv_eventID_AbathurSymbiote_C, libGDHL_gv_eventParam_AbathurSymbiote_SymbioteUnit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:536
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGDHL_gv_eventID_AbathurSymbiote_C, libGDHL_gv_eventParam_AbathurSymbiote_SymbioteTarget_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3479
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_JungleDefenderAIDefenderKilled_C, libGame_gv_eventParam_JungleDefenderAIDefenderKilled_Unit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3651
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInCreepTakedown_C, libGame_gv_eventParam_HeroParticipatedInCreepTakedown_NPC_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3689
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroExitedTransport_C, libGame_gv_eventParam_HeroExitedTransport_Transport_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3716
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroEnteredTransport_C, libGame_gv_eventParam_HeroEnteredTransport_Transport_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3722
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroEnteredTransport_C, libGame_gv_eventParam_HeroEnteredTransport_CargoUnit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3793
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroPortedBackToTown_C, libGame_gv_eventParam_HeroPortedBackToTown_Unit_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3819
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInNPCTakedown_C, libGame_gv_eventParam_HeroParticipatedInNPCTakedown_NPC_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3845
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroWitnessedAlliedNPCDeath_C, libGame_gv_eventParam_HeroWitnessedAlliedNPCDeath_NPC_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3871
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_SpecialCaseUnitParticipatedInNPCTakedown_C, libGame_gv_eventParam_SpecialCaseUnitParticipatedInNPCTakedown_NPC_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3919
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInTakedown_C, libGame_gv_eventParam_HeroParticipatedInTakedown_HeroKilled_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3397
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Unit, lp_unit, lp_index));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5962
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "EventHero"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:5980
// Automatic Variable Declarations
// Implementation
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "EventStructure"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6371
auto43A95D7E_val = lp_unit;
if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ZeratulUnit) {
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventUnit"));
}
else if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ArtifactUnit) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6374
}
else if (auto43A95D7E_val == libCOMI_ge_CM_ZeratulProphecyEventUnits_ArtifactUnit) {
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventArtifactUnit"));
}
else {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6378
else {
}
return DataTableGetUnit(false, TriggerEventParamName(EventGenericName(), "ZeratulEventUnit"));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:32698
TriggerEnable(TriggerGetCurrent(), false);
if ((libNtve_gf_UnitInRegion(libCOMI_gv_cM_ZeratulProphecyArtifact, RegionCircle(UnitGetPosition(DataTableGetUnit(false, TriggerEventParamName(("ZeratulEvent_ProphecyCastStart"), "ZeratulEventUnit"))), 14.0)) == false)) {
libCOMI_gf_CM_CommanderVOSend(libCOMI_gf_CM_ZeratulProphecyEventGetPlayer(), SoundLink("ZeratulCommander_FindArtifact", -1), libCOOC_gf_CC_PlayersOfCommander("ProtossZeratul"));
Wait(libCOMI_gv_cMC_ZeratulVOTransmissionProphacyCastDelay, c_timeGame);