Code: Select all
function addAff(affl)
if type(affl) == "string" then
affs.affl = true
end
end
From there, the function "cureAff()" is sent out. Here's the "cureAff()" code:
Code: Select all
function cureAff()
for k,v in pairs(affs) do
if affs.(affliction goes here) == true then
send(appropriate curing alias)
end
end
end
Now, I've been testing this on a simple trigger that breaks my left arm. I've had the debugging window open while testing this, but Mudlet doesn't seem to be picking up the affliction trigger, only the trigger that fires when the affliction is cured. Could someone help me debug this? And if you need any clarification in my explanation, please ask. I tried to be as clear as possible.