draw/sheathe weapon key
Posted: Sun Sep 18, 2022 2:27 am
Hi, I'm trying to make a simple script on my keypad 0 to draw/sheathe my weapons.
I have the following:
sheathed = getVariable("WeaponSheathed")
echo("sheathed")
if sheathed == "yes" then
send("draw weapons from scabbard belt")
setVariable("WeaponSheathed", "no")
elseif sheathed == "no" then
send("sheathe sword")
send("sheathe knife")
setVariable("WeaponSheathed", "yes")
end
I put the echo in to see if it is getting the variable.
I have the variable WeaponSheathed set up, and set it to string type, and set it to yes
I was going to just use boolean, but couldn't work out how to use that. Haven't done mudlet scripting in a while.
Any help would be appreciated.
I have the following:
sheathed = getVariable("WeaponSheathed")
echo("sheathed")
if sheathed == "yes" then
send("draw weapons from scabbard belt")
setVariable("WeaponSheathed", "no")
elseif sheathed == "no" then
send("sheathe sword")
send("sheathe knife")
setVariable("WeaponSheathed", "yes")
end
I put the echo in to see if it is getting the variable.
I have the variable WeaponSheathed set up, and set it to string type, and set it to yes
I was going to just use boolean, but couldn't work out how to use that. Haven't done mudlet scripting in a while.
Any help would be appreciated.