1
Utilities and 3rd Party Applications / Re: [DFHack] modtools/create-unit (version 0.4) (beta)
« on: September 15, 2016, 10:55:46 am »Quote
Would it be possible to teleport a being inside a container (cage/other) directly from the teleport command solely? As to say to simulate the game crashing effects of teleporting yourself then having someone drink you within a cup or eat you out of a bowl.
As to which, via running a dfhack script, you could via a workshop, spawn a creature then teleport it directly into a cage placed in a particular area adjacent to the workshop (in the same breadth you could just trigger a cage trap in the same configuration to get around it). same goes for objects, if you wished to create a 'sorter' between conveyorbelts if at all relevant, by having a block/workshop autonomously separate and deposit for example by use of teleporting goods around.
should be possible to put things into cages using general refs, however this is not included in the teleport script afaik so you would have to add that functionality manually. creatures may need additional flag setting when being put in cages. as for creatures contained in other items, i dont know.
as for the eating part, i doubt there is code in the game to handle the process beginning with the fact that normal creatures cant be eaten whole at all. altho vermin can, so maybe part of the game logic can be used for it (doubt it tho). either way it would be a lot of work if possible at all.
unsure if i understood the question correctly, but in principle you can write a sorting script that detects items on position or in building A and teleports them to location B or C. using a teleport script you could also make a building that transports items into another building, either instantly or when a certain condition is met (timer, reaction, ...)