function gill()
local goldenseal_illusions = {
"Hmmmm. Why must everything be so difficult to figure out?",
"You look about yourself nervously.",
"You shuffle your feet noisily, suddenly bored.",
}
local gillNum = math.random(1, #goldenseal_illusions)
local gillSec = math.random(1, #goldenseal_illusions)
Send("conjure " .. misc.target .. " illusion " .. goldenseal_illusions[gillNum] .. "\\n" .. goldenseal_illusions[gillSec])
end
--
This is the randomized script, but, due to low number of choices, I get double-affliction-illusions, which would be relatively useless in combat.
How exactly might I avoid multiples? I'm rather green when it comes to Lua.
local goldenseal_illusions = {
"Hmmmm. Why must everything be so difficult to figure out?",
"You look about yourself nervously.",
"You shuffle your feet noisily, suddenly bored.",
}
local gillNum = math.random(1, #goldenseal_illusions)
local gillSec = math.random(1, #goldenseal_illusions)
Send("conjure " .. misc.target .. " illusion " .. goldenseal_illusions[gillNum] .. "\\n" .. goldenseal_illusions[gillSec])
end
--
This is the randomized script, but, due to low number of choices, I get double-affliction-illusions, which would be relatively useless in combat.
How exactly might I avoid multiples? I'm rather green when it comes to Lua.