How do I make nested IFs work in MUSHCLIENT? I will be your best friend forever (but only ooc unless you're a magnagoran) if you can debug this for me.
if mask == "fain" then
SetVariable("mask","none")
mask = "none"
Send("remove mask")
Send("put mask in pack")
if greatrobe == "true" then
Send("describe self blah blah blah")
else
Send("describe self blah blah blah")
end--if
elseif mask == "pariah" then
SetVariable("mask","fain")
mask = "fain"
Send("remove mask")
Send("put mask in pack")
Send("get 87842 from pack")
Send("wear mask")
if greatrobe == "true" then
Send("describe self blah blah blah")
else
Send("describe self blah blah blah")
end--if
else
SetVariable("mask","fain")
Send("get 87842 from pack")
Send("wear mask")
if greatrobe == "true" then
Send("describe self blah blah blah")
else
Send("describe self blah blah blah")
end--if
end--if
The drone, the whistle, the thundrous sound;
It seared their eyes, it shook the ground.
One hundred thousand voices lift,
While ashes like dirty snowfall drift.
The clouds of purple glowing gas,
The tiny sun is rising fast.
Your star...
Is on the rise.
0
Comments
if mask == "fain" then
-- if greatrobe == "true" then
-----first thing
--else
-----second thing
--end
elseif mask == "pariah" then
-- if greatrobe == "true" then
-----third thing
--else
-----fourth thing
--end
else
--if greatrobe = "true" then
-----fifth thing
--else
-----sixth thing
--end
end
It seared their eyes, it shook the ground.
One hundred thousand voices lift,
While ashes like dirty snowfall drift.
The clouds of purple glowing gas,
The tiny sun is rising fast.
Your star...
Is on the rise.