Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script: Illusions
- code:
- illusions = illusions or {}
- illusions.index = illusions.index or 1
- illusions.enabled = illusions.enabled or false
- illusions.illTable= {
- [1] = "A nearly invisible magical shield forms around Ethoas.",
- [2] = "You suddenly perceive the vague outline of an aura of rebounding around Ethoas.",
- [3] = "You glance over Ethoas and see that his health is at 5412/4412.",
- [4] = "You let fly at Ethoas with a snap kick.\\nYou connect to the right leg!",
- [5] = "You viciously jab an ornate steel rapier into Ethoas's right leg.",
- [6] = "Ethoas points an imperious finger at you.",
- [7] = "Ethoas stands a tarot on his open palm, and blows it lightly at you. Suddenly your movement through the time stream is slowed."
- }
- function illusions.getnext()
- local current = illusions.illTable[illusions.index]
- illusions.index = illusions.index+1
- if illusions.index >= table.size(illusions.illTable) then
- illusions.index=1
- end
- return current
- end
- trigger:
- line 0: ^You prick (.+) twice in rapid succession with your dirk.$
- code:
- if illusions.enabled then
- send("conjure " ..target.. " illusion "..illusions.getnext())
- end
- alias Illusion Table On
- pattern: ^it(y|n)?$
- code:
- if matches[2] == "y" then
- illusions.enabled = true
- elseif matches[2] == "n" then
- illusions.enabled = false
- else
- illusions.enabled = not illusions.enabled
- end
- if illusions.enabled then
- cecho("<white> ---- <green> [ Illusioning Table ON ]<white> ----")
- else
- cecho("<white> ---- <firebrick> [ Illusioning Table OFF ] <white> ----")
- end
- -----
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement