>.> I totally have it hotkeyed, and I'm resisting the urge to expand it to things that I know I can do like, set everything in an inventory on fire, and I'm pretty sure with a bit of fiddling you could set creatures on fire, but I like the straightforward "I want this item to be on fire now" nature of it.
unit/body-change -unit \\UNIT_ID -token UB -temperature fire
^ Sets the upper body of a creature on fire (from my scripts)
Nice, I was sitting in a forest retreat and all the sleeping elves were boring so I pulled up the loincloth of one and flipped the on_fire flag manually then giggled forever at them setting the tree on fire.
They did it so much faster than going around igniting branches one at a time and I realized there wasn't a script to say "this item should be on fire" and now there is. I'll probably add in an inventory flag to set all the items on a unit on fire, and see if I can get a -here for everything in a square working.
Edit: Oh god...
>.>
local tinder
if dfhack.gui.getCurFocus() == 'item' then
tinder=dfhack.gui.getCurViewscreen().item
tinder.flags.on_fire=true
elseif dfhack.gui.getSelectedUnit(true) then
tinder=dfhack.gui.getSelectedUnit(true).inventory
for k,v in ipairs(tinder) do
tinder[k].item.flags.on_fire=true
end
elseif df.global.ui_advmode.menu==1 then
local curpos=df.global.cursor
df.global.world.fires:insert('#',{new=df.fire})
local hot = df.global.world.fires
for _,k in ipairs(hot) do
if k.temperature==0 then
local spot = k
k.pos.x=curpos.x
k.pos.y=curpos.y
k.pos.z=curpos.z
k.timer=1000
k.temperature=60000
end
end
end
Item by item, or entire inventory at once! Weeee!
Oh dear, now you can set an item on fire by viewing it, an inventory on fire by viewing a unit, or a location on fire by putting the cursor there.
______________________________________________
Oh, and thanks again for doing the work to make propel, I love being able to launch myself around like a ninja so much.
As for the fight bit, change the target? Try to have it knock out a tooth, or strike the upper body or something?
Hmmm, initiating a grapple tends to reliably start at least a brawl when can then escalate easily enough.
I'm still playing with it a bit, though I'm wondering now if you could make it pull up the body part/attack part/confirm menu because I envy my npc companions for being able to wail on people I've knocked into the air.