Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Playing as other races in adventure.  (Read 405 times)

farecoal

  • Bay Watcher
    • View Profile
Playing as other races in adventure.
« on: August 27, 2010, 10:22:23 am »

So, as the title says, how would I go about editing the raws to make the cave swallow, bat man, etc. races playable? I've already done goblins and kobolds.
Logged
Tis a Dwarven Curse to wish Water upon thy enemies, something like "May all yer Ale Barrels run dry and yer tongue always taste water."

rex mortis

  • Bay Watcher
    • View Profile
Re: Playing as other races in adventure.
« Reply #1 on: August 27, 2010, 10:46:40 am »

You can create a new entity for those races. If you just want to go play now, it is very easy. Add this to the bottom of entity_default.txt in df/raw/objects folder.

Code: [Select]
[ENTITY:<whatever, just something unique>]
[ADVENTURE_TIER:<number here, must not be same as another entity>]
[CREATURE:<the id of the race you want here>]
[TRANSLATION:<refer to the language file you want to use if you want them to have names>]
[INDIV_CONTROLLABLE]

An example from Deon's Genesis mod.
Code: [Select]
[ENTITY:CHANGELINGS]
[ADVENTURE_TIER:13]
[CREATURE:WEREWOLF]
[TRANSLATION:GOBLIN]
In this case you must have defined a race WEREWOLF and have a file named language_GOBLIN.txt in the raw folder.

The race id's can probably be found in wiki or you can just check creature_subterranean.txt. You can add as many entities as you like, just remember to generate a new world. You cannot add entities to an existing save. You'll only get naked, unskilled adventurers though. Getting them to start with equipment and skills is quite a bit more work.
« Last Edit: August 27, 2010, 10:48:42 am by rex mortis »
Logged
Because death is peaceful and magma is lovely.

farecoal

  • Bay Watcher
    • View Profile
Re: Playing as other races in adventure.
« Reply #2 on: August 27, 2010, 10:59:50 am »

Alright, thanks.
Logged
Tis a Dwarven Curse to wish Water upon thy enemies, something like "May all yer Ale Barrels run dry and yer tongue always taste water."