Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Stickies
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20.03.2005, 00:04   #1
Digital
Архивный участник
 
Join Date: Nov 2004
Posts: 1,405
Default [Notes]breakdown of skill addition

skill的编写教程


[本部分设定了隐藏,您已回复过了,以下 是隐藏的内容]
data教程
基本解說篇:
以2段技能做解說
skill_begin skill_name = [s_power_strike11] /* [?? ?????] */ skill_id = 3 level = 1 operate_type = A1 magic_level = 3 effect = {{i_p_attack_over_hit;25}} operate_cond = {{equip_weapon;{sword;blunt}}} is_magic = 0 mp_consume2 = 10 cast_range = 50 effective_range = 200 skill_hit_time = 1.08 skill_cool_time = 0.72 skill_hit_cancel_time = 0.5 reuse_delay = 13 attribute = attr_none effect_point = -52 target_type = enemy affect_scope = single next_action = attack skill_end
skill_begin skill_name = [s_drain_energy101] /* [??? ???] */ skill_id = 70 level = 26 operate_type = A1 magic_level = 47 effect = {{i_hp_drain;63;20}} is_magic = 1 mp_consume1 = 7 mp_consume2 = 25 cast_range = 600 effective_range = 800 skill_hit_time = 3 skill_cool_time = 0 skill_hit_cancel_time = 0.5 reuse_delay = 15 attribute = attr_none effect_point = -448 target_type = enemy affect_scope = single next_action = none skill_end

skill_begin <==技能設定開始,一定要有的,不是複雜 的

skill_name = [s_power_strike11] <==技能的英文名稱代號,這個技能的名ç ¨±必需要與skill_pch做對應,一定要用的,ä ¹Ÿ不是很複雜!

skill_id = 3 <==技能的id,技能的id必需要和客戶端的 skillname及skillgrp做對應,客戶端的圖示å’ Œ技能顯示效果讀取都是靠技能的id!

level = 1 <==技能的等級,簡單..相同技能分級而å· ²,如s_power_strike1~s_power_strike20..,分級而å ·±,大家應該看得懂!

operate_type = A1 <==目前我只知道operate_type = p是被動技能,還沒做完全的了解,應該æ˜ ¯技能的類型!

magic_level = 3 <==這個我還不太了解,不過有些技能和é ­”法的命中率必需依賴這個值做基準,ç” ¨magic_level與怪物的等級來比較做出命ä¸ ­的機率!

effect = {{i_p_attack_over_hit;25}} <==技能的效果,這個是主要精華,複雜多 了..等接下來再教大家

operate_cond = {{equip_weapon;{sword;blunt}}} <===技能使限定的條件,可以限定必需裝 備什麼武器或防具,或者是狀態動作才è ƒ½施展這項技能

is_magic = 0 <==是否為魔法

mp_consume1 = 0與mp_consume2 = 10 <===這項是mp所需的花費,如果是戰士系ç š„直接攻擊只需要設定mp_consume2就好,mp_ consume1代表開始施法花費的mp,而mp_consum e2是施法完成後花費的mp

如法師施法時花費的mp分2階段(開始和å ®Œ成),如果中間有被打斷施法,就不會消 費mp_consume2的mp,mp_consume1+mp_consume2=總花 費mp

cast_range = 50 <===本人還不確定

effective_range = 200 <==技能的有效範圍

skill_hit_time = 1.08 <==不太清楚

skill_cool_time = 0.72 <==不太清楚

skill_hit_cancel_time = 0.5 <==技能取消的時間0.5秒

reuse_delay = 13 <==下次施展的等待時間

attribute = attr_none <==攻擊的屬性,可以設定為attr_none,attr_d erangement,attr_poison,attr_hold,attr_water,attr_w ind,attr_fire,attr_earth

目前我所知道的是設定魔法攻擊時可ä» ¥設定上述的屬性,因為魔法攻擊的效果 敘述是effect = {{i_m_attack;99}},要搭配以上attribute =??才能設定出魔法攻擊的屬性

