[wizs] _spell.c 新增 list_cost 函數
我還沒有寫正式的指令格式,不過有興趣的 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)
mud_sanc 近期熱門文章
PTT遊戲區 即時熱門文章
17
23