• 5615阅读
  • 6回复

Item的staffmod选择原理 [复制链接]

上一主题 下一主题
离线铃铛
 

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看楼主 倒序阅读 使用道具 楼主  发表于: 2010-11-28 14:04:06
By: Go_Limyh  (SB_GL)

本帖出自:HOLY Clan及暗黑品网

我们在游戏里常常得到带各种技能的normal item,这些附带于normal item上的skill我们就称为staffmod(automod是指如amazonbow 1-3bowskil那种)l那么,到底哪些item可以获得staffmod?这里总结一下:
*刺客爪(katar)         : 加刺客技能 
法杖(wand)             : 加男巫技能  
野蛮人头盔(bar helm): 加野蛮人技能
骑士权杖(scepter)    : 加圣骑士技能
女巫杖(staff, orb)     : 加女巫技能
德鲁依头盔(pelt)      : 加德鲁依技能
死灵盾牌(heads)      : 加死灵技能

*刺客的情况有些特殊,她的专用爪分属h2h2/h2h(gamecode)类,
只有h2h2的爪能带staffmod。这里是列表:
battle cestus        斗腰刀
feral claws            猛禽爪
greater claws        巨爪
greater talons       巨鹰爪
hand scythe         手镰
runic talons          符文爪
scissors quhab      格斗剪
scissors suwayyah  近身剪
war fist                战拳
wrist sword          腕剑
suwayyah             近身刃


离线铃铛

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看该作者 沙发  发表于: 2010-11-28 14:04:21
好了,在了解了什么是staffmod后,下面进入选择阶段的介绍:
首先,让我们先了解1个名词:
skillid:在txt里每种游戏技能都是用阿拉伯数字编号作为他们的id,不同char的id是6-280中某一段,base_id就是某char在skills.txt里开始那个id,比如pally是96-125,base_id=96.
那么现在就开始解释d2系统是怎么选择skill的:
首先,系统决定“出现几个skill”,这是一个在0-99间随机选择的过程(注入成品的x=x+iLvl):x>90 出现3种skill;70<x<90 出现2种;30<x<70, 1种;x<30,光棒棒.
然后,开始选择什么skill出现了。
首先和ilvl有关的参数将被决定:我们设为a
1<=ilvl<=11: a=1
12<=ilvl<=18: a=2
19<=ilvl<=24: a=3
25<=ilvl<=36: a=4
37<=ilvl<=99: a=5*注
注意:注入的clvl+4ilvl的奖励在决定a之前提供,且任何itemsilvl>25就会变成magic,不再具有做runewords的性质
然后系统会随机提供修饰几率:
20%机会+1,50%机会不变,20%机会-1,10%机会-2,得到a'
http://www.lurkerlounge.com/forums/index.php?s=30ca573b72bbaeaaac73f6efff6f793f&showtopic=1033&mode=linear
如果是低品质材料,如破碎的,a将在4封顶,这就是为什么破碎的几乎不出什么高id的skill。
然后,就进入选择出现skill的最后步骤:
公式final skillid=base_id+5*a'-5+(0,1,2,3,4随机)
得出的数字,比如93—bonespirit。

:非资料片模式的a值最大取4.

〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓分割线〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓

以下用表格来简单说明下物品等级跟技能选择的关系。
在这之前,引入一个Skill Group的概念。记技能在技能树上的需求级别为Req_lvl,则
Skill Group = [ Req_lvl / 6 ] + 1  其中方括号表示向下取整。

Base_id    ≤ Skill_id ≤ Base_id+4 :Skill Group=1
Base_id+5  ≤ Skill_id ≤ Base_id+9 :Skill Group=2
Base_id+10 ≤ Skill_id ≤ Base_id+14:Skill Group=3
Base_id+15 ≤ Skill_id ≤ Base_id+19:Skill Group=4
Base_id+20 ≤ Skill_id ≤ Base_id+24:Skill Group=5
Base_id+25 ≤ Skill_id ≤ Base_id+29:Skill Group=6