effect_point = -52 <==攻擊效果的點數,我不太確定是不是è ˆ‡effect = {{i_p_attack_over_hit;25}}相加就是攻擊點數

target_type = enemy <==設定攻擊的對象,可以設定enemy,self,pc _body,door_treasure,holything,item,npc_body,target

affect_scope = single <==技能影響的範圍,可以設定成single,dea d_pledge,fan,none,party,pledge,range,point_blank 這部份要和target_type做搭配

next_action = attack <===施展技能完的後續動作,可以設定non e,sit,attack,fake_death

skill_end <==技能宣告結束





基本-物理直接效果篇:
effect = {{i_p_attack;99}}普通物理攻擊
effect = {{i_p_attack_over_hit;99}}物理攻擊有overhit
effect = {{i_m_attack;99}}普通魔法攻擊
effect = {{i_heal;99}} 補HP
effect = {{i_dispel_by_slot;poison;9}} 解毒
effect = {{i_fatal_blow;73;200}}致命爆破
effect = {{i_backstab;1107;300}}背刺
effect = {{p_block_act}}動作靜止
effect = {{p_block_move}}移動禁止
effect = {{p_block_spell}}魔法禁止
effect = {{i_add_hate;-999}}降低攻擊慾望
effect = {{i_death_link;132}}把自己的痛苦傳給敵人
effect = {{p_attack_speed_by_weapon;{bow};8;per}}快速箭

被動-物理常駐狀態篇:後面用diff是點數,用pe r是百分比
effect = {{p_physical_attack;{all};2;diff}}物理攻擊,{al l}裡面可以限定裝備什麼東西才有效果
effect = {{p_physical_defence;{all};9;diff}}物理防禦,{a ll}裡面可以限定裝備什麼東西才有效æž œ
effect = {{p_magical_attack;{all};55;per}} 魔法攻擊,{all}裡面可以限定裝備什麼æ� ±西才有效果
effect = {{p_magical_defence;{all};10;diff}}魔法防禦,{a ll}裡面可以限定裝備什麼東西才有效æž œ
effect = {{p_shield_defence_rate;50}}盾防禦機率
effect = {{p_speed;{all};30;per}}提升走速,{all}裡面å� ¯以限定裝備什麼東西才有效果
effect = {{p_hit;{all};-6;diff}} 攻擊命中,{all}裡面可以限定裝備什麼æ� ±西才有效果
effect = {{p_avoid;{all};2;diff}}提升迴避能力,{all}è£ ¡面可以限定裝備什麼東西才有效果
effect = {{p_attack_speed;{all};5;per}}攻擊加速,{all}è£ ¡面可以限定裝備什麼東西才有效果
effect = {{p_critical_rate;20;per}}致命機率]
effect = {{p_max_hp;60;diff}}加強hp上限
effect = {{p_max_mp;320;diff}}加強mp上限
effect = {{p_magic_speed;{all};5;per}}加快施法速度
effect = {{i_hp_per_max;30}}恢復HP30%。
effect = {{t_hp;-18;5}}施毒術
effect = {{p_critical_damage;20;diff}}提高致命攻擊的 威力
effect = {{p_reuse_delay;-20;per}}縮短魔法再使用週期
effect = {{p_hp_regen;{all};99;diff}}快速生命回復
effect = {{p_mp_regen;{all};99;diff}}加快魔力回復
effect = {{i_dispel_by_slot;bleeding;3}}止血術
effect = {{i_dispel_by_slot;???;9}} 解除狀態,??號裡可以是turn_stone石化,poi son中毒,bleeding出血,paralyze麻痺
effect = {{i_hp_drain;20;20}}吸收對方hp
effect = {{p_reduce_cancel;-18;diff}}降低因受傷而施法中斷的機率
effect = {{p_attack_range;{all};200;diff}}增加武器攻æ“ Š範圍,{all}裡面可以限定裝備什麼東西æ ‰�有效果

