# Value From Data Table (Player Group)
Grammar — name from the scope|Global/Local data table
Flags —Native
|Function
Returns a player group 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 — playergroup
native playergroup DataTableGetPlayerGroup(
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
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:3344
// Automatic Variable Declarations
// Implementation
return DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_CapturePointChangesOwner_C, libGame_gv_eventParam_CapturePointChangesOwner_CapturingPlayers_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:4433
// Automatic Variable Declarations
// Implementation
return DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_MercCampCaptured_C, libGame_gv_eventParam_MercCampCaptured_Index_C));
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:4807
// Automatic Variable Declarations
// Implementation
return DataTableGetPlayerGroup(false, TriggerEventParamName(libGame_gv_eventID_MapObeliskOwnershipChange_C, libGame_gv_eventParam_MapObeliskOwnershipChange_CapturingPlayers_C));
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:2796
// Automatic Variable Declarations
// Implementation
return DataTableGetPlayerGroup(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_ExcludedPlayers_Name(lp_unitTypeIndex));
}