wkwk 发表于 2021-5-3 01:27:04

求教mush变量问题

^.*你向冲虚道长打听有关『quest』的消息。$\n^.*冲虚道长说道:「武当派以真武七截阵闻名天下.*$

local didian=GetVariable ("didian");
local ck=GetVariable ("chukou");
local chukou="";
local lz="";

local i=math.floor (MtRand() * 6);
if i==0 then chukou="east" end
if i==1 then chukou="northeast" end
if i==2 then chukou="southeast" end
if i==3 then chukou="west" end
if i==4 then chukou="northwest" end
if i==5 then chukou="southwest" end

if didian=="武当广场" then
if chukou=="west" then lz="east" end
if chukou=="east" then lz="west" end
if chukou=="northwest" then lz="southeast" end
if chukou=="northeast" then lz="southwest" end
if chukou=="southwest" then lz="northeast" end
if chukou=="southeast" then lz="northwest" end
SetVariable ("laizi",lz);
Send (chukou)
Send ("zhenfa")
end;


这个不触发 不知道为什么 我打开变量看了下 上面的didian不会变成武当广场这个是为什么呢?

bigb 发表于 2021-5-3 09:55:34

didian=GetVariable ("didian")

没看到你赋值的语句,没赋值当然不会变成“武当广场”
页: [1]
查看完整版本: 求教mush变量问题