a493a51f7c
fix some luacheck warnings
2025-03-30 21:47:26 +03:00
a80c8eb66b
fix a typo causing "undeclared global t" warning
2025-03-30 21:46:57 +03:00
4e0c194e98
add players
magic variable
2025-03-27 21:51:44 +03:00
7892615f3c
actually use oir for oir
2025-03-27 00:07:17 +03:00
65e1e684d3
replace this_node_pos
with above
/under
; avoid errors in magic
2025-03-26 16:28:55 +03:00
8a21524ade
fix crash when running eval without player online
2025-03-26 16:05:56 +03:00
94abeadbf3
add boring "help" variable
2025-03-25 14:14:39 +03:00
a5a6ba6630
add goir() and oir()
2025-03-25 13:01:52 +03:00
82502c833b
move code around
2025-03-25 11:51:34 +03:00
723bab7fd8
rename dir2() to keys()
2025-03-25 00:36:35 +03:00
1688a712cb
provide dir and dir2 functions for listing table keys
...
Both functions don't expand tables used as keys/values.
`dir(table)` will list `key = value` pairs, but non-recursively.
`dir2(table)` will only list the keys.
These functions return nothing and are to be used only interactively.
2025-03-25 00:28:33 +03:00
b4c641bc57
add dir
convenience function to list table keys
...
Useful to explore tables
2025-03-25 00:11:08 +03:00
bf99ec97bc
some quality of life features for using global vars
2025-03-20 12:43:45 +03:00
9c76127516
add logging
...
Logs entered code and error, if happens.
2025-03-20 11:07:25 +03:00
86b59e4d08
fix crash on dump because of assumtion that every ref as is_valid
2024-12-11 23:51:27 +03:00
44d24e549d
better handle cases when "nothing" is returned
2024-12-11 17:23:24 +03:00
e819fbe5d9
make sure to show nil
when api call returns nothing
2024-12-11 17:11:08 +03:00
733a1690fe
couple of comments
2024-12-09 20:54:51 +03:00
af2f0939da
prefix each output line with a pipe symbol - easier to see things
2024-12-09 20:39:51 +03:00
e42862a9b0
add print() that will print to chat
2024-12-09 20:39:25 +03:00
6daaafc721
modify dump() function to work better in repl
2024-12-09 14:05:58 +03:00
5914d04f68
remove moved var
2024-12-09 13:16:26 +03:00
de63351c41
add pointing to objects and nodes
2024-12-08 20:41:45 +03:00
87bd7a098c
better name for variable
2024-12-08 18:35:13 +03:00
80b76037fb
store last result in '_'
2024-12-08 18:32:39 +03:00
929472938f
just brute force adding return
2024-12-08 18:26:00 +03:00
5aaf227715
create command environments
2024-12-08 18:19:26 +03:00
5c8e627bd6
use coroutine to get a clean stack trace
2024-12-08 16:54:12 +03:00
4b981f3482
a simple /eval command
2024-12-08 16:31:09 +03:00