Wizloadlua
Jump to navigation
Jump to search
wizloadlua is an extended command only available in wizard mode. It allows you to run an arbitrary lua file. The file must be in the NetHack playground. The command prompts for the lua file name, which can be entered without the ".lua" suffix. It cannot access files from inside the nhdat-file.
For example, create a file called tmp.lua in the playground, with the following contents:
for i = 1,100 do
des.object({ x = u.ux-1, y = u.uy });
end
You can then do #wizloadlua, enter tmp as the file to load, and the code will create 100 random objects on the floor under the hero's location.
- This page is a stub. Should you wish to do so, you can contribute by expanding this page.