Okay I'm attempting to make a illusion system which isn't working out.
In alias I have this
varIllusion = ginseng
echo("\nUsing Relapsing illusions.")
In script I have this
function illusion()
if varIllusion == goldenseal then
expandAlias("ill You shuffle your feet noisily, suddenly bored. and a test")
elseif varIllusion == "ginseng" then
illGinseng() else
end
end
I also have this
function illGinseng()
if varIllusion == ginseng then
expandAlias("ill ill Javar sinks his fangs into your body and you wince in pain.\nYou feel light headed and dizzy.")
end --ends If statement
end --ends function
So I use the alias ig short for Illusion Ginseng and I get the using Relapsing Illusions echo however every time I attack someone it sends "ill You shuffle your feet noisily, suddenly bored. and a test"
Could someone help me work out why it won't change the variable or run the Illusion function?