Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: DFHack questions  (Read 917 times)

DaSwayza

  • Bay Watcher
    • View Profile
DFHack questions
« on: April 25, 2016, 09:43:03 pm »

Can I get some assistance using DFHack's spawn-unit? I have tried everything I know to do. Thank you
« Last Edit: April 25, 2016, 10:00:28 pm by DaSwayza »
Logged

pantsentranced

  • Escaped Lunatic
    • View Profile
Re: DFHack questions
« Reply #1 on: April 30, 2016, 12:16:23 am »

spawnunit is a wrapper for modtools/create-unit.

the latter can be used to spawn hostile creatures by pressing 'k' and positioning your cursor in DF, and then entering the following command into dfhack:

modtools/create-unit -race HYDRA -caste MALE -age 10 -civId [ -1 ] -flagSet [ active_invader marauder ]

the names of the different races that you can spawn are found in the /raw/objects folder.

hope that helps!
Logged

hanni79

  • Bay Watcher
    • View Profile
Re: DFHack questions
« Reply #2 on: May 14, 2016, 09:38:23 am »

Hmm ...

I just tried to spawn a breeding pair of GCS ( I had even caught some, but while hauling them some dumb humans killed them :( ) with modtools/create-unit -race SPIDER_CAVE_GIANT -caste MALE -age 5 and
modtools/create-unit -race SPIDER_CAVE_GIANT -caste MALE -age 5. But instead of doing some sweet, sweet love they instantly started fighting.

Can you or anyone else enlighten me how to stop this ?
P.S. I don't want tame ones they have to be wild. Also, what does the civId do ? Sorry, I'm a total noob with that stuff ^^ When I added the -civID, it showed a lot of red text...
« Last Edit: May 14, 2016, 09:57:45 am by hanni79 »
Logged