feichangdao 发表于 2015-3-30 07:24:53

请问MUSH Lua怎么在SetVariable里连接字符串啊?

大概意思是
SetVariable("a", GetVariable("a") .. %1)

北大侠客行MUD,中国最好的MUD

pssjim 发表于 2015-3-30 08:24:59

SetVariable("test1","h")
SetVariable("test2","i")
SetVariable("test3",GetVariable("test1")..GetVariable("test2"))

feichangdao 发表于 2015-3-30 19:27:22

回复 2# pssjim


Script error
World: pkuxkx
Execution of line 3 column 42
Immediate execution
Expected identifier
Line in error:
SetVariable("test3",GetVariable("test1")..GetVariable("test2"))

错误啊。。哪儿不对呢我

feichangdao 发表于 2015-3-30 19:56:09

我去,终于知道为什么了,装了那个task locate插件,结果script设的是java,改成lua就好了
页: [1]
查看完整版本: 请问MUSH Lua怎么在SetVariable里连接字符串啊?