|

楼主 |
发表于 2009-5-4 04:41:11
|
显示全部楼层
function set_state(st_name,st_value)
{
for(i=0;i<9;i++) st_value=st_value.replace(" ",""); -----[[这里为什么要用循环?这个不是抓状态么...]]
st_name=st_name.replace("-","_");
world.setVariable(st_name,st_value);
}
function set_var(st_name,st_value)
{
world.setVariable(st_name,st_value);
}
这段出现在sure的朱熹答题脚本中...请问谁能把这段解释一下...
另外 请问我通过trigger抓取的变量如何发送给脚本?
打个比方说
^[> ]*(.*)两银子\(\bSilver\b\)$
%1是xx两银子,如何把这个%1赋值给脚本里的变量number?
选项里选择发送给脚本解析器这个我知道...
我问的是命令行里要如何书写?
setvariable ("number",%1)这个不行...
问题很简单 请别笑话...(闭门研究了几天mush和lua的入门,连游戏都停下来专心啃书) |
|