mwse.string⚓︎
The mwse string library provides functions for interacting with mwscript string storage.
Functions⚓︎
mwse.string.create
⚓︎
Creates a string in storage, and returns the numerical key for it.
If the string is already in storage, the previous key will be returned.
local result = mwse.string.create(value)
Parameters:
value
(string)
Returns:
result
(number)
mwse.string.get
⚓︎
Returns the numerical key for a given string in storage, or nil if the string isn't in storage.
local unnamed1 = mwse.string.get(id)
Parameters:
id
(number): Optional.
Returns:
unnamed
(string)
Last update:
February 11, 2023 19:45:50
Created: August 10, 2021 18:38:47
Created: August 10, 2021 18:38:47