裝備製作教學

這一篇要教你如何製作自己的裝備。

在 My Mud Game 中,裝備主要有兩個屬性,分別為 type(裝備種類) 與 sk_type(技能種類)。
1. type : 裝備的種類。
2. sk_type : 技能種類,會影響到所穿著裝備的技能加成。
比如說,玩家的 sword(劍術) 技能等級 10,在裝備 axe (斧類)武器時,並不會有加成效果。
但如果手持 sword  類的裝備時,就會提高基礎的傷害力。

以下是武器的種類,type 均為 weapon,分別為...
[杖] staff atk+1,matk+3
[匕] dagger atk+1,hit+3
[拳] fist atk+2,hit+2
[槍] spear atk+3,hit+1
[劍] sword atk+4
[鎚] hammer atk+5,hit-1
[斧] axe atk+6,hit-2,type = weapon

以下是防具的種類,可分為...
[盾牌] shield def+4,flee-2,type = shield
[鎧甲] armor def+3,flee-1,type = armor
[披風] cloak def+2,type = cloak
[頭盔] head def+3,hit-1,type = head
[項鍊] neck def+1,def+1,type = neck
[鞋子] boot def+1,flee+1,type = boot
[戒指] finger def+1,mdef+1,type = finger
每種防具一次可以穿著一個。

以下是每個裝備都需要設定的屬性:
level = 1
id = "staff-1"
name = "短杖"
img = "equip/staff.png"
des = "一把短杖。"
type = "weapon" 
sk_type = "staff"

以下是裝備可設定的附加屬性,穿戴時,會提高/降低人物屬性。
這些不一定需要做設定,但通常武器類裝備會設定 atk/matk,而防具類裝備則會設定 def/mdef。
atk / def / matk / mdef / hit / flee / cri / sflee / str / int / agi / dex / vit / luk。
設定方式為...
atk = 10
def = 5
matk = 1
...


By Ghoster 2020/06/01


Comments