Re: [请益] 问一个触发写法

楼主: pssjim (Mud Gamer)   2013-06-28 23:02:39
先做个alias
#alias pra1 {summon @weapon;stop;#t+ practice1;#va time 10000;#va skill_name
"";#va enableskill %1;skills %1;title -l}
再做个触发
触发句(类别为practice1):(%s)(*)(%s)~((*)~)(%s)-(%s)(%d)/ ()
命令句:共三行
#additem skill_name %4
#delitem skill_name yinyang-shiertian
#if %ismember(@enableskill,@skill_name) {#delitem skill_name @enableskill}
完成后,只要按下pra1 xxx(xxx请选择你要practice的种类,譬如claw,unarmed之类)
譬如pra1 claw
zmud画面就会显示skills claw
并将skills claw所得到的所有skills id(不包括基本claw和12sky)
通通存入skill_name这个变量里,使用#show @skill_name大概会出现
sanyin-zhua|yingzhua-gong|shiying-shenzhao|jiuyin-baiguzhao|huzhua-shou
类似这样的画面
要练习指令可以参考
enable @enableskill %item(@skill_name,1) <-enable第一个skill
practice @enableskill @time
练到上限换下一个,指令可以参考
#delitem skill_name %item(@skill_name,1)
enable @enableskill %item(@skill_name,1)
practice @enableskill @time
以上感谢silentree解答,谢谢

Links booklink

Contact Us: admin [ a t ] ucptt.com