在论坛里看到大神们关于颜色触发的帖子后,自己做了个wd炼丹quest的脚本。结果连续弹出第二次报了这样错误。这应该怎么解决呢?多谢啦
log:
Run-time error
World: rki
Immediate execution
[string "触发器: "]:1: attempt to call global 'lu_color' (a number value)
stack traceback:
[string "触发器: "]:1: in main chunk
以下是tri和脚本
enabled="y"
group="liandan"
match=".*\^{5}.*"
regexp="y"
send_to="12"
sequence="100"
>
lu_color()
function lu_color (name, line, wildcards, styles)
local line_num = GetLinesInBufferCount()
local styles_num = GetLineInfo(line_num,11)
for i = 1,styles_num do
if GetStyleInfo(line_num,i,1) == "^" then
lu_color = GetStyleInfo(line_num,i,14)
lu_color_ch = RGBColourToName (lu_color)
print("Lu的颜色是:"..lu_color_ch..",代码是:"..lu_color)
break
end
end
end
北大侠客行MUD,中国最好的MUD |