mush里面的if语句:
if A>B then ooxx
elseif A
end
我要做一个判定,如果变量lw_force数值小于变量lw_max数值,就设定变量lw_now为force,否则,判断变量lw_dodge数值是否小于变量lw_max数值,如果是,设定变量lw_now为dodge,如果不是,判断lw_cuff...如此下去按顺序依次判断,应该要用if嵌套,但是我不会,谁来帮我弄下:
if @lw_force<@lw_max
then SetVariable("lw_now","force")
end
if @lw_dodge<@lw_max
then SetVariable("lw_now","dodge")
end
if @lw_parry<@lw_max
then SetVariable("lw_now","parry")
end
if @lw_cuff<@lw_max
then SetVariable("lw_now","cuff")
end
if @lw_finger<@lw_max
then SetVariable("lw_now","finger")
end
if @lw_sword<@lw_max
then SetVariable("lw_now","sword")
end
北大侠客行MUD,中国最好的MUD |