Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: How do I modify the personalities and attributes of entities?  (Read 911 times)

Chain333

  • Escaped Lunatic
    • View Profile
How do I modify the personalities and attributes of entities?
« on: January 04, 2011, 06:09:41 pm »

So I've played Dwarf Fortress for ages now, but I've only recently discovered the awesome power of modding. I want to mod the personalities and attributes of the entities, but I can't quite figure out the different tokens used. I've dabbled with different numbers, but my dabblings only confuses me more.

So if I want to mod the imagination of the dwarves, I presume they usually start as [PERSONALITY:IMAGINATION:0:50:100]. Now if I want to make them more imaginative, I can set it as [PERSONALITY:IMAGINATION:0:55:100]. But is it also possible to completely remove any possibility of them being unimaginative? Can I modify the minimum or maximum values to change the scope of their imagination, like [PERSONALITY:IMAGINATION:40:50:100]? Would this take a number between 40 and 100 with the average starting at 50..?

And what about the attributes? I presumed that [MENT_ATT_RANGE:CREATIVITY:450:950:1150:1250:1350:1550:2250] selects between these numbers for the dwarves initial creativity, with 0 as "next to no creative talent" and 5000 as "a boundless creative imagination." But from what I've dabbled with, these numbers don't have any raw values and somehow change the percentages. And what does the [MENT_ATT_RATES] specify..?

Are there any tutorials written specifically on modding entities I can be pointed too..? I'm a dwarven newbie.
Logged

3

  • Bay Watcher
    • View Profile
Re: How do I modify the personalities and attributes of entities?
« Reply #1 on: January 04, 2011, 06:23:45 pm »

So if I want to mod the imagination of the dwarves, I presume they usually start as [PERSONALITY:IMAGINATION:0:50:100]. Now if I want to make them more imaginative, I can set it as [PERSONALITY:IMAGINATION:0:55:100]. But is it also possible to completely remove any possibility of them being unimaginative? Can I modify the minimum or maximum values to change the scope of their imagination, like [PERSONALITY:IMAGINATION:40:50:100]? Would this take a number between 40 and 100 with the average starting at 50..?

Yes, yes, yes.

I presumed that [MENT_ATT_RANGE:CREATIVITY:450:950:1150:1250:1350:1550:2250] selects between these numbers for the dwarves initial creativity, with 0 as "next to no creative talent" and 5000 as "a boundless creative imagination."

That's correct.

But from what I've dabbled with, these numbers don't have any raw values and somehow change the percentages.

I'm not sure what you mean by this. There might be an issue in the way that attributes are displayed - they may well be displayed relative to the racial average as opposed to the global one, for example, a dwarf with CREATIVITY 1150 might be considered to have a less-than-average CREATIVITY, despite 1150 actually being higher than the global base of 1000.

Additionally, you should make yourself aware of how attribute ranges work. Here's the best explaination around.

And what does the [MENT_ATT_RATES] specify..?

It determines how fast the creature's mental attributes increase.

Aside: Entities and creatures aren't the same thing.

Oh, and also...
Logged

Chain333

  • Escaped Lunatic
    • View Profile
Re: How do I modify the personalities and attributes of entities?
« Reply #2 on: January 04, 2011, 06:41:26 pm »

I just needed some confirmation; I thought I was going insane when everything wasn't going as I had modded it. Thanks.

All the same, I sometimes get some undesired personality traits, even when I restrict the maximum and minimum values. Even when I configure the [PERSONALITY:IMAGINATION:40:50:100], I sometimes get the "does not have flights of fancy" trait.

And I still don't quite understand the ranges between the different attributes... Is the "average" for the dwarf the fourth value, and anything less than that value is less than average? Would 450, 950, and 1150 all give less than average attributes with a dwarf of [MENT_ATT_RANGE:CREATIVITY:450:950:1150:1250:1350:1550:2250]? Would anything less than 1250 have a meager creativity?

I have an utter lack comprehension.. Sorry.  :-\
Logged

3

  • Bay Watcher
    • View Profile
Re: How do I modify the personalities and attributes of entities?
« Reply #3 on: January 04, 2011, 06:47:54 pm »

And I still don't quite understand the ranges between the different attributes... Is the "average" for the dwarf the fourth value, and anything less than that value is less than average? Would 450, 950, and 1150 all give less than average attributes with a dwarf of [MENT_ATT_RANGE:CREATIVITY:450:950:1150:1250:1350:1550:2250]?

Right.

Would anything less than 1250 have a meager creativity?

That's what I suspect. The descriptions used are probably based on the racial average, but I haven't tested it. If you set them up with something like CREATIVITY:1000:1100:1300:1500:1700:1900:2000, they'd all be over the global average (1000), but some would still be under the racial average (1500), and (if my suspicions are correct) the game would describe those dwarfs as not creative. They'd still be creative regardless.
Logged

Chain333

  • Escaped Lunatic
    • View Profile
Re: How do I modify the personalities and attributes of entities?
« Reply #4 on: January 05, 2011, 02:47:21 pm »

Now does the dwarf receive a random value within the string of seven numbers you give, or does it randomize a value between the numbers?

Also, what are the default global values? I know that 1000 is the default global average, but what are the other values? And are these numbers always used when the attribute is not specified for the entity?
Logged