作者laechan (小太保)
看板mud_sanc
标题[wizs] _spell.c 新增 list_cost 函数
时间Mon Oct 17 12:16:29 2011
我还没有写正式的指令格式,不过有兴趣的 wiz 可先行试用
(玩家施展法术的消耗值计算式, 原本是写在 cmd_spell 内的
,现在独立出来写成一个 return_cost 函数,list_cost 基
本上就是呼叫该函数回传法术消耗值)
基本用法:
call /cmds/std/_spell;list_cost;玩家id
如 call /cmds/std/_spell;list_cost;windman <= 注意这里不要 "windman"
进阶用法1:
call /cmds/std/_spell;list_cost;玩家id;"技能关键字"
如 call /cmds/std/_spell;list_cost;windman;"hands" <= 只列技能名里有 hands 的
进阶用法2:
call /cmds/std/_spell;list_cost;玩家id;"";参考技能值
如 call /cmds/std/_spell;list_cost;windman;"";9900 <= 一律使用这个技能值为参考
> call _spell;list_cost;windman;"hands";9900
基值1 基值2 级数 消耗值 法术名称
=========================================================
60 250 99 6190 电光击掌(electric hands)
60 250 99 6190 燃烧之手(burning hands)
60 250 99 6190 细雪云气(snow hands)
60 250 99 6190 飞砂走石(sand hands)
60 250 99 6190 舞动之风(cyclone hands)
=========================================================
windman 的 sp_src: 446622
如上所列,级数部份就会一律以 9900/100 为计算值,而不会
以 windman 的 5 hands 技能值为计算值。
(若把 "hands" 改成 "" 就列出 spell.h 所订的全部技能)
正式的指令格式有可能是 spell -cost 谁,关键字,技能值 这样
Laechan
--
※ 发信站: 批踢踢实业坊(ptt.cc)
※ 编辑: laechan 来自: 101.13.133.59 (10/17 12:17)