Could I make a request ? -snip-
Sort of is in the new (unreleased) version already. You can run scripts on:
- user selecting workshop with "q"
- reaction being completed (not sure about low percent thing, i'll test that) - this also allows complex completion requirements (e.g. only if you have statues around, etc...) else it fails the reaction
- item/unit projectile move/hit
- item contaminate wound - when item tries to contaminate a wound, great for magical weapons ammo...
The "sort of" of my first sentence means that it's not way easy to use for raws modders (i still call myself a modder...). I could make a script that connects the "on one of those events" to "lua script" but that's the limitation (of existing system), you can't connect to other type of commands (dfhack has 3 types: native (like deramp, etc), lua script and ruby script). Also i'm working on a mod that tries to push dfhack boundaries to see what's possible and i was thinking about something like integrating raw commands (e.g. ">explode 1 4<") but for me it's way easier (and tidier) to do everything out of raws. So i'm not sure what is the best way to do it.
Well, adding new commands is different from what I meant. I dont want to give the player more dfhack options, I want to give the dwarves more dfhack options
I dont want to overburden a player with more commands and hotkeys, I would just mod in workshops and reactions. The player would still play the game as usual.
It is the same with the ammo GUI in shooters. If it is on the gun, it is part of the game, if it is in a GUI, it is outside the actual game. I'd rather have a dwarf running to a workshop called "great horn of war/alarm siren/giant bell" and sound the alarm, then have a player type ctrl+alt+s to run "siren".
But reading what you wrote... you think something like: "item equiped" would work in a script?
Dwarf equips "gauntlets of ogre strength", script raises strength of this dwarf.
Dwarf equips "flamethrower of flamy doom", script adds firebreath to this dwarf.
That would be... one of the most innovative modding capabilities I have ever seen ^^