Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Drowning/tossing off cliffs doesn't count  (Read 891 times)

Ioric Kittencuddler

  • Bay Watcher
  • Multiclass Bard/Kitten trainer
    • View Profile
Drowning/tossing off cliffs doesn't count
« on: February 08, 2008, 06:58:00 am »

So I made demons playable and then set about slaughtering a goblin fortress as one of their like some dark god on a rampage.  I slaughtered dozens upon dozens of them by charging them and making them fall into the temple's pool, three stories down.  The only problem, some of them didn't die.  Those that survived the fall drowned in the pool and it didn't credit me for killing them.  Including the goblin high priest.

I'm not sure if this is a bug or just a feature that's yet to be implemented, but I thought I should point it out.

[ February 08, 2008: Message edited by: Ioric Kittencuddler ]

Logged
Come see the MOST interesting Twitter account on the internet!  Mine!

Don't worry!  Be happy!  It's the law!

Zonk

  • Bay Watcher
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #1 on: February 08, 2008, 08:20:00 am »

Why would this be a bug I don't understand. You did cause their death, indirectly, but you didn't actually kill them - it was the drowning. I think it might be a bit of an hassle to keep track if people drowned because you knocked them into the wate.r..
Logged

Ioric Kittencuddler

  • Bay Watcher
  • Multiclass Bard/Kitten trainer
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #2 on: February 08, 2008, 08:37:00 am »

Well the holes in the enemy's flesh don't get the credit when they bleed to death, neither does their crushed throat or pierced lungs when the suffocate, or the arrow when they're "shot and killed".  So why should the pit or the pool get credit when you threw them into it?
Logged
Come see the MOST interesting Twitter account on the internet!  Mine!

Don't worry!  Be happy!  It's the law!

Ravendas

  • Bay Watcher
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #3 on: February 08, 2008, 08:52:00 am »

Think of the programming difficulties behind this problem. Creatures can naturally drown, and drown from someone knocking them in. Keeping track of the difference may not be as easy as you'd think.

Killing by weapons / wrestling is simple to keep track of who kills who, so your examples don't really help. I can't remember, if someone bleeds out, does it credit you the kill?

Logged

Torak

  • Bay Watcher
  • God of Gods of Blood.
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #4 on: February 08, 2008, 09:12:00 am »

quote:
Originally posted by Ravendas:
<STRONG>I can't remember, if someone bleeds out, does it credit you the kill?</STRONG>

Creature was mortally wounded in Place by Creature/Person who bled to death on Date.

Logged
As you journey to the center of the world, feel free to read the death announcements of those dwarves that suffer your neglect.

One billion b-balls dribbling simultaneously throughout the galaxy. One trillion b-balls being slam dunked through a hoop throughout the cosmos. I can feel every single b-ball that has ever existed at my fingertips, I can feel their collective knowledge channeling through my veins. Every jumpshot, every rebound and three-pointer, every layup, dunk and free throw.

WillNZ

  • Bay Watcher
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #5 on: February 08, 2008, 09:31:00 am »

quote:
Think of the programming difficulties behind this problem. Creatures can naturally drown, and drown from someone knocking them in. Keeping track of the difference may not be as easy as you'd think.

Hmmm... I may not be a programming expert but it sounds like that's not that difficult. All you'd need to do is track where people are knocked (on ground, into water), who knocked them, and see if they drown in the same body of water. More complex situations, like, for example, flicking a switch and drowning the fortress, are a little less doable.

Logged

TheSpaceMan

  • Bay Watcher
    • View Profile
    • http://www.digital-lifeform.com
Re: Drowning/tossing off cliffs doesn't count
« Reply #6 on: February 08, 2008, 10:08:00 am »

How long should data be saved, should every entity game run around with a tag that keeps track of IF they where pushed into water or not. It's not even sure there is possible to identify one "body" of water. Adding extra hassle if the unit moves one unit thus entering a new area of water, Then a new check is required upon leaving water to see if they carry any tags from being pushed. And so forth. It's more of a hassle then you might think. Code is often very very very abstract from reality.
Logged
Poking around with a DFParser.
Bodypart names, creatures names in one easily overviewable place.

Oh my new (old) picture?

Alfador

  • Bay Watcher
  • Dangerous Lunatic
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #7 on: February 08, 2008, 12:22:00 pm »

Erase the tag only if they move from a tile that causes them damage (water for non-water-breathing creatures, magma for non-heat-immune creatures, trapped squares for anybody) to a "safe" tile. If you pull a lever that opens a floodgate, say, then any fluid passing through that floodgate become "yours" and any creature drowning in them counts for your kills.

You don't necessarily get experience for it, though. It makes sense to gain skill in swording if you stab someone with a sword, but not to gain skill in lever-pulling if you flood a fortress and drown everybody in it.

Fun, though.

Logged
This is a fox skull helmet. All craftsdwarfship is of the highest quality. It menaces with spikes of fox bone and is encircled with bands of fox leather. This item is haunted by the ghost of Alfador Angrorung the fox.

numerobis

  • Bay Watcher
    • View Profile
Re: Drowning/tossing off cliffs doesn't count
« Reply #8 on: February 08, 2008, 12:50:00 pm »

quote:
Originally posted by Alfador:
<STRONG>If you pull a lever that opens a floodgate, say, then any fluid passing through that floodgate become "yours" and any creature drowning in them counts for your kills.</STRONG>

Forever and ever?  That seems wrong.  Also, mixing of flows causes complication: do you get credit for causing the river to overflow and thereby drowning the hapless elves, etc?

Keeping track of a blow causing you to fall might be difficult.  When (if) that problem is solved, keeping track of whether a blow caused you to get into dangerous terrain and die will be easy.

Logged