Es.keygroupload
From EventScripts Community Encyclopedia
[edit] Method: keygrouploadModule: es [edit] Method Overview[edit] Table of Contents
[edit] DescriptionThis is the Python equivalent of: http://www.eventscripts.com/pages/es_keygroupload [edit] Arguments
[edit] ExamplesSay you have make a file called es_mykeygroup_db.txt (Notice it must be prefixed with es_ and suffixed with _db and it must be a .txt file). We'll put that file in addons/eventscripts/scriptname/ and then let's just stuck some information in it: "mykeygroup" { "key1" { "keyvalue" "value" } } es.keygroupload("mykeygroup", "|scriptname") This will load that keygroup into memory so we can use it to retrieve keyvalues and add/delete keys, etc. [edit] Notesyou can save it back to the memory like so es.keygroupsave("mykeygroup", "|scriptname") this will save mykeygroup to addons/eventscripts/scriptname as es_mykeygroup_db.txt [edit] See Also |
|
