Skip to content

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)