Author Topic: Speed Stat, please explain it.  (Read 1424 times)

0 Members and 1 Guest are viewing this topic.

Mateusz P-G

  • Hero Member
  • *****
  • Posts: 558
  • Polish Translator
    • View Profile
Speed Stat, please explain it.
« on: July 23, 2012, 07:48:55 AM »
Just like in the title, please shed some light on how
the speed stat works in terms of movement.

Its a bit puzzling, the description says its responsible
for how fast the character can act (move and attack)
yet it seems to me as if the weapons' attack speed is
the only variable really responsible for deciding on
how many attacks per turn a character can make (or
how many turns passes while he's performing that
attack). Besides, rats or skeletons with speed score
of about 10 can move just as fast as my character
having the speed of 30 in terms of tiles-per-turn.

No matter how much speed I get I just can't seem to
catch up without chasing stuff to dead ends, and it
can really get on Warrior's nerves.

What am I missing?
If you remember the sprites from my avatar, know that you're awesome!

Dweller admin

  • Administrator
  • Hero Member
  • *****
  • Posts: 926
    • View Profile
Re: Speed Stat, please explain it.
« Reply #1 on: July 23, 2012, 12:58:28 PM »
Hehe, ok, the algorithm to determine the effect of speed was written a long time ago and I have to go back and check the sourcecode. This is how it works:

* First of all, there is no real concept of turns in Dweller. If it takes x units of time for creature A to move one cell it could take 1.3 times longer (ie 30% longer) for creature B to move.

* All monsters and the player are put in a priority queue where they are ordered based on when they are allowed to take a turn next.

* All actions (move, open, attack, cast spell etc) in Dweller have a defined base time it takes to perform that action. For all actions except spell casting the base time is 100, while spell casting is 250 (this may need to be adjusted in accordance with what is discussed in another thread)

* I wrote this as I go through the source code and I have actually found an error. I'm pretty sure it hasn't always been like this, but right now speed is not working as expected... erm, how embarrassing...

Ok, anyway, this is how it's supposed to work:

* The time it takes for a creature to perform all actions except melee and missile attacks use the following formula: ACTIONTIME * 10 / SPEED

*The time it takes to perform a melee or missile attack is: (ACTIONTIME + WEAPONSPEEDMODIFIER) * 10 / SPEED where WEAPONSPEEDMODIFIER is (ITEMWEIGHT - 5) * 10.

I'll make sure to release a new version tonight or tomorrow to fix this. Thanks for pointing this out. This will probably mean that the game will become more difficult as higher speed monsters will hit you more often, but I guess that's ok :-)

Mateusz P-G

  • Hero Member
  • *****
  • Posts: 558
  • Polish Translator
    • View Profile
Re: Speed Stat, please explain it.
« Reply #2 on: July 23, 2012, 01:26:38 PM »
Good grief!

This system sure doesn't sound like what's happening
in Dweller right now...
 :o

But to be honest, this looks grrrrreat, almost exactly
what I was thinking about as imo ideal solution, time
units /action points, this is way too awesome!

Many thanks for clearing that out, can't wait for the
update!

:D
If you remember the sprites from my avatar, know that you're awesome!