Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Poll

Should this be made into one of the new DFHack plugins? (This is not binding)

Yes, I want to be able to use it with the DFHack console
- 288 (45.6%)
No, I like the stand alone QT version
- 140 (22.2%)
Both
- 204 (32.3%)

Total Members Voted: 631


Pages: 1 ... 93 94 [95] 96 97 ... 106

Author Topic: Runesmith - A DC like tool  (Read 373551 times)

Dimrill

  • Escaped Lunatic
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1410 on: May 29, 2012, 04:41:32 am »

Nope, can't find the kill command in dfhack. Do you have a fancy plugin installed for it? There's "die" but of course that's just used to stop the Dwarf Fortress process without saving.
Logged

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1411 on: May 29, 2012, 09:18:24 am »

Nope, can't find the kill command in dfhack. Do you have a fancy plugin installed for it? There's "die" but of course that's just used to stop the Dwarf Fortress process without saving.

This post may have what you need.

In particular....

unit=dfhack.gui.getSelectedUnit()
unit.flags1.dead=true

which, when I just tried it in 34.10, killed a dwarf instantly, and removed the corpse, too.  This may or may not work on undead, but it would appear to be a step in the right direction.

Dimrill

  • Escaped Lunatic
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1412 on: May 29, 2012, 09:40:15 am »

If I wasn't so butch and manly I'd give you a tender kiss. But I am. Ahem.
Logged

mithosaurion

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1413 on: May 29, 2012, 01:10:34 pm »

Code: [Select]
function tools.buffanything(unit)
if unit==nil then
unit=getCreatureAtPointer()
end
print("which skill slot 0-?")
B=getline()
print("which skill 0-?")
C=getline()
print("How much?")
r=getline()
unit.status.souls[0].skills[0+B].id=C
unit.status.souls[0].skills[0+B].rating=r
end

 tools.menu:add("Buffanything",tools.buffanything)

this should do it. sorry. if it helps I'll get warmist to insert it in the next update for Dfhack.

using this command I have discovered that Shield User is skill number 45, Armor User is 46, and Swordsdwarf is 39.  I wish I knew what Dodging was but that is about all I have come up with.
Logged

daxp

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1414 on: May 29, 2012, 01:56:48 pm »

Well, there is a list of skills on the wiki (http://dwarffortresswiki.org/index.php/DF2012:Skill_token), and the skills you posted line up with it (shield as skill 45, armor 46, sword 39). So, dodge should be 105.
Logged

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1415 on: May 30, 2012, 12:15:15 am »

On the subject of skills...

I wrote this up today, which again, may be useful to the Runesmith audience.

It's a script, similar to the previous three, that allows you to target a dwarf in game, run the script with a single argument, and it will give you legendary proficiency in whatever skill you specify.  Same method as before, save the make_legendary.lua in ~\df_34_10_win\hack\scripts\ , then you can use it easily.

So if you want a legendary miner, target your favorite Urist, switch to dfhack, type make_legendary MINER and voila, you have a legendary miner!  If you want to see what skills are available, you can type make_legendary list and it will display them all.

Dimrill

  • Escaped Lunatic
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1416 on: May 30, 2012, 10:52:00 am »

You're excellent, you are.
Logged

peterix

  • Bay Watcher
    • View Profile
    • Dethware
Re: Runesmith - A DC like tool
« Reply #1417 on: May 31, 2012, 11:46:48 am »

Nope, can't find the kill command in dfhack. Do you have a fancy plugin installed for it? There's "die" but of course that's just used to stop the Dwarf Fortress process without saving.

This post may have what you need.

In particular....

unit=dfhack.gui.getSelectedUnit()
unit.flags1.dead=true

which, when I just tried it in 34.10, killed a dwarf instantly, and removed the corpse, too.  This may or may not work on undead, but it would appear to be a step in the right direction.
This is *dangerous* to use. It can end up causing the siege status to get stuck if you use it on invaders. Generally, it's better to encase creatures in obsidian (which can be done with the liquids command). This is also why DFHack doesn't have a kill command - it's just too easy to get that stuff wrong.

Tierre

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1418 on: June 01, 2012, 03:48:27 am »

Well then just surround enemies with obsidian walls and then pop some magma from above:)
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1419 on: June 01, 2012, 04:55:25 am »

Well then just surround enemies with obsidian walls and then pop some magma from above:)
or just use tame, and slaughter and you get dwarves dragging goblins to butcher shops.
Logged
I thought I would I had never hear my daughter's escapades from some boy...
DAMN YOU RUMRUSHER!!!!!!!!
"body swapping and YOU!"
Adventure in baby making!Adv Homes

Tierre

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1420 on: June 01, 2012, 06:45:04 am »

Well then just surround enemies with obsidian walls and then pop some magma from above:)
or just use tame, and slaughter and you get dwarves dragging goblins to butcher shops.
Butchering gobbos is dwarfy.... though magma is more dwarfy - but your dwarfes never did it themselves... so butchering is more dwarfy:):):)
Logged

Dimrill

  • Escaped Lunatic
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1421 on: June 01, 2012, 08:57:31 pm »

Nope, can't find the kill command in dfhack. Do you have a fancy plugin installed for it? There's "die" but of course that's just used to stop the Dwarf Fortress process without saving.

This post may have what you need.

In particular....

unit=dfhack.gui.getSelectedUnit()
unit.flags1.dead=true

which, when I just tried it in 34.10, killed a dwarf instantly, and removed the corpse, too.  This may or may not work on undead, but it would appear to be a step in the right direction.
This is *dangerous* to use. It can end up causing the siege status to get stuck if you use it on invaders. Generally, it's better to encase creatures in obsidian (which can be done with the liquids command). This is also why DFHack doesn't have a kill command - it's just too easy to get that stuff wrong.

Why didn't I think of that? Egg and my face are in alignment.
Logged

mithosaurion

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1422 on: June 06, 2012, 01:33:57 pm »

I am beginning to believe that my theory about the grizzly fate of sizeak is correct.  How long has it been since he posted?
Logged

tahujdt

  • Bay Watcher
  • The token conservative
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1423 on: June 06, 2012, 03:04:13 pm »

I am beginning to believe that my theory about the grizzly fate of sizeak is correct.  How long has it been since he posted?
Quote from: The Profile of sizeak
Last Active: April 06, 2012, 11:10:00 am
Does that answer your question?
Logged
DFBT the Dwarf: The only community podcast for Dwarf Fortress!
Tahu-R-TOA-1, Troubleshooter
Quote
I suggest that we add a clause permitting the keelhauling of anyone who suggests a plan involving "zombify the crew".
Quote from: MNII
Friend Computer, can you repair the known universe, please?

AVE

  • Bay Watcher
    • View Profile
Re: Runesmith - A DC like tool
« Reply #1424 on: June 06, 2012, 03:49:56 pm »

Yep, he is coming here sometimes, but he is pretty busy with his dissertation as he stated earlier.

Please respect this.
Logged
Pages: 1 ... 93 94 [95] 96 97 ... 106