Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 2 3 [4] 5 6 7

Author Topic: Limitless: a DFHack-driven adventurer suggestion game.  (Read 11840 times)

RickRollYou2

  • Bay Watcher
  • [START_BIOME:EARTH]
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #45 on: October 12, 2013, 01:19:00 am »

What beautiful custom script do you use (or is it a lua command) to revive creatures?
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #46 on: October 12, 2013, 01:42:08 am »

What beautiful custom script do you use (or is it a lua command) to revive creatures?

Ah, glad you asked. Here it is:

Code: [Select]
-- Revives a unit, given an ID or corpse.

local args = {...}

local deadunit = dfhack.gui.getSelectedItem(true) and df.unit.find(dfhack.gui.getSelectedItem(true).unit_id) or df.unit.find(args[1])

deadunit.flags1.dead   = false
deadunit.flags2.killed = false

local defaultRace = deadunit.enemy.normal_race

local normalAge = deadunit.relations.birth_year

deadunit.enemy.normal_race = defaultRace ~= 0 and 0 or 1

dfhack.timeout(1,'ticks',function() deadunit.enemy.normal_race=defaultRace deadunit.relations.birth_year=normalAge end)

for k,item in ipairs(df.global.world.items.other.ANY_CORPSE) do
if item.unit_id==deadunit.id then dfhack.items.remove(item) end
end

It's a little basic (for one, you need to actively search through df.global.world.items.other.ANY_CORPSE to find the corpse you're looking for in adventure mode due to there being no context in which dfhack.gui.getSelectedItem() successfully returns a value in adventure mode), but it gets the job done.

Here's the script I use to make lackeys, btw.

Code: [Select]
local args={...}

local unit = args[1] and df.unit.find(args[1]) or dfhack.gui.getSelectedUnit()

local unitnem = dfhack.units.getNemesis(unit)

local unitfig = df.historical_figure.find(unit.hist_figure_id)

local adv = df.global.world.units.active[0]

local advnem = dfhack.units.getNemesis(adv)

unit.relations.group_leader_id=adv.id

if unitnem then
unitnem.group_leader_id=advnem.id
end
if advnem and unitnem then
advnem.companions:insert('#',unitnem.id) --makes them a companion of you
end

if unitfig then
for i=1,#unitfig.entity_links do
unitfig.entity_links:erase(0) --makes them not enemies or criminals of your civ
end
end
unit.civ_id=(df.global.world.units.active[0].civ_id) --sets them to be in the same civ as you

RickRollYou2

  • Bay Watcher
  • [START_BIOME:EARTH]
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #47 on: October 12, 2013, 08:33:38 am »

And in fortress mode?

Setting temperatures is pretty cool, too.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #48 on: October 12, 2013, 01:08:49 pm »

Spoiler: Learn: ADVANCE COOKING (click to show/hide)
Spoiler: IC (click to show/hide)
Spoiler: Fanart (click to show/hide)
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

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #49 on: October 12, 2013, 02:13:33 pm »

And in fortress mode?

Setting temperatures is pretty cool, too.

Code: [Select]
function burnUnit(unit)
    for k,v in ipairs(unit.status2.body_part_temperature) do
        v.whole    = 5000000
        v.fraction = 5000000
    end
end

local args={...}

local unit = args[1] and df.unit.find(args[1]) or dfhack.gui.getSelectedUnit()

burnUnit(unit)

The revive script should be way easier to use in fortress mode than adventure mode. Highlight the corpse, use the script, you've revived them.

Kalsb

  • Bay Watcher
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #50 on: October 12, 2013, 02:30:54 pm »

Start a werebeast war!
Logged

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #51 on: October 12, 2013, 02:32:39 pm »

You now have a multitude of lackeys to do your dirty work.

You also have a chokehold on a bandit chief. What do you do with the bandit chief?

Turn him into a sheep and then kill him and butcher him and eat a piece of the meat, just to show the lackeys what happens to those who disobey

You ate his heart and drank some of his pus to boot. Turns out it's much easier when you transform them into animals first. Who knew.

Continue the quest to slay the dragon! But send in the lackeys first so they get torched first

There is no dragon!

Start a werebeast war!

Doesn't sound like a good idea, but conquest in general seems fun.