屬性篇:抗性
effect = {{p_defence_attribute;attr_fire;-99}} 火屬性
effect = {{p_defence_attribute;attr_wind;-99}} 風屬性
effect = {{p_defence_attribute;attr_water;-99}} 水屬性
effect = {{p_defence_attribute;attr_earth;-99}} 地屬性
effect = {{p_defence_attribute;attr_poison;-99}} 毒屬性
effect = {{p_defence_attribute;attr_bow;-99}} 弓箭
effect = {{p_attack_attribute;attr_holy}} 聖屬性
effect = {{p_attack_attribute;attr_bug_weakness}} 蟲類
effect = {{p_attack_attribute;attr_beast_weakness}} 獸類
effect = {{p_attack_attribute;attr_animal_weakness}} 動物類
effect = {{p_attack_attribute;attr_dragon_weakness}} 龍類

進階篇1:

技能可以重疊使用,如衝擊箭和冰凍之æ “Š
effect = {{i_p_attack_over_hit;2414};{p_block_act}}
先設定普通攻擊為可overhit威力2414,再åŠ  上行動靜止效果p_block_act,但是p_block_ac t後頭沒有數值,要判定能不能讓目標靜 止的就是magic_level了

effect = {{i_m_attack;26};{p_speed;{all};-30;per}}冰凍之擊
先設定魔法攻擊威力26,再加上移動速åº ¦減慢30%的效果,尤於魔法攻擊i_m_attackä¸ ¦不是像物理攻擊i_p_attack一樣沒有屬性 ,所以必須要在attribute =設定魔法的屬性
不過有些魔法也是無屬性的魔法,自已è ¦�判斷..

其實在數值的加減上可以造成自已或æ• µ人的變化,如p_speed;{all};30;per用在自已è º«上就能加30%的走速,p_speed;{all};-30;per用在敵人身上就能減30%走速
所有數值加減請自已去變化研究

多重效果effect = {{p_physical_attack;{all};5;per};{p_attack_speed;{ all};5;per};{p_magical_attack;{all};10;per};{p_mag ic_speed;{all};5;per};{p_physical_defence;{all};-12;per}}
可以在技能中連續加入多種不同的效æž œ,如以上,大家應該懂了吧

進階篇2:
例2.技能可以限定條件才能施放,如魔æ³ •只能對不死系展開攻擊,聖屬性的攻擊
effect = {{i_m_attack;19}} operate_cond = {{target_race;race_undead}}
設定魔法攻擊為威力19,條件就是要先æŒ ‡向不死系的怪才行

例2.effect = {{i_p_attack_over_hit;25}} operate_cond = {{equip_weapon;{sword;blunt}}}
攻擊效果是物理攻擊可overhit,但條件是 要裝備劍或鈍器才能施展

進階篇3: 技能的範圍

target_type = enemy <==設定攻擊的對象,可以設定enemy,self,pc _body,door_treasure,holything,item,npc_body,target

affect_scope = single <==技能影響的範圍,可以設定成single,dea d_pledge,fan,none,party,pledge,range,point_blank 這部份要和target_type做搭配

1. target_type目標類型可以設定成
enemy敵人,只要是敵人就可以
self自已,可用於回復和輔助自已
pc_body 指向死掉的玩家
door_treasure(未知)
holything(未知)
item道具,指向道其..像是加武卷防卷,爆 晶等都用這個
npc_body(npc人物),指向死掉的npc
target指定的目標,對怪物或是自已或是ç Ž©家都可以

2.affect_scope 技能延伸的範圍
single單一體,就單體而已
pledge血盟成員
dead_pledge死掉的血盟成員
fan扇型範圍
none無
party隊伍成員
range一整排
point_blank 一個大圈的範圍,如赤焰之輪,毒霧之雲

