@ -46,7 +46,7 @@ function processTrigger(command)
command2[i] = arg
end
print(dfhack.run_command(table.unpack(command2)))
dfhack.run_command(table.unpack(command2))
function fillTable(table1,table2)
@ -96,7 +96,7 @@ eventful.onJobCompleted.reactionTrigger = function(job)
local didSomething
if action.command then
local processed = processCommand(job, worker, worker, building, action.command)
print(dfhack.run_command(table.unpack(processed)))
dfhack.run_command(table.unpack(processed))
if action.syndrome then
didSomething = syndromeUtil.infectWithSyndromeIfValidTarget(worker, action.syndrome, action.resetPolicy) or didSomething
@ -48,8 +48,7 @@ repeat
if args[i]~='\\SKILL_UNIT_ID' then table.insert(command,args[i]) else table.insert(command,args[1]) end
until i>#args or args[i]:find('DICEROLL')
local out = dfhack.run_command(table.unpack(command))
print(out)
dfhack.run_command(table.unpack(command))
scriptIsFinished=true
else
i=i+1