Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: height: how does it work?  (Read 1425 times)

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
height: how does it work?
« on: April 02, 2012, 06:42:06 am »

I know being at a higher z-level doesn't confer a ranged bonus of any kind, but does it confer a sight bonus? will a lookout dwarf at 10z in the air see things father off than if he were at sea level?
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

Kaos

  • Bay Watcher
    • View Profile
Re: height: how does it work?
« Reply #1 on: April 02, 2012, 08:12:18 am »

I think is more like a fixed sphere centered around the creature, take a look in arena mode, people also say the observation skill affects it somehow.
Logged

Garath

  • Bay Watcher
  • Helping to deforest the world
    • View Profile
Re: height: how does it work?
« Reply #2 on: April 02, 2012, 08:14:53 am »

I think is more like a fixed sphere centered around the creature

this

as I replied to a similar question a while ago, say someone has a sight of 20 squares on ground. At z-level +19 he'll just be able to make out the ground directly at the foot of the tower. at +21 he won't see the ground.
Logged
Quote from: Urist Imiknorris
Jam a door with its corpse and let all the goblins in. Hey, nobody said it had to be a weapon against your enemies.
Quote from: Frogwarrior
And then everyone melted.

Dunamisdeos

  • Bay Watcher
  • Duggin was the hero we needed.
    • View Profile
Re: height: how does it work?
« Reply #3 on: April 02, 2012, 11:24:18 pm »

Ah thats much easier to understand. Thanks for the xplanation =)
Logged
FACT I: Post note art is best art.
FACT II: Dunamisdeos is a forum-certified wordsmith.
FACT III: "All life begins with Post-it notes and ends with Post-it notes. This is the truth! This is my belief!...At least for now."
FACT IV: SPEECHO THE TRUSTWORM IS YOUR FRIEND or BEHOLD: THE FRUIT ENGINE 3.0

FrankMcFuzz

  • Bay Watcher
  • Accomplished Cat Cooker
    • View Profile
Re: height: how does it work?
« Reply #4 on: April 02, 2012, 11:38:13 pm »

And as far as I understand it, the marksdwarf in the watchtower will not be able to shoot/see as far the dwarf at the gate, and the dwarf in the fortified will not see/shoot as far as the dwarf at the gate. Fortifications and height take a range penalty.
Here is a diagram.

===
:D>|  Tower. Less.
===                                                               g      g   g     g
                                                                          g   g    g
  :D   Gate. More                                                g  g      g       g         Goblins. Pain.
                                                                         g       g    g
===
 :D X Fort. Less.
===
Logged
Urist cancels rest injury: Too injured

kaijyuu

  • Bay Watcher
  • Hrm...
    • View Profile
Re: height: how does it work?
« Reply #5 on: April 02, 2012, 11:48:38 pm »

Hrm, how does DF handle diagonals when it comes to distance?

If diagonals are counted as 1 space, then it's not a sphere that surrounds the dwarf, but an 8 sided polygon. Like two pyramids stuck together at the bottom.
Logged
Quote from: Chesterton
For, in order that men should resist injustice, something more is necessary than that they should think injustice unpleasant. They must think injustice absurd; above all, they must think it startling. They must retain the violence of a virgin astonishment. When the pessimist looks at any infamy, it is to him, after all, only a repetition of the infamy of existence. But the optimist sees injustice as something discordant and unexpected, and it stings him into action.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: height: how does it work?
« Reply #6 on: April 03, 2012, 12:16:52 am »

I believe that diagonals count as their actual values (so a distance of square root 2). I know that they count as that for movement at least.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Flying Dice

  • Bay Watcher
  • inveterate shitposter
    • View Profile
Re: height: how does it work?
« Reply #7 on: April 03, 2012, 12:17:21 am »

I believe that diagonals count as their actual values (so a distance of square root 2).

I seem to recall this being the case.
Logged


Aurora on small monitors:
1. Game Parameters -> Reduced Height Windows.
2. Lock taskbar to the right side of your desktop.
3. Run Resize Enable

kaijyuu

  • Bay Watcher
  • Hrm...
    • View Profile
Re: height: how does it work?
« Reply #8 on: April 03, 2012, 12:21:11 am »

Sphere it is, then!
Logged
Quote from: Chesterton
For, in order that men should resist injustice, something more is necessary than that they should think injustice unpleasant. They must think injustice absurd; above all, they must think it startling. They must retain the violence of a virgin astonishment. When the pessimist looks at any infamy, it is to him, after all, only a repetition of the infamy of existence. But the optimist sees injustice as something discordant and unexpected, and it stings him into action.

Garath

  • Bay Watcher
  • Helping to deforest the world
    • View Profile
Re: height: how does it work?
« Reply #9 on: April 03, 2012, 05:20:35 am »

sight as a sphere is easily proven by playing adventure mode once
Logged
Quote from: Urist Imiknorris
Jam a door with its corpse and let all the goblins in. Hey, nobody said it had to be a weapon against your enemies.
Quote from: Frogwarrior
And then everyone melted.

Jurph

  • Bay Watcher
  • Minister of Belt-fed Weaponry
    • View Profile
Re: height: how does it work?
« Reply #10 on: April 03, 2012, 08:30:10 am »

Since the sphere has radius 20, and distances are calculated using √2 (1.414), the footprint of a tower decreases with Z-levels as follows:

Z-levels above ground Enemies visible n tiles from tower
1-619
7-818
9-1017
11-1216
1315
1414
1513
1612
1710
188
196
200

So dwarves on the sixth floor suffer no range penalty, but are at least six tiles away from surface troops trying to return fire through the fortifications. 
Logged
Dreambrother has my original hammer-shaped Great Hall.  Towerweak has taken the idea to the next level.

Kaos

  • Bay Watcher
    • View Profile
Re: height: how does it work?
« Reply #11 on: April 03, 2012, 08:31:24 am »

in arena mode you can test it, even by spawning liquids you can cast a rock tower, spawn a dwarf at the top of it and take a look at what he sees when you take control of him...

it's not a spehere really but as good an aproximation of it as you can do with the in-game grid.

If I remember correctly, straigth lines north, south, west, east were like 25 tiles or so, and diagonals were less like 20 tiles....
« Last Edit: April 03, 2012, 08:33:24 am by Kaos »
Logged

Nil Eyeglazed

  • Bay Watcher
    • View Profile
Re: height: how does it work?
« Reply #12 on: April 03, 2012, 03:19:49 pm »

I know being at a higher z-level doesn't confer a ranged bonus of any kind, but does it confer a sight bonus? will a lookout dwarf at 10z in the air see things father off than if he were at sea level?

Kind of, and for the same reason: a higher dwarf will be able to see over intervening obstructions, where a lower dwarf might be unable to.
Logged
He he he.  Yeah, it almost looks done...  alas...  those who are in your teens, hold on until your twenties...  those in your twenties, your thirties...  others, cling to life as you are able...<P>It should be pretty fun though.