# Save Data Table Value (Revealer)

Grammar — Save value as name in the scope|Global/Local data table
FlagsNative | Action

Saves a revealer 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
  • revealer — Value

Returns — void

native void DataTableSetRevealer(
	bool global,
	string name,
	revealer val,
);

Category: Data Table / Save Value

# Examples

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

    libCOMI_gv_cM_RevealerCount += 1;
    VisRevealerCreate(lp_player, lp_area);
    DataTableSetRevealer(true, ("CM_Revealer_" + IntToString(libCOMI_gv_cM_RevealerCount)), VisRevealerLastCreated());
    DataTableSetBool(true, ("CM_RevealerOn_" + IntToString(libCOMI_gv_cM_RevealerCount)), true);
    if ((libCOMI_gv_cM_RevealersEnabled == false)) {

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

    // Automatic Variable Declarations
    // Implementation
    DataTableSetRevealer(true, ("CM_Revealer_" + IntToString(libCOMI_gf_CM_RevealerIndex(lp_r))), null);
    VisRevealerDestroy(lp_r);
}