Well there is one slight problem...
I don't understand anything when it comes to DFHack... (I know only simple commands such as "die".)
So even if Rumrusher were to explain, I would probably not understand it. I didn't even know that cramming a deity into a unit was possible.
ok so saw the title of the thread and pop in here ok so the stuff I work on was mostly experiments with gm-editor and the result of what I did was more of a 'wonder if this works' process than a 'ok I can recreate this enough to write a script to macro the process and the original experiments was done in adv mode than dwarf/fort mode so the process to do this in fort mode would require more work in migrating the unit to the fort.
which I guess given I made a script that snatches folks from sites one could just write up a lampshade script where you pick a god out of the churches you build to gain an avatar then you just send a military group to explore some site to have the script insert the deity in said site to be pick up on the return trip back.
or you could just gm-editor toggle one of your historical figure fort citizens to become a deity and just play the game with someone who building a following by talking to others.
oh yeah said deities mortal form can die and do all the other stuff other mortals get into and I don't think there's nothing stopping a god from cursing themselves if they roll poorly on some die or the deity having kids making probably the true sense of the word demigods.
also one more thing deities avatars matches the legend mode descriptions they have so a depicted god that looks like a dog will look like a dog even if they are a dwarven god, and this probably goes for the skeletonal and zombie deities.
also I think this research got sidetrack really hard after realizing I could convince the co-adventurer elf into becoming a monarch of the dwarves through simple talks about the weather and said process can be done in vanilla, then said sidetrack led to a better solution to what I was really working on the bogeyman playable in a fort project which now that it's been completed
like as a starting point you probably need to poke around
gui/gm-editor df.global.world.history.figures
gui/gm-editor df.global.world.nemesis.all
gui/gm-editor df.global.world.world_data.sites
then bash two lua rocks together to write up a script that inserts a historical figure into a new nemesis record's figure section then shove that new deity historical figure into a site's unk_1... I don't know if the new dfhack change the name to this as I have not installed that as I'm currently doing a Dfhack break to find stuff to do in vanilla and possibly raw modding
oh yeah a good guide to finding historical figure data is...oh wait fort mode uhh go into a random fort citizen relationship page
enter
gui/gm-editor scr
then scan through the contents to notice where the diety is aligned then go into the relation_hf section and scroll down to find the id value which lets you locate the Deity historical figure id for the future ... in fort mode. and making a new nemesis should be at the bottom of the list of nemesis reports so if you're locating that ... that should be some what easier. but yeah you're right.
Warning - while you were typing a new reply has been posted. You may wish to review your post. DFHack isn't something to be intimidated by. You basically just type commands into a console.
You missed the part where if you want to do anything non-trivial and not covered by existing scripts you have to know the entire Lua API and data structures and understand exactly how the game stores information internally and what operations needed to avoid crashes, the documentation page on dfhack's site is incomplete and more terse than a 19th century English schoolteacher and the wiki simply doesn't talk about it at all.
oh yeah my grasp on lua is really bare bones and made from looking at other scripts and... asking warmist for help a couple of times.
took a solid chunk of my time wondering how to insert into a nil value until I realize it's
df.global.world.nemesis.all[the_new_nemesis_here].figure=df.global.world.history.figure[the_historical_figure]
in layman terms
but yeah this is project shifted from 'you can use gm-editors built in insert and edit functions to mess with the game' to 'you might want to macro out a lua script to do this.'
good thing there's a built in lua for dfhack that you can mess around learning lua with than having to use notepad or notepad++ or some ease of script writing program.