In fact, you're kind of fed up with doing what other adventurers do. You're not a normal adventurer, you shouldn't be killing random bandits.

Do you continue your nobility-given quest, or do you forge a new path?

RickRollYou2

  • Bay Watcher
  • [START_BIOME:EARTH]
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #52 on: October 12, 2013, 06:35:46 pm »

Many thanks.
Forge a new path, LITERALLY
I'm not too sure what that would mean.
Logged

Rumrusher

  • Bay Watcher
  • current project : searching...
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #53 on: October 13, 2013, 06:40:22 am »

uhh bust out the MetalSmithForge and make a Road out of blocks.
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

highmax28

  • Bay Watcher
  • I think this is what they call a tantrum spiral...
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #54 on: October 13, 2013, 08:34:55 pm »

Create a village overtop a volcano at the end of said forged path and then drop them into the volcano and watch the fun ensue
Logged
just shot him with a balistic arrow, i think he will get stuned from that >.>

"Guardian" and Sigfriend Of Necrothreat
Jee wilikers, I think Highmax is near invulnerable, must have been dunked in the river styx like achilles was.
Just make sure he wears a boot.

Putnam

  • Bay Watcher
  • DAT WIZARD
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #55 on: October 14, 2013, 07:51:26 pm »

You leave the catacombs and talk to Goober once more. You tell her of what you did and she asks why you didn't do what the lord asked.

You think it's kind of obvious why. You're immortal, omnipotent, practically omniscient and being ordered by some lowly land-owner to kill some petty bandits, so you've decided that you don't want to anymore.

She thinks the power has gone to your head. You say that you can do literally anything you want, so of course the power has gone to your head. You could make her pregnant with your baby from outside the room and have you give birth right there then turn the baby into a dragon and have it kill her if you wanted.

Goober is visibly shaken by this reply, but doesn't seem surprised. She tells you that you need to get in line. Did you not deny that you were an incarnation of Armok?

You ponder this. Goober clearly wants control over you, it is now seen. Should you act under her guidance or do what you want?

Spoiler: OOC (click to show/hide)

highmax28

  • Bay Watcher
  • I think this is what they call a tantrum spiral...
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #56 on: October 14, 2013, 07:58:47 pm »

Tell her gods cannot control you and sever her arms from her body. Then set their temperatures to 40000 urist and then let goober die in the flames
Logged
just shot him with a balistic arrow, i think he will get stuned from that >.>

"Guardian" and Sigfriend Of Necrothreat
Jee wilikers, I think Highmax is near invulnerable, must have been dunked in the river styx like achilles was.
Just make sure he wears a boot.

RickRollYou2

  • Bay Watcher
  • [START_BIOME:EARTH]
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #57 on: October 14, 2013, 10:27:56 pm »

Lie about your backstory, making it seem as though the gods were responsible for the deaths of your family members.

Be Kratos
Logged

AfellowDwarf

  • Bay Watcher
  • Paranoid crossdresser
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #58 on: October 15, 2013, 12:42:24 pm »

Ooh, this looks fun! Why didn't I see it before?

Will goober to think that power has, in fact, not gone to your head and that you're acting for good of all.
That, and/or change her into a bronze colossus and kill her, effectively turning her into a statue. And maybe then resurrect her, turn her into something ugly and kill her with her own statue.
Logged
My interactive forum thing: Adventures of Sir Major

highmax28

  • Bay Watcher
  • I think this is what they call a tantrum spiral...
    • View Profile
Re: Limitless: a DFHack-driven adventurer suggestion game.
« Reply #59 on: October 15, 2013, 12:44:58 pm »

Ooh, this looks fun! Why didn't I see it before?

Will goober to think that power has, in fact, not gone to your head and that you're acting for good of all.
That, and/or change her into a bronze colossus and kill her, effectively turning her into a statue. And maybe then resurrect her, turn her into something ugly and kill her with her own statue.


Do that instead
Logged
just shot him with a balistic arrow, i think he will get stuned from that >.>

"Guardian" and Sigfriend Of Necrothreat
Jee wilikers, I think Highmax is near invulnerable, must have been dunked in the river styx like achilles was.
Just make sure he wears a boot.
Pages: 1 2 3 [4] 5 6 7