北大侠客行MUD论坛

 找回密码
 注册
搜索
热搜: 新手 wiki 升级
查看: 1819|回复: 1

求教mush变量问题

[复制链接]
发表于 2021-5-3 01:27:04 | 显示全部楼层 |阅读模式
^.*你向冲虚道长打听有关『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不会变成武当广场  这个是为什么呢?
北大侠客行Mud(pkuxkx.net),最好的中文Mud游戏!
发表于 2021-5-3 09:55:34 | 显示全部楼层
didian=GetVariable ("didian")

没看到你赋值的语句,没赋值当然不会变成“武当广场”
北大侠客行Mud(pkuxkx.net),最好的中文Mud游戏!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|北大侠客行MUD ( 京ICP备16065414号-1 )

GMT+8, 2024-4-26 04:34 AM , Processed in 0.008342 second(s), 14 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表