can anyone tell me how to make this mod compatible with the latest version of df?
with sufficient experience in lua, you can probably write dfusion plugins that replace the majority of runesmith's functionality in the meantime. i lack the experience though and I'm prioritizing other langs right now (MATLAB/haskell). it's doable, at least
<.< >.> I don't condone the
function tools.buffreading(unit)
if unit==nil then
unit=getAdv()
end
print("which skill 0-?")
B=getline()
print("How much?")
r=getline()
unit.status.souls[0].skills[0+B].id=93
unit.status.souls[0].skills[0+B].rating=r
end
well okay, but how do I use this code? What do I do with it to get it to function in Dfusion? Just entering the code into the .lua file seems to be unlikely to work, so what are the specifics?
Oops I forgot the tools.menu:add("Buffreading",tools.buffreading)
line which which allows you to use the function.
All i get is this in response to attempting to use it in fortress and adventure mode is this
dfusion/common.lua:262: attempt to call field '?' (a nil value) stack traceback:
dfusion/init.lua:7: in function '?'
dfusion/common.lua:262: in function 'display'
dfusion/tools.plugin.lua:7: in main chunk
[C]: in function 'xpcall'
dfusion/init.lua:12: in function 'dofile'
dfusion/init.lua:45: in function 'mainmenu'
dfusion/init.lua:99: in main chunk
though on the upside, it is appearing in the tools list as option 7.