dfhack/scripts/dfusion.lua

22 lines
581 B
Lua

-- a collection of misc lua scripts
2015-10-23 22:10:15 -06:00
--[[=begin
dfusion
=======
Interface to a lecacy script system.
=end]]
2012-11-01 08:00:00 -06:00
local dfu=require("plugins.dfusion")
local myos=dfhack.getOSType()
args={...}
mainmenu=dfu.SimpleMenu()
function runsave()
local path=string.format("data/save/%s/dfhack.lua",df.global.world.cur_savegame.save_dir)
print("doing file:"..path)
loadfile(path)()
2012-11-01 08:00:00 -06:00
end
mainmenu:add("Run save script",runsave)
mainmenu:add("Adventurer tools",require("plugins.dfusion.adv_tools").menu)
mainmenu:add("Misc tools",require("plugins.dfusion.tools").menu)
mainmenu:display()