I have trouble scripting for healing in my MUD.
im using LUA. I have set the triggers
FEELING SAD to send to variable sad the value of 1
FEELING MAD to send to variable mad the value of 1
and I see 1 in both mad and sad under variables when the triggers comeup.
My trouble is executing an action when my alias shows that im mad or sad.
this is what ive tried to write
the alias is diagnoss and I send to script:
if @sad=1 then
Execute "eat ash"
elseif @mad=1 then
Execute "eat ash"
else
Note "you are not sad or mad"
end
I apologize for being such a caveman, but I am having fun learning and I'm really stuck.
Respectfully, Erick
im using LUA. I have set the triggers
FEELING SAD to send to variable sad the value of 1
FEELING MAD to send to variable mad the value of 1
and I see 1 in both mad and sad under variables when the triggers comeup.
My trouble is executing an action when my alias shows that im mad or sad.
this is what ive tried to write
the alias is diagnoss and I send to script:
if @sad=1 then
Execute "eat ash"
elseif @mad=1 then
Execute "eat ash"
else
Note "you are not sad or mad"
end
I apologize for being such a caveman, but I am having fun learning and I'm really stuck.
Respectfully, Erick