How hard would it be to get rid of undead racial restriction


Questions, Explanations, Howtos

User avatar

Blades Runner

Posts: 568

Joined: Wednesday, 5th March 2014, 03:52

Post Tuesday, 10th May 2016, 23:01

How hard would it be to get rid of undead racial restriction

I don't know anything about coding AT ALL, but I play a lot of random characters, and every time I get "ghoul transmuter" or "mummy berserker" I just think "Well, this is going to be stupid and boring and not fun."

How hard would it be to change the source code to make those characters not stupid and not boring and fun, instead?
User avatar

Dungeon Master

Posts: 431

Joined: Tuesday, 13th September 2011, 17:34

Post Thursday, 12th May 2016, 07:15

Re: How hard would it be to get rid of undead racial restric

it's super easy, you just find the line where it says int fun = 0 and change it to int fun = 255

(explain what you want changed, then maybe we can give you a real answer)

Halls Hopper

Posts: 74

Joined: Sunday, 21st February 2016, 14:55

Post Wednesday, 22nd June 2016, 17:46

Re: How hard would it be to get rid of undead racial restric

It's not hard if you want to remove the "undead" quality of all species. Just look for:

  Code:
bool species_is_undead(species_type species)
{
    return species_undead_type(species) != US_ALIVE;
}


inside of species.cc

change it to something like this:

  Code:
bool species_is_undead(species_type species)
{
    return false;
}


if you want to change it for just one species, you can go to species-data.h, and find the species you want to change, then find the part that says "US_UNDEAD" and change it to "US_ALIVE".

Return to Coding

Who is online

Users browsing this forum: No registered users and 6 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.