Thanks. Put simply, you have a couple syntax errors and semantics errors. I'll mark and explain each one.
Send("tt %1")
SetVariable("t", "%1")
If t == Arcane -- (1, 2, 3)
Send("enemy Saboteur 100")
else ("send enemy %1") -- (4)
end--if
(1) "If" must be lowercase - Lua is case-sensitive.
(2) The 't' Lua variable isn't defined or assigned to anywhere. There are two kinds of variables in MUSHclient: script variables, which are native to the script, and client variables, which you get/set using SetVariable and GetVariable. They are very different and entirely separate, and you usually want script variables except in a few instances.
(3) The word 'Arcane' here is unquoted. Lua will assume it's a variable, which I'm pretty sure isn't what you want. You want to add quotes around it so Lua knows it's plain data.
(4) Else what? Else a string in parentheses. You probably wanted to
Send that string.
Fixed up:
Send("tt %1")
local t = "%1" -- script variable
if t == "Arcane"
Send("enemy Saboteur 100")
else
Send("send enemy %1")
end
Also, anything after -- on a line is a comment, which Lua ignores. It's handy for making notes in your code.