以上代码是守护星的猛烈一击的技能代码:
<skill_template skill_id="169" name="Ferocious Strike I"
type="INSTANT" level="1" duration="0" cooldown="10000">
<startconditions>
<target value="NPC" />
<mp value="50" />
</startconditions>
<useconditions>
<playermove allow="false"/>
</useconditions>
<actions>
<damage value="41" />
</actions>
</skill_template>
------------------------------------------------------
我们取中间的一小段代码进行分析:
<startconditions>
<target value="NPC" />
<mp value="50" />
</startconditions>
上面的代码大家看一下。这个是技能的设置,目标---NPC 消耗MP 50点
意思就是对目标施放该技能后。对象目标造成的伤害50点!
----------------------------------------------------------
我们在看一下如下代码,也是取自猛烈一击的的支能代码中的一段!
<actions>
<damage value="41" />
</actions>
这个是技能的效果!不用太详细介绍了!
假如我们在找到一些技能ID 完全可以自已添加技能了!
大夫疯了 编写!高手飘过。谢谢!
