CosmicGerbil How do you add in a new race to T3? When I try, all it does it show all the subraces. And I have been deleting the raw files.
This thread explains the problem in more detail http://forum.t-o-m-e.net/viewtopic.php?t=7319
OK, I have tried deleting all raw files and I have also looked at all other files I can find, but I just don't know what to do. I have added in a race, but my new race isn't even appearing on the start up screen
Please can someone help.
Thanks from Cosmic Gerbil
NeilStevens: If I understand correctly what DG told me once, the subraces *are* what you want to add. Races are just groups of subraces, and subraces are what you actually choose (just like how classes are organized).
OK thanks
I will try that out when I get home from college.
DarkGod: Actually the T-Engine3 birth process does not know what a race or class or subrace or whatever is. Check data/player/birth.lua, this is where the order and types is given.
It worked
Here's what I did. In Gerband/data/player/races I put:
new_player_descriptor
{
type = "race"
define_as = "RACE_GERBIL"
name = "Gerbil"
desc = {
"Gerbils are furry rodents that live in burrows in the deserts.",
}
descriptor_choices =
{
subrace =
{
Agouti = "allow"
Albino = "allow"
__ALL__ = "never"
}
}
stats = { [A_STR]=0, [A_INT]=1, [A_WIS]=0, [A_DEX]=0, [A_CON]=1, [A_CHR]=1, }
life_rating = 10
experience = 100
age = { 20, 5 }
weight =
{
female = { 150, 5 }
male = { 155, 5 }
}
height =
{
female = { 82, 10 }
male = { 90, 10 }
}
infravision = 0
--flags = { ELF=1 }
}
And in subraces I put
new_player_descriptor
{
type = "subrace"
define_as = "SUBRACE_AGOUTI"
name = "Agouti"
desc = {
"The natural wild gerbil.",
"They are smart and tough.",
}
}
new_player_descriptor
{
type = "subrace"
define_as = "SUBRACE_ALBINO"
name = "Albino"
desc = {
"A white furred mutation of gerbil.",
"Their eyes are less resistance to light.",
}
}
And it worked
Thanks for helping me out guys.
ShrikeDecil: Is this page redundant now? It's linked from the 'ToME 3.0 things to do' sheet, and there's a new entry 'HOWTOs' with a more detailed version of this. Yes? 'help... problem with deleted sub-race' is answered too? Should they be linked to from the HOWTO? Or dropped as 'answered'?
NeilStevens: Feel free to merge this example with another page if you think it's redundant. Just make sure to correct all incoming links, please.
ShrikeDeCil: Is there a shortcut of some sort to search for "Everything that links to here."? The 'LocalSiteMap' is a map of 'children' pages....
NeilStevens: Click the title of the page to do a search on that text.
CosmicGerbil The link for Gerband when it was spelled with a capital B didn't actually go to a page, sorry. It is just sometimes I spell Gerband with a capital B. I have changed it now
ToME Wiki