User Tools

Site Tools


lua:savetbl

savetbl

Syntax: savetbl( filename, table)

Saves 'table' in a file named according to 'filename' arg in the area directory (home area, not current area) of the mob/obj/area calling savetbl.

Example:

local abc={1,2,3}
savetbl("whatev", abc)

loadtbl

Syntax: loadtbl( filename )

If 'filename' file exists in the area directroy of the mob/obj/area calling loadtbl then returns the table stored in it, otherwise returns nil. Example:

local oink=loadtbl("whatev")

Example script: Sharing Info Between Progs

lua/savetbl.txt · Last modified: 2014/12/24 05:32 by vodur