Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Viewing true values of your attributes  (Read 703 times)

deama

  • Bay Watcher
    • View Profile
Viewing true values of your attributes
« on: April 06, 2013, 06:53:48 pm »

Is there a mod, or a way that allows me to easily view the actual numbers of my attributes? Like when it says "High Strength" I'd want it to display the number, like 1600 near it (or somewhere).
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Viewing true values of your attributes
« Reply #1 on: April 06, 2013, 07:30:08 pm »

Therapist.

For adventurer, here's a lua script that will show you all your attributes:

Code: [Select]
local function printAttributes()
    local player = df.global.world.units.active[0]
    local physical_attributes = {
    "Strength",
    "Agility",
    "Toughness",
    "Endurance",
    "Recuperation",
    "Disease Resistance"
    }
    local mental_attributes = {
    "Analytical ability",
    "Focus",
    "Willpower",
    "Creativity",
    "Intuition",
    "Patience",
    "Memory",
    "Linguistic ability",
    "Spatial sense",
    "Musicality",
    "Kinesthetic sense",
    "Empathy",
    "Social awareness"
    }
    for k,attribute in ipairs(player.body.physical_attrs) do
        print(physical_attributes[k+1],attribute.value)
    end
    for k, attribute in ipairs(player.status.current_soul.mental_attrs) do
        print(mental_attributes[k+1],attribute.value)
    end
end

printAttributes()

deama

  • Bay Watcher
    • View Profile
Re: Viewing true values of your attributes
« Reply #2 on: April 06, 2013, 07:38:40 pm »

Will I have to use DFhack or??
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Viewing true values of your attributes
« Reply #3 on: April 06, 2013, 07:38:56 pm »

Yeah.

deama

  • Bay Watcher
    • View Profile
Re: Viewing true values of your attributes
« Reply #4 on: April 06, 2013, 07:45:24 pm »

Is there a way to run all those lines at once instead of typing them up whenever I want to view my attributes?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Viewing true values of your attributes
« Reply #5 on: April 06, 2013, 07:46:27 pm »

Save that as some file.lua in the hack/scripts folder, then run the name of the file as a command.

deama

  • Bay Watcher
    • View Profile
Re: Viewing true values of your attributes
« Reply #6 on: April 06, 2013, 07:51:38 pm »

Ok, thanks for the help.
Logged