┌────────┬─────────────────┐
│                │               Skill Group        │
│  物品等级iLvl  ├──┬──┬──┬──┬──┬──┤
│                │  1 │  2 │  3 │  4 │  5 │  6 │
├────────┼──┼──┼──┼──┼──┼──┤
│      iLvl ≤ 11│ 80%│ 20%│ -- │ -- │ -- │ -- │
├────────┼──┼──┼──┼──┼──┼──┤
│12 ≤ iLvl ≤ 18│ 30%│ 50%│ 20%│ -- │ -- │ -- │
├────────┼──┼──┼──┼──┼──┼──┤
│19 ≤ iLvl ≤ 24│ 10%│ 20%│ 50%│ 20%│ -- │ -- │
├────────┼──┼──┼──┼──┼──┼──┤
│25 ≤ iLvl ≤ 36│ -- │ 10%│ 20%│ 50%│ 20%│ -- │
├────────┼──┼──┼──┼──┼──┼──┤
│37 ≤ iLvl ≤ 99│ -- │ -- │ 10%│ 20%│ 50%│ 20%│
└────────┴──┴──┴──┴──┴──┴──┘

离线铃铛

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看该作者 板凳  发表于: 2010-11-28 14:04:46
最后进入skill修饰阶段:也就是大家关心的+?bs
再一次进行0-99的随机选择,然后如果是注入的话,再加上(clvl+4)/2的增量。
得出的就是决定+?的参数:
0<x<=60:+1
61<x<=90:+2
91<x<=99:+3
可以看出+3的概率是很小的。
然后再重复最开始的步骤以继续选择其它skill
注意,可能大家会想到要是第2次选择又恰好选到bs,会怎么样?事实上在游戏里我们并没看到类似情况,因为在最后的选择公式得出的结果如果也=93,系统会回到最开始重新进行选择(0,1,2,3,4随机)这部分。选中了不能出现的技能也是如此
以上就是系统选择staffmod的全过程,关于在normal的shop情况,我晚上或明天会继续写出,希望对大家有所帮助。
离线铃铛

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看该作者 3楼 发表于: 2010-11-28 14:05:12
2 关于shop normal staff的相关信息:
首先我们要知道在npc处购买到的staff ilvl=clvl+5。
但是在normal难度下有ilvl封顶这一规定:
act1 12/act2 20/act3 28/ act4 36/act5 45

可以在normal wand上出现的skill如下:
amplify damage
teeth
bone armor
skeleton mastery
raise skeleton

dim vision
weaken
poison dagger
corpse explosion
clay golem

iron maiden
terror
bone wall
golem mastery
raise skeleton mage

confuse
life tap
poison explosion
bone spear
bloodgolem

attract
decrepify
bone prison
summon resist
irongolem

lower resist
poison nova
bone spirit
firegolem
revive
离线铃铛

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看该作者 4楼 发表于: 2010-11-28 14:05:43
为了方便表示,以id1-6组称呼。
根据我前面的铺垫叙述,可以得出如下结论:
normal act1: max id=3;act2: 4;act3: 5;act4: 5;act5: 6
举例说,也就是不管你用什么样,多少级的char去shop,也不可能在 normal act1看见属于4/5/6id组的skill出现在wand上,比如 lower resist。
下面是不限难度限制的几率计算,由于我比较懒,所以就请gaiacat算了
clvl 1-6: id1 80% id2 20%
clvl 7-13: id1 30% id2 50% id3 20%
clvl 14-19: id1 10% id2 20% id3 50% id4 20%
clvl 20-31: id2 10% id3 20% id4 50% id5 20%
clvl 32-99: id3 10% id4 20% id5 50% id6 20%
注意到normal act2最高20ilvl,所以情况应同14-19clvl,即: id1 10%/id2 20%/id3 50%/id4 20%
所以我有些朋友对我说他们在normal act2 shop到过+bonespirit的wand,我感觉很惊讶,如果哪位朋友也有同样经历,请务必截图(最好有ilvl显示)。

补遗:10里改变了对某些特定skills以staffmod出现的限制。
09里只有1种判断:D2C还是LOD,前者PosionDagger无法出现在Wand上,后者可以。
10里引入了新的判断原则:
受到Itmetype的限制:检测skills.txt里的itypea1,如果系统检测到skill的itypea1与itemtype不同,就重新选择。。
Holy Shield 的 itypea1=shld (shield), 与scepter不同,所以hs不可能出现在scepter上。
类似的有Poison Dagger (knife), Smite (shield), Double Swing (melee), Stun (melee), Double Throw (throwing), Leap Attack (melee), Concentrate (melee), Frenzy (melee), Whirlwind (melee), Berserk (melee).(这个不完全正确,见补充说明)