以上的範圍跟effective_range的關係如下
施法者在effective_range範圍內鎖定target_t ype對象,施展技能後由鎖定對向位置產ç ”Ÿaffect_scope技能的延伸範圍
例如1.我對距離我60遠的兔子施法毒霧ä ¹‹雲,施展法術後射向兔子,而兔子周圍ç š„一大圈怪都會被影響
例如2.我對我前面的兔子施展瘋狂掃蕩 ,這時因為effective_range的關係,所以我會 靠近兔子才攻擊,然後兔子為中心的扇å ž‹範圍的怪都會被影響
例如3.我施展赤焰之輪,因為target_type = self,所以不需要先指怪物,而以自已為ä¸ ­心附近的一大圈都是影響範圍







pch2教程

769 50 0 10 3 -52 29 -1 0 2 11 0 -12345
769=skill_pch中的ID
50=cast_range
0=hp_consume
10=mp_consume2
3=target_type
-52=effect_point
29=attribute
-1=abnormal_type
0=abnormal_lv
2=
11=
0=
其中 target_type的值为:
0=self
1=target
3=enemy
4=enemy_only
5=item
6=summon
7=holything
9=door_treasure
10=pc_body
11=npc_body
其中 attribute的值为:
0=无
9=attr_earth
10=attr_water
11=attr_wind
12=attr_fire
13=attr_poison
15=attr_hold
17=attr_sleep
18=attr_shock
19=attr_derangement
20=attr_unholy
26=attr_paralyze
29=attr_none
其中 abnormal_type的值为:
-1=无
0=pa_up
1=pa_up_special
2=pa_down
3=pd_up
4=pd_up_special
5=pd_down
6=ma_up
7=md_up
8=md_up_attr
9=avoid_up
10=avoid_up_special
11=hit_up
12=hit_down
13=fatal_poison
14=fly_away
15=turn_stone
16=casting_time_down
17=attack_time_down
18=speed_up
19=possession
20=attack_time_up
21=speed_down
22=hp_regen_up
23=max_mp_up
24=antaras_debuff
25=critical_prob_up
26=cancel_prob_down
28=max_breath_up
29=decrease_weight_penalty
30=poison
31=bleeding
32=dot_attr
34=dmg_shield
35=ab_hawk_eye
36=resist_shock
37=paralyze
38=public_slot
39=silence
41=stun
42=resist_poison
43=resist_derangement
44=resist_spiritless
45=mp_regen_up
46=md_down
55=turn_passive
56=turn_flee
60=hp_recover
61=mp_recover
63=root
64=speed_up_special
65=majesty
66=pd_up_bow
67=attack_speed_up_bow
68=max_hp_up
69=holy_attack
70=sleep
71=berserker
72=pa_up
73=life_force
74=song_of_earth
75=song_of_life
76=song_of_water
77=song_of_warding
78=song_of_wind
79=song_of_hunter
80=song_of_invocation
81=dance_of_warrior
82=dance_of_inspiration
83=dance_of_mystic
84=dance_of_fire
85=dance_of_fury
86=dance_of_concentration
87=dance_of_light
88=detect_weakness
89=thrill_fight
90=resist_bleeding
91=critical_dmg_up
92=shield_prob_up
93=hp_regen_down
94=reuse_delay_up
95=gara
最后三个不知道是什么,知道的说一ä¸ ‹.


769 50 0 10 3 -52 29 -1 0 2 11 0 -12345
769=skill_pch中的ID ---- 对
50=cast_range ------对
0=hp_consume ------对
10=mp_consume2 ------这有点错,有CONSUME1的话就要(mp_consume 1+2)
3=target_type ------对
-52=effect_point -----对
29=attribute -----对
-1=abnormal_type -----对
0=abnormal_lv -----对
下面这里估计只有几个知道。下面个éƒ ½是4舍5入的。
2= -----这是skill_hit_time注意这里是4舍5入的1.5= 2
11= -----[reuse_delay 减 (skill_hit_time 减 skill_hit_cancel_time)]
0= -----这里是,是否IS_magic 是就1不是就0
Digital is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:15.