Though what KingNothing (sorry, but I refuse to go through keyboard gymnastics just to type your name) mentioned is technically correct, there is something else going on here.
Oh and please use code tags when posting code to the forums otherwise we get a mess like the above. To find out about code tags and other types of tags you can use (though some have been disabled), click the words
BB Code in the Posting Permissions box at the bottom of this and any other thread.
I keep getting this error: [string 'ScoutWarden(arg1)']:1: attempt to call global 'ScoutWarden' (a nil value)
This error message is typically caused by some kind of typo or some other error in the code which makes Lua unable to compile and therefore load you file. What Lua is telling you is that it has no clue what
ScoutWarden is (when Lua doesn't know something, it assumes the value of that something is
nil, hence the error).
Therefore your first stop is to go over the code and make sure that there are no glaring mistakes. I didn't see any myself, but not having the code tags makes the code harder to read so I may have missed something (you may also be interested in
this guide).
I'm having trouble with DIYCE for s/wd. Here's the code in myfunctions.lau
At first I assumed that you misspelt the name of the file on this post, but if it really is called that, then that may be the source of the problem and not the code itself. Make sure the file is called
myfunction.lua (note the file extension).