| Function | Parameters | Returns | Description |
|---|---|---|---|
print(...) | none | Console. luna.error_log(...), luna.notify(text, color) (toast), luna.chat(text) | |
input.is_key_down(key) | VK code or "A" | bool | is_key_pressed, get_key_name, is_mouse_down(button), is_mouse_clicked, get_mouse_pos(), get_mouse_wheel(), input.VK |
json.encode(value) | string | json.decode(text) returns the value or nil, error. | |
file.read(path) | string or nil | write, append, exists, remove, rename, list(pattern), mkdir | |
database.read(key) | value | write(key, value), load(), save(table): one JSON file per script. | |
utils.base64_encode(s) | string | base64_decode, get_unix_time, get_date, fnv1a, murmur2, clipboard_get, clipboard_set | |
luna.script_name() | string | luna.unload(), luna.jit_version, luna.realtime(), luna.screen_size() |
Utilities
Utilities
Input, JSON, files, per-script database, encoding helpers and script control.