Diablo IIThe Lurker Lounge
      ABOUT · CHAT · COMMUNITY · FORUM · NEWS


The Workshop
Diablo II Mechanics and Statistics
Knowledge is power. In this forum, we discuss detailed game mechanics and statistics, from how Diablo II functions, to the probabilities of events happening.
Questions?  Read the Forum FAQ and please obey the Forum Rules.

Subject: "WW Calculator Suggestion" Archived thread - Read only
 
  Previous Topic | Next Topic
Printer-friendly copy     Email this topic to a friend    
Conferences The Workshop Topic #68
Reading Topic #68
BloodyMayhem
Charter Member
30-May-01, 03:57 PM (GMT)
Click to EMail BloodyMayhem Click to send private message to BloodyMayhem Click to add this user to your buddy list  
"WW Calculator Suggestion"
 
   Seeing as one of the most popular questions about the XPac is WW Speed, it would be nice to see a WW Speed/Hit calculator. Now I don't know the mechanics of it, I'll leave that up to the pros, but here are my thoughts on how it could work.

Use Classic D2 WW Speed/Hits Per WW as a baseline for either a sword, spear, mace, whatever. Then have spaces for each equipment slot, weapons (one or two hand), armor, gloves, belt, etc. A person could put in whatever equipment they are using, item types for a GIAS Battle Hammer or IAS Lance, or specific named items such as SIAS Goldwrap, or GIAS Sigon's Gauntlets. And once all the numbers are calculated, it will give a # of hits per WW that can be compared to the Classic D2 WW.

Now, like I said, I don't know if it's possible to even do something like this, but if it is, this is how I would see it.

Comments welcome but lets try one thread without flames about Barbs this or Barbs that.

Thanks.

-- Baron BloodyMayhem (Level 85 Barbarian)


  Printer-friendly page | Top
Jarulf
Charter Member
31-May-01, 02:51 AM (GMT)
Click to EMail Jarulf Click to send private message to Jarulf Click to add this user to your buddy list  
1. "RE: WW Calculator Suggestion"
In response to message #0
 
   This should be how the skill works in normal Diablo. I would say they are not rewriting the whole engine for the x-pack so something similar should apply.

All skills have a certain "length". For melee attacks one typically call it the attack speed, for spells the cast speed and so on. It can be expressed as a time in frames. There are numerous sites, calculators, lists and such that list those speeds for all kind of weapons and spells. Some skills are special in that they have a fixed length, at least some lightning skills for example used to (chain lighting?) some had a "rewind" feature (those multiple ones like Zeal and Fend(?) ).

What the game do when you perform a skill (and most things are skills, even the normal attack is a skill really is that it can do "startup work". Basically a routine that is done when the skill initiates. Then there is an update section, this is done when the skill is completed (in the mean time it just performs the animation and update your char as far as I can see). An interesting thing is that for most attacks, the actual ToHit and damage calcls and so are done upon skill initialization while the resolution is done later, this is not important here.

The WW skill will initiate and then you start out. After a certain ammount of frames (of which I really don't know as I hve not checked, it has finnished one WW "animation" and thus executes the skill resolution code. This will for WW make 2 attacks (I think the two attacks are done versus random targets within range). I leave out housekeeping stuff as target selection and other bookkeeping. It then continues with a new WW "animation" and when done, 2 more attacks and so on.

The WW stops when you have reached your target location I think although it seems you at times can be interupted.

So, how do one factor in weapon speed? Well, the simplest thing would be to apply the weapon speed modifiers (including from other items and such), just as for a normal melee attack on the "WW animation" part inbetween the attacks. As I said, I have no idea how long it is, but it seems quite short, meaing you will need some considerable modifiers for an effect but the effect will be quite large. As the game uses fixed point arithmetics one can of course do it differntly, have a higher resolution counter that you can set to a base speed of any value down to 1/256th of a frame and modify it and base your attacks on it. This means, in my opinion although I can be wrong, some basic engine changes to be done. The other alternative is something similar but with some kind of "rewind" feature that does not really rewind the counter but make sure fractions carries over (it allready might though. then nothing needs to be done).

What I am comming at is that most likely the speed effect will be the same as for other attacks, modifying a base speed by a pwercentage just lile other weapon speeds. In addition one can tweak number of attacks per attack so to speak (the 2 today).

Just some random thoughts, again, I can't check how the x-pack do it, just how the normal game do it.


  Printer-friendly page | Top

Conferences | Topics | Previous Topic | Next Topic