How do you associate racial talents with a race?

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
aberk
Higher
Posts: 46
Joined: Sat Dec 18, 2010 12:58 am

How do you associate racial talents with a race?

#1 Post by aberk »

I am thinking about designing a new race, but can't find out how to associate a racial talent tree with a race. Any guidance will be deeply appreciated.

Zonk
Sher'Tul
Posts: 1067
Joined: Sat Mar 01, 2003 4:01 pm

Re: How do you associate racial talents with a race?

#2 Post by Zonk »

Pretty simple:

Code: Select all

talents_types = { [x]={true, 0} },
in the racial entry, where x is the talent tree name.

You can check some racial entries, for example Highers( check /game/modules/tome/data/birth/races/human.lua) have:

Code: Select all

talents_types = { ["race/higher"]={true, 0} },
(they also have

Code: Select all

talents = {
		[ActorTalents.T_HIGHER_HEAL]=1,
	},
so they get the first talent of the tree for free.)
ToME online profile: http://te4.org/users/zonk
Addons (most likely obsolete): Wights, Trolls, Starting prodigy, Alternate save/resistance system

Post Reply