Code: Select all
attackTable={
axehere=axeHere,
axeback=axeBack
}
function tabAttack( att )
local attack = attackTable[ att ]
attack()
end
function axeHere()
--blah blah some commands
end
I haven't mudded much in the mean time, and certainly haven't used that script, but tonight I attempted to do both and discovered that this script no longer works.
Potentially, I may have broken the script a few months back and forgot about it - perhaps it never worked that way. Regardless, I HAVE executed functions in a manner something like this, but have forgotten how to do so (or something has changed).
Please help?