Thanks for your replies, Erendir, PatrikLundell, Roses. I've already done some small scripts by experimenting, reading scripts of others. Sometimes I had the feeling I was running against a wall, because after a whole evening of trial and error, I hardly got 20-30 lines of working code. So the question was: did I overlook something? This should be easier. But it seems, I need to develop more skill in researching the available code base.
I recently (with 0.47 release) got interest in writing dfhack scripts (in Lua), an was facing same problems you do now.
The built-in `lua` REPL is actually a great help. F.e.
...
This was enough for me for the beginning, and then I switched to a full-text search for keywords in dfhack sources.
The LUA REPL looks promising, I will surely give it a try. I already tried to use the dfhack sources, but I was not able to make much use of that information in LUA so far. One of my approaches was to find the namespace the LUA interpreter is using to resolve the symbols being used in the LUA code. Any pointers here? Is this idea a dead end?
I use gui/gm-editor to look at things in DF.
Already did that for stuff related to creatures. But it seems, it is not really usefull for general world items. Am I overlooking something here, too?