# Save Data Table Value (Point)

Grammar — Save value as name in the scope|Global/Local data table
FlagsNative | 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> — Scope
  • string — Name
  • point — Value

Returns — void

native void DataTableSetPoint(
	bool global,
	string name,
	point val,
);

Category: Data Table / Save Value

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3296

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_CameraPannedFromScript_C, libGame_gv_eventParam_CameraPannedFromScript_Point_C), lp_point);
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_CameraPannedFromScript_C, libGame_gv_eventParam_CameraPannedFromScript_Player_C), lp_player);
    TriggerSendEvent(libGame_gv_eventID_CameraPannedFromScript_C);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3893

    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInTakedown_C, libGame_gv_eventParam_HeroParticipatedInTakedown_PlayerKilled_C), lp_playerKilled);
    DataTableSetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInTakedown_C, libGame_gv_eventParam_HeroParticipatedInTakedown_HeroKilled_C), lp_heroKilled);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroParticipatedInTakedown_C, libGame_gv_eventParam_HeroParticipatedInTakedown_HeroKilledPosition_C), lp_heroKilledPosition);
    TriggerSendEvent(libGame_gv_eventID_HeroParticipatedInTakedown_C);
    SoundPlayOnUnitForPlayer(SoundLink("XP_Gain_Direct", -1), c_maxPlayers, PlayerGroupSingle(lp_playerKilling), lp_heroKilled, 0.0, 100.0, 0.0);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3946

    DataTableSetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroKilled_C, libGame_gv_eventParam_HeroKilled_KilledUnit_C), lp_killedUnit);
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_HeroKilled_C, libGame_gv_eventParam_HeroKilled_PlayerKilled_C), UnitGetOwner(lp_killedUnit));
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroKilled_C, libGame_gv_eventParam_HeroKilled_Location_C), UnitGetPosition(lp_killedUnit));
    TriggerSendEvent(libGame_gv_eventID_HeroKilled_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:3992

    DataTableSetUnit(false, TriggerEventParamName(libGame_gv_eventID_HeroAllyKilled_C, libGame_gv_eventParam_HeroAllyKilled_KilledUnit_C), lp_killedUnit);
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_HeroAllyKilled_C, libGame_gv_eventParam_HeroAllyKilled_PlayerKilled_C), UnitGetOwner(lp_killedUnit));
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_HeroAllyKilled_C, libGame_gv_eventParam_HeroAllyKilled_Location_C), UnitGetPosition(lp_killedUnit));
    TriggerSendEvent(libGame_gv_eventID_HeroAllyKilled_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4051

    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_HeroID_C), lp_heroID);
    DataTableSetFixed(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_DebugXP_C), lp_debugXP);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_ManualHeroSpawn_C, libGame_gv_eventParam_ManualHeroSpawn_Location), lp_location);
    TriggerSendEvent(libGame_gv_eventID_ManualHeroSpawn_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4090

    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_Player_C), lp_player);
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnHealthPercent_C), lp_reSpawnHealthPercent);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnLocation_C), lp_reSpawnLocation);
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_RequestCustomRespawn_C, libGame_gv_eventParam_RequestCustomRespawn_RespawnMounted_C), lp_respawnMounted);
    TriggerSendEvent(libGame_gv_eventID_RequestCustomRespawn_C);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4247

    DataTableSetUnit(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Target_C), lp_TargetUnit);
    DataTableSetBool(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Boolean_C), lp_boolean);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_CheckUnitForAbilityRedirect_C, libGame_gv_eventParam_CheckUnitForAbilityRedirect_Point_C), lp_point);
    TriggerSendEvent(libGame_gv_eventID_CheckUnitForAbilityRedirect_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4490

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapTributeWarning_C, libGame_gv_eventParam_MapTributeWarning_Position_C), lp_position);
    TriggerSendEvent(libGame_gv_eventID_MapTributeWarning_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4529

    // Implementation
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_MapTributePickedup_C, libGame_gv_eventParam_MapTributePickedup_Player_C), lp_player);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapTributePickedup_C, libGame_gv_eventParam_MapTributePickedup_Position_C), lp_positioin);
    TriggerSendEvent(libGame_gv_eventID_MapTributePickedup_C);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:4664

    // Implementation
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_MapUnderworldBossStartSummoning_C, libGame_gv_eventParam_MapUnderworldBossStartSummoning_Team_C), lp_team);
    DataTableSetPoint(false, TriggerEventParamName(libGame_gv_eventID_MapUnderworldBossStartSummoning_C, libGame_gv_eventParam_MapUnderworldBossStartSummoning_Location_C), lp_location);
    DataTableSetInt(false, TriggerEventParamName(libGame_gv_eventID_MapUnderworldBossStartSummoning_C, libGame_gv_eventParam_MapUnderworldBossStartSummoning_Lane_C), lp_lane);
    TriggerSendEvent(libGame_gv_eventID_MapUnderworldBossStartSummoning_C);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3343

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(true, libCore_gf__UnitDataName(libCore_ge__UnitDataType_Point, lp_unit, lp_index), lp_point);
}

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:741

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(false, TriggerEventParamName(libVLSK_gv_eventID_VolskayaGiantRobotDies, libVLSK_gv_eventParam_VolskayaGiantRobotDies_Position), lp_position);
    DataTableSetInt(false, TriggerEventParamName(libVLSK_gv_eventID_VolskayaGiantRobotDies, libVLSK_gv_eventParam_VolskayaGiantRobotDies_OwningTeam), lp_owningTeam);
    TriggerSendEvent(libVLSK_gv_eventID_VolskayaGiantRobotDies);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:2111

    libCOMI_gf_CM_CoopAI_AttackForce_ClearTable();
    DataTableSetUnitGroup(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_ForceName(), lv_attackForce);
    DataTableSetPoint(libCOMI_gv_cMC_CoopAI_AttackForce_DataTableScope, libCOMI_gf_CM_CoopAI_AttackForce_GatherPointName(), lp_spawnLocation);
    if ((lp_dropWarpin == true)) {
        libCOMI_gf_DropPodWarpInUnitGroup(lv_attackForce, lp_spawnLocation);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:2410

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(true, libCOMI_gf_CM_CoopAI_AttackForce_WaypointName(lp_index), lp_waypoint);
}

mods/swarm.sc2modbase.sc2data/TriggerLibs/SwarmLib.galaxy:176

    // Automatic Variable Declarations
    // Implementation
    DataTableSetPoint(true, libHots_gf__UnitDataName(libHots_ge__UnitDataType_Point, lp_unit, lp_index), lp_point);
}