# Save Data Table Value (Point)
Grammar — Save value as name in the scope|Global/Local data table
Flags —Native
|Action
Saves a point 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 ] — Scopestring
— Namepoint
— Value
Returns — void
native void DataTableSetPoint(
bool global,
string name,
point val,
);
# Related
Category: Data Table / Save Value
- [F] —
void
— Save Data Table Value (Ability Command) — ( DataTableSetAbilCmd ) - [F] —
void
— Save Data Table Value (Actor) — ( DataTableSetActor ) - [F] —
void
— Save Data Table Value (Actor Scope) — ( DataTableSetActorScope ) - [F] —
void
— Save Data Table Value (AI Filter) — ( DataTableSetAIFilter ) - [F] —
void
— Save Data Table Value (Bank) — ( DataTableSetBank ) - [F] —
void
— Save Data Table Value (Boolean) — ( DataTableSetBool ) - [F] —
void
— Save Data Table Value (Byte) — ( DataTableSetByte ) - [F] —
void
— Save Data Table Value (Camera Object) — ( DataTableSetCameraInfo ) - [F] —
void
— Save Data Table Value (Cinematic) — ( DataTableSetCinematic ) - [F] —
void
— Save Data Table Value (Color) — ( DataTableSetColor ) - [F] —
void
— Save Data Table Value (Control) — ( DataTableSetControl ) - [F] —
void
— Save Data Table Value (Conversation) — ( DataTableSetConversation ) - [F] —
void
— Save Data Table Value (Conversation Reply) — ( DataTableSetReply ) - [F] —
void
— Save Data Table Value (Dialog) — ( DataTableSetDialog ) - [F] —
void
— Save Data Table Value (Dialog Item) — ( libNtve_gf_SaveDataTableValueDialogItem ) - [F] —
void
— Save Data Table Value (Difficulty Level) — ( libNtve_gf_SaveDataTableValueDifficultyLevel ) - [F] —
void
— Save Data Table Value (Doodad) — ( DataTableSetDoodad ) - [F] —
void
— Save Data Table Value (Integer) — ( DataTableSetInt ) - [F] —
void
— Save Data Table Value (Marker) — ( DataTableSetMarker ) - [F] —
void
— Save Data Table Value (Objective) — ( DataTableSetObjective ) - [F] —
void
— Save Data Table Value (Order) — ( DataTableSetOrder ) - [F] —
void
— Save Data Table Value (Ping) — ( DataTableSetPing ) - [F] —
void
— Save Data Table Value (Planet) — ( DataTableSetPlanet ) - [F] —
void
— Save Data Table Value (Player Color) — ( libNtve_gf_SaveDataTableValuePlayerColor ) - [F] —
void
— Save Data Table Value (Player Group) — ( DataTableSetPlayerGroup ) - [F] —
void
— Save Data Table Value (Point) — ( DataTableSetPoint ) - [F] —
void
— Save Data Table Value (Portrait) — ( DataTableSetPortrait ) - [F] —
void
— Save Data Table Value (Real) — ( DataTableSetFixed ) - [F] —
void
— Save Data Table Value (Region) — ( DataTableSetRegion ) - [F] —
void
— Save Data Table Value (Revealer) — ( DataTableSetRevealer ) - [F] —
void
— Save Data Table Value (Sound) — ( DataTableSetSound ) - [F] —
void
— Save Data Table Value (Sound Link) — ( DataTableSetSoundLink ) - [F] —
void
— Save Data Table Value (String) — ( DataTableSetString ) - [F] —
void
— Save Data Table Value (Text) — ( DataTableSetText ) - [F] —
void
— Save Data Table Value (Text Tag) — ( libNtve_gf_SaveDataTableValueTextTag ) - [F] —
void
— Save Data Table Value (Timer) — ( DataTableSetTimer ) - [F] —
void
— Save Data Table Value (Transmission) — ( DataTableSetTransmission ) - [F] —
void
— Save Data Table Value (Transmission Source) — ( DataTableSetTransmissionSource ) - [F] —
void
— Save Data Table Value (Trigger) — ( DataTableSetTrigger ) - [F] —
void
— Save Data Table Value (Unit) — ( DataTableSetUnit ) - [F] —
void
— Save Data Table Value (Unit Filter) — ( DataTableSetUnitFilter ) - [F] —
void
— Save Data Table Value (Unit Group) — ( DataTableSetUnitGroup ) - [F] —
void
— Save Data Table Value (Unit Reference) — ( DataTableSetUnitRef ) - [F] —
void
— Save Data Table Value (Wave) — ( DataTableSetWave ) - [F] —
void
— Save Data Table Value (Wave Info) — ( DataTableSetWaveInfo ) - [F] —
void
— Save Data Table Value (Wave Target) — ( DataTableSetWaveTarget )
# Examples
# mods/heroesdata.stormmod
// L3296
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_CameraPannedFromScript_C, libGame_gv_eventParam_CameraPannedFromScript_Point_C), lp_point)
// L3893
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInTakedown_C, libGame_gv_eventParam_HeroParticipatedInTakedown_HeroKilledPosition_C), lp_heroKilledPosition)
// L3946
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroKilled_C, libGame_gv_eventParam_HeroKilled_Location_C), UnitGetPosition(lp_killedUnit))
// L3992
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroAllyKilled_C, libGame_gv_eventParam_HeroAllyKilled_Location_C), UnitGetPosition(lp_killedUnit))
// L4051
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_Location), lp_location)
// L4090
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnLocation_C), lp_reSpawnLocation)
// L4247
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Point_C), lp_point)
// L4490
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapTributeWarning_C, libGame_gv_eventParam_MapTributeWarning_Position_C), lp_position)
// L4529
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapTributePickedup_C, libGame_gv_eventParam_MapTributePickedup_Position_C), lp_positioin)
// L4664
DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapUnderworldBossStartSummoning_C, libGame_gv_eventParam_MapUnderworldBossStartSummoning_Location_C), lp_location)
# mods/heroesdata.stormmod
// L3343
DataTableSetPoint(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Point, lp_unit, lp_index), lp_point)
# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod
// L741
DataTableSetPoint(false, TriggerEventParamName(libVLSK_gv_eventID_VolskayaGiantRobotDies, libVLSK_gv_eventParam_VolskayaGiantRobotDies_Position), lp_position)
# mods/starcoop/starcoop.sc2mod
// L2111
DataTableSetPoint(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_GatherPointName(), lp_spawnLocation)
// L2410
DataTableSetPoint(true, libCOMI_gf_CM_CoopAI_AttackForce_WaypointName(lp_index), lp_waypoint)
# mods/swarm.sc2mod
// L176
DataTableSetPoint(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Point, lp_unit, lp_index), lp_point)