Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: How to increase attribute caps  (Read 1196 times)

deama

  • Bay Watcher
    • View Profile
How to increase attribute caps
« on: April 05, 2013, 06:30:37 pm »

How would I increase the maximum limit of attributes? In adventure mode?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #1 on: April 05, 2013, 06:58:32 pm »

[PHYS_ATT_CAP_PERC:attribute:percent]

This won't affect the menu.

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #2 on: April 05, 2013, 07:01:53 pm »

And what do I have to edit? Sorry, I forgot to mention that I don't exactly know how to mod this game.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #3 on: April 05, 2013, 07:02:31 pm »

The creature you're going to be playing as. The creature will probably be in the file creature_standard.txt, under the raw/objects folder. Dwarves are CREATURE:DWARF, humans are CREATURE:HUMAN etc.

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #4 on: April 05, 2013, 07:20:03 pm »

And where would I have to put that string? When I search for an identical string it says that it cannot find it.

PS: How would I test this to see if it worked?
« Last Edit: April 05, 2013, 07:56:06 pm by deama »
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #5 on: April 05, 2013, 08:01:41 pm »

Under [CREATURE:(creature)]. Anywhere should be fine as long as it's only on the first indent.

You... really couldn't test it without DFHack, and to test it with DFHack, you would have to type this into the console while in your adventurer's Z status screen (enters included):

lua
me = dfhack.gui.getSelectedUnit()
print(me.body.physical_attrs.STRENGTH.max_value/me.body.physical_attrs.STRENGTH.value)

if that last line is more than two, it worked.
« Last Edit: April 05, 2013, 08:37:59 pm by Putnam »
Logged

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #6 on: April 05, 2013, 08:24:50 pm »

Ok, thanks.
Logged

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #7 on: April 06, 2013, 06:20:26 pm »

once I type in the "print" line I get a "(Interactive):1: Cannot read field unit.T_body.physical: not found." Is that was supposed to happen?
I did this in the z status.
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #8 on: April 06, 2013, 06:21:08 pm »

You're doing "physical attrs", not "physical_attrs"

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #9 on: April 06, 2013, 06:24:41 pm »

You're doing "physical attrs", not "physical_attrs"
Ok, now it works; I got a number though "1.6059295861643", does that mean it worked?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #10 on: April 06, 2013, 06:25:43 pm »

Maybe. Don't include the division, do the value and max_value individually.

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #11 on: April 06, 2013, 06:27:20 pm »

I get 2600
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #12 on: April 06, 2013, 06:28:10 pm »

...value or max_value?

deama

  • Bay Watcher
    • View Profile
Re: How to increase attribute caps
« Reply #13 on: April 06, 2013, 06:30:03 pm »

max_value..................
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: How to increase attribute caps
« Reply #14 on: April 06, 2013, 06:31:42 pm »

Give both.
Pages: [1] 2