Type function Library gamecircle.* Return value SyncableNumber Revision Release 2022.3683 Keywords Lowest, SyncableNumber, Whispersync
Returns the lowest number ever assigned to the key value.
local syncNum = gamecircle.Whispersync.GetLowestNumber(key, NT_constant)
String. The key used to access a specific lowest number.
String. The NT_constant, which is either "INT" or "DOUBLE", determins how the lowest number will be stored. "INT" cutt off the decimal value. "DOUBLE" maintain the decimal value intact. If the string given is invalid, "INT" will be used by default.
local lowNumKey = "myFirstLowNumber" local gamecircle = require("plugin.gamecircle") gamecircle.Init(false, false, true) gamecircle.Whispersync.SetLowestNumber(lowNumKey, 10, "INT") gamecircle.Whispersync.SetLowestNumber(lowNumKey, 1000, "INT") gamecircle.Whispersync.SetLowestNumber(lowNumKey, 1, "INT") gamecircle.Whispersync.SetLowestNumber(lowNumKey, 10000, "INT") gamecircle.Whispersync.SetLowestNumber(lowNumKey, 100, "INT") print("The Lowest Number is: " .. gamecircle.Whispersync.GetLowestNumber(lowNumKey, "INT").value) print("These are all the Lowest Number values stored under the current GameData set of Whispersync.") local keys = gamecircle.Whispersync.GetLowestNumberKeys() for i,key in ipairs(keys) do print("-" .. key) end