vitsum / evertech-proposals

1 stars 0 forks source link

Save and load arrays in lua #4

Open vitsum opened 11 months ago

vitsum commented 11 months ago

the evertech sandbox documentation don't have any method to save and load an array. so, i message you to add a new lua command for evertech sandbox lua.

es.getArray(key,value,index) key: the keyword to get value: the orginal value when it haven't created before index: get the value with given index

es.setArray(key,value,index) key: the keyword to set value: the new value to set index: set the index with new value

es.insertArray(key,value,index) key: the keyword to insert value: the new value to insert index (optional): the index location to insert. if you leave it empty, it will insert at the end of the array

es.sortArray(key) key: the keyword to sort (this command will sort the array with the first letter in the order of ascii table)

es.deleteArray(key,index) key: the keyword to delete index (optional): the index to delete, if you leave it empty, it will delete the key

Chấn Hưng Dương