What specifically is "not working"? Does it produce an error message, or does it just do nothing?
Just does nothing.
Are you certain that you've saved that file as hack/scripts/terminator/eatyourlead.lua (or another valid scripts folder)?
Saved in raw/scripts/terminator/eatyourlead.lua. Switching the interaction-trigger -command section to the full path did nothing, and moving it to the hack/scripts and switching to that full path just produced this error
After switching to terminator/eatyourlead then did nothing.
What does running "type terminator/eatyourlead" in the DFHack console give you?
Type terminator/eatyourlead gives me "terminator/eatyourlead is a Lua script" and then links to that "raw/scripts/terminator/eatyourlead.lua" path and gave me the same error, from what I can tell, but here's that one just in case it isn't.
What if you put a print statement in your script - does it print something to the console?
Doesn't seem to print anything. The eatyourlead script became this when I changed it.
local gui = require 'gui'
dfhack.println('BOOM!')
Is your -onAttackStr argument spelled correctly?
Seems to be spelled right.
On top of that, I tried replacing double quotes with single quotes, and checking the stderr.log seems to be invoking the modtools/interaction-trigger commands in the init properly. Randomly said "UNKNOWN CLASS 'viewscreen_commandpromptst': vtable = 0x7fedd8489b0" in there too, which I'm assuming isn't related. I should also note that I'm using "dfhack-0.44.10-r1-Windows-64".