感谢:gaiacat的大量帮助计算
     hammerman的关于选择的细节解释
     ruvanal的skill.txts资料提供和再次选择的细节解释
     jarulf关于再次选择解释的确认
     adeyke关于asn claw的提醒和shane的表格补充

补充说明:事实上,那些所谓的不能出现的技能仍然是可以出现的。
系统在决定了技能个数和final skill_id后,将对每个随机选中的技能做6次的循环选择判定。
如果是有效技能(技能的itypea1和装备的types匹配,且不是已经被选中的技能),则停止循环,确定该技能为staffmod出现;
如果不是有效技能,则继续循环选择直到出现有效技能,若前5次的循环选择都不是有效技能,则选定第6次循环选择的技能为staffmod出现——即使它也不是有效技能。


例:
系统选定在Jawbone cap出现两个staffmod的skill,final skill_id为151~155(即为Bar的第6组)skill_id组
Whirlwind (itypea1 = mele)
Berserk (itypea1 = mele)
Natural Resistance
War Cry
Battle Command

1st skill = War Cry (有效技能 , 选定)
2nd skill = Berserk (itype1a = mele ,不是有效技能, 继续循环选择) (1)
--------- = War Cry (已经选定过的技能, 不是有效技能, 继续循环选择) (2)
--------- = War Cry (已经选定过的技能, 不是有效技能, 继续循环选择) (3)
第(4)、(5)次的循环选择也不是有效技能
------ = Whirlwind (不是有效技能, itype1a = mele) (6)
那么,对第2个技能的(6)次循环选择都不是有效技能,现在,将把第(6)次的Whirlwind选定为staffmod出现。即最后的技能为:War Cry、Whirlwind。
离线铃铛

发帖
59624
金钱
6311
91币
0
信誉
0
资产
0 IST
在线时间
3431 小时
注册时间
2009-08-31
最后登录
2021-02-27
只看该作者 5楼 发表于: 2010-11-28 14:06:16
Id    charclass  skill
6     ama        Magic Arrow
7     ama        Fire Arrow
8     ama        Inner Sight
9     ama        Critical Strike
10    ama        Jab
11    ama        Cold Arrow
12    ama        Multiple Shot
13    ama        Dodge
14    ama        Power Strike
15    ama        Poison Javelin
16    ama        Exploding Arrow
17    ama        Slow Missiles
18    ama        Avoid
19    ama        Impale
20    ama        Lightning Bolt
21    ama        Ice Arrow
22    ama        Guided Arrow
23    ama        Penetrate
24    ama        Charged Strike
25    ama        Plague Javelin
26    ama        Strafe
27    ama        Immolation Arrow
28    ama        Dopplezon
29    ama        Evade
30    ama        Fend
31    ama        Freezing Arrow
32    ama        Valkyrie
33    ama        Pierce
34    ama        Lightning Strike
35    ama        Lightning Fury
36    sor        Fire Bolt
37    sor        Warmth
38    sor        Charged Bolt
39    sor        Ice Bolt
40    sor        Frozen Armor
41    sor        Inferno
42    sor        Static Field
43    sor        Telekinesis
44    sor        Frost Nova
45    sor        Ice Blast
46    sor        Blaze
47    sor        Fire Ball
48    sor        Nova
49    sor        Lightning
50    sor        Shiver Armor
51    sor        Fire Wall
52    sor        Enchant
53    sor        Chain Lightning
54    sor        Teleport
55    sor        Glacial Spike
56    sor        Meteor
57    sor        Thunder Storm
58    sor        Energy Shield
59    sor        Blizzard
60    sor        Chilling Armor
61    sor        Fire Mastery
62    sor        Hydra
63    sor        Lightning Mastery
64    sor        Frozen Orb
65    sor        Cold Mastery
66    nec        Amplify Damage
67    nec        Teeth
68    nec        Bone Armor
69    nec        Skeleton Mastery
70    nec        Raise Skeleton
71    nec        Dim Vision
72    nec        Weaken
73    nec        Poison Dagger
74    nec        Corpse Explosion
75    nec        Clay Golem
76    nec        Iron Maiden
77    nec        Terror
78    nec        Bone Wall
79    nec        Golem Mastery
80    nec        Raise Skeletal Mage
81    nec        Confuse
82    nec        Life Tap
83    nec        Poison Explosion
84    nec        Bone Spear
85    nec        BloodGolem
86    nec        Attract
87    nec        Decrepify
88    nec        Bone Prison
89    nec        Summon Resist
90    nec        IronGolem
91    nec        Lower Resist
92    nec        Poison Nova
93    nec        Bone Spirit
94    nec        FireGolem
95    nec        Revive
96    pal        Sacrifice
97    pal        Smite
98    pal        Might
99    pal        Prayer
100   pal        Resist Fire
101   pal        Holy Bolt
102   pal        Holy Fire
103   pal        Thorns
104   pal        Defiance
105   pal        Resist Cold
106   pal        Zeal
107   pal        Charge
108   pal        Blessed Aim
109   pal        Cleansing
110   pal        Resist Lightning
111   pal        Vengeance
112   pal        Blessed Hammer
113   pal        Concentration
114   pal        Holy Freeze
115   pal        Vigor
116   pal        Conversion
117   pal        Holy Shield
118   pal        Holy Shock
119   pal        Sanctuary
120   pal        Meditation
121   pal        Fist of the Heavens
122   pal        Fanaticism
123   pal        Conviction
124   pal        Redemption
125   pal        Salvation
126   bar        Bash
127   bar        Sword Mastery
128   bar        Axe Mastery
129   bar        Mace Mastery
130   bar        Howl
131   bar        Find Potion
132   bar        Leap
133   bar        Double Swing
134   bar        Pole Arm Mastery
135   bar        Throwing Mastery
136   bar        Spear Mastery
137   bar        Taunt
138   bar        Shout
139   bar        Stun
140   bar        Double Throw
141   bar        Increased Stamina
142   bar        Find Item
143   bar        Leap Attack
144   bar        Concentrate
145   bar        Iron Skin
146   bar        Battle Cry
147   bar        Frenzy
148   bar        Increased Speed
149   bar        Battle Orders
150   bar        Grim Ward
151   bar        Whirlwind
152   bar        Berserk
153   bar        Natural Resistance
154   bar        War Cry
155   bar        Battle Command
221   dru        Raven
222   dru        Plague Poppy
223   dru        Wearwolf
224   dru        Shape Shifting
225   dru        Firestorm
226   dru        Oak Sage
227   dru        Summon Spirit Wolf
228   dru        Wearbear
229   dru        Molten Boulder
230   dru        Arctic Blast
231   dru        Cycle of Life
232   dru        Feral Rage
233   dru        Maul
234   dru        Eruption
235   dru        Cyclone Armor
236   dru        Heart of Wolverine
237   dru        Summon Fenris
238   dru        Rabies
239   dru        Fire Claws
240   dru        Twister
241   dru        Vines
242   dru        Hunger
243   dru        Shock Wave
244   dru        Volcano
245   dru        Tornado
246   dru        Spirit of Barbs
247   dru        Summon Grizzly
248   dru        Fury
249   dru        Armageddon
250   dru        Hurricane
251   asn        Fire Trauma
252   asn        Claw Mastery
253   asn        Psychic Hammer
254   asn        Tiger Strike
255   asn        Dragon Talon
256   asn        Shock Field
257   asn        Blade Sentinel
258   asn        Quickness
259   asn        Fists of Fire
260   asn        Dragon Claw
261   asn        Charged Bolt Sentry
262   asn        Wake of Fire Sentry
263   asn        Weapon Block
264   asn        Cloak of Shadows
265   asn        Cobra Strike
266   asn        Blade Fury
267   asn        Fade
268   asn        Shadow Warrior
269   asn        Claws of Thunder
270   asn        Dragon Tail
271   asn        Lightning Sentry
272   asn        Inferno Sentry
273   asn        Mind Blast
274   asn        Blades of Ice
275   asn        Dragon Flight
276   asn        Death Sentry
277   asn        Blade Shield
278   asn        Venom
279   asn        Shadow Master
280   asn        Royal Strike
离线肥胖小狗
发帖
3647
金钱
1116
91币
599
信誉
0
资产
0 IST
在线时间
1131 小时
注册时间
2012-06-02
最后登录
2024-03-13
只看该作者 6楼 发表于: 2013-07-12 16:30:54
马克备查~~~~
快速回复
限100 字节
 
上一个 下一个