Advertisement
Guest User

Untitled

a guest
Aug 19th, 2013
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.68 KB | None | 0 0
  1. Aliases:
  2.  
  3. ^vibe (\w+)$
  4. embed(matches[2])
  5.  
  6. ^vibeup (\w+)$
  7. vibe_def = true
  8. vibe_set(matches[2])
  9.  
  10. ^vibepause$
  11. vibepause()
  12.  
  13. ^vibecycle$
  14. --you shouldn't have to use this unless the automatic vibration embedding hangs.
  15. cycle_vibeSet()
  16.  
  17.  
  18.  
  19. Trigger:
  20. You have recovered equilibrium. (exact match)
  21. You have recovered balance on all limbs. (exact match)
  22. if vibe_def == true then
  23. cycle_vibeSet()
  24. end
  25.  
  26.  
  27. Script:
  28.  
  29. --Special permissions is just a way for the script to differentiate when it has
  30. --to target or when there are other commands like sonicportal or cataclysm. It
  31. --is best if you don't play with these as it could break the script. Do feel
  32. --free and change the auto-vibe tables between true and false as you wish.
  33. --by default, "full" vibes includes every non-targetable vibe and excludes
  34. --cataclysm.
  35.  
  36.  
  37. crystalism_table = {
  38. ["reverberation"] = { --name of vibe// as a side note, reverberation
  39. ["vibe_set"] = { --auto-vibe table// is added to the defup table
  40. ["combat"] = false, --combat vibes// by default. So there is no
  41. ["basic"] = false, --basic vibes// reason to change these values.
  42. ["full"] = false, --full vibes
  43. },
  44. ["effect"] = "Protects vibes", --text to be displayed
  45. ["crystals"] = {"disc","pentagon",}, --crystals required
  46. ["targeted"] = false, --special permissions
  47. }, --end reverberation
  48. ["dissipate"] = {
  49. ["vibe_set"] = {
  50. ["combat"] = true,
  51. ["basic"] = true,
  52. ["full"] = true,
  53. },
  54. ["effect"] = "Drains mana",
  55. ["crystals"] = {"pentagon",},
  56. ["targeted"] = false,
  57. },
  58. ["palpitation"] = {
  59. ["vibe_set"] = {
  60. ["combat"] = true,
  61. ["basic"] = true,
  62. ["full"] = true,
  63. },
  64. ["effect"] = "Drains health",
  65. ["crystals"] = {"cylinder",},
  66. ["targeted"] = false,
  67. },
  68. ["heat"] ={
  69. ["vibe_set"] = {
  70. ["combat"] = false,
  71. ["basic"] = false,
  72. ["full"] = false,
  73. },
  74. ["effect"] = "Heats room",
  75. ["crystals"] = {"pyramid",},
  76. ["targeted"] = false,
  77. },
  78. ["alarm"] = {
  79. ["vibe_set"] = {
  80. ["combat"] = true,
  81. ["basic"] = false,
  82. ["full"] = true,
  83. },
  84. ["effect"] = "Alert enemy entrance",
  85. ["crystals"] = {"spiral",},
  86. ["targeted"] = false,
  87. },
  88. ["tremors"] = {
  89. ["vibe_set"] = {
  90. ["combat"] = true,
  91. ["basic"] = true,
  92. ["full"] = true,
  93. },
  94. ["effect"] = "Prones if no levitation",
  95. ["crystals"] = {"egg","disc"},
  96. ["targeted"] = false,
  97. },
  98. ["sonicportal"] = {
  99. ["vibe_set"] = {
  100. ["combat"] = false,
  101. ["basic"] = false,
  102. ["full"] = false,
  103. },
  104. ["effect"] = "Opens a portal",
  105. ["crystals"] = {"sphere","torus"},
  106. ["targeted"] = true,
  107. },
  108. ["harmony"] = {
  109. ["vibe_set"] = {
  110. ["combat"] = true,
  111. ["basic"] = true,
  112. ["full"] = true,
  113. },
  114. ["effect"] = "Heals you (only)",
  115. ["crystals"] = {"egg","sphere"},
  116. ["targeted"] = false,
  117. },
  118. ["creeps"] = {
  119. ["vibe_set"] = {
  120. ["combat"] = false,
  121. ["basic"] = false,
  122. ["full"] = false,
  123. },
  124. ["effect"] = "Causes shyness/fear",
  125. ["crystals"] = {"torus"},
  126. ["targeted"] = false,
  127. },
  128. ["silence"] = {
  129. ["vibe_set"] = {
  130. ["combat"] = false,
  131. ["basic"] = false,
  132. ["full"] = false,
  133. },
  134. ["effect"] = "Communication is halted",
  135. ["crystals"] = {"egg"},
  136. ["targeted"] = false,
  137. },
  138. ["revelation"] = {
  139. ["vibe_set"] = {
  140. ["combat"] = false,
  141. ["basic"] = false,
  142. ["full"] = false,
  143. },
  144. ["effect"] = "Reveals hidden people",
  145. ["crystals"] = {"cube","diamond"},
  146. ["targeted"] = false,
  147. },
  148. ["grounding"] = {
  149. ["vibe_set"] = {
  150. ["combat"] = false,
  151. ["basic"] = false,
  152. ["full"] = false,
  153. },
  154. ["effect"] = "Roots you to ground",
  155. ["crystals"] = {"sphere"},
  156. ["targeted"] = false,
  157. },
  158. ["oscillate"] = {
  159. ["vibe_set"] = {
  160. ["combat"] = true,
  161. ["basic"] = true,
  162. ["full"] = true,
  163. },
  164. ["effect"] = "Causes amnesia",
  165. ["crystals"] = {"diamond"},
  166. ["targeted"] = false,
  167. },
  168. ["focus"] = {
  169. ["vibe_set"] = {
  170. ["combat"] = false,
  171. ["basic"] = false,
  172. ["full"] = false,
  173. },
  174. ["effect"] = "Summons vibes (minus reverb)",
  175. ["crystals"] = {"pyramid"},
  176. ["targeted"] = true,
  177. },
  178. ["disorientation"] = {
  179. ["vibe_set"] = {
  180. ["combat"] = true,
  181. ["basic"] = true,
  182. ["full"] = true,
  183. },
  184. ["effect"] = "Causes dizziness",
  185. ["crystals"] = {"spiral"},
  186. ["targeted"] = false,
  187. },
  188. ["energise"] = {
  189. ["vibe_set"] = {
  190. ["combat"] = true,
  191. ["basic"] = true,
  192. ["full"] = true,
  193. },
  194. ["effect"] = "Drains health (absorbable)",
  195. ["crystals"] = {"polyhedron"},
  196. ["targeted"] = false,
  197. },
  198. ["stridulation"] = {
  199. ["vibe_set"] = {
  200. ["combat"] = true,
  201. ["basic"] = true,
  202. ["full"] = true,
  203. },
  204. ["effect"] = "Distrupt if undeaf",
  205. ["crystals"] = {"cylinder","polyhedron"},
  206. ["targeted"] = false,
  207. },
  208. ["gravity"] = {
  209. ["vibe_set"] = {
  210. ["combat"] = false,
  211. ["basic"] = false,
  212. ["full"] = false,
  213. },
  214. ["effect"] = "Pulls flyers",
  215. ["crystals"] = {"egg","torus"},
  216. ["targeted"] = false,
  217. },
  218. ["forest"] = {
  219. ["vibe_set"] = {
  220. ["combat"] = true,
  221. ["basic"] = false,
  222. ["full"] = true,
  223. },
  224. ["effect"] = "Hurts if fall",
  225. ["crystals"] = {"diamond","pyramid"},
  226. ["targeted"] = false,
  227. },
  228. ["dissonance"] = {
  229. ["vibe_set"] = {
  230. ["combat"] = true,
  231. ["basic"] = true,
  232. ["full"] = true,
  233. },
  234. ["effect"] = "Strips defences",
  235. ["crystals"] = {"cylinder","sphere","spiral"},
  236. ["targeted"] = false,
  237. },
  238. ["plague"] = {
  239. ["vibe_set"] = {
  240. ["combat"] = false,
  241. ["basic"] = false,
  242. ["full"] = false,
  243. },
  244. ["effect"] = "Random afflictions",
  245. ["crystals"] = {"cube","pyramid","spiral"},
  246. ["targeted"] = false,
  247. },
  248. ["lullaby"] = {
  249. ["vibe_set"] = {
  250. ["combat"] = true,
  251. ["basic"] = true,
  252. ["full"] = true,
  253. },
  254. ["effect"] = "Sleep",
  255. ["crystals"] = {"pyramid"},
  256. ["targeted"] = false,
  257. },
  258. ["retardation"] = {
  259. ["vibe_set"] = {
  260. ["combat"] = false,
  261. ["basic"] = false,
  262. ["full"] = false,
  263. },
  264. ["effect"] = "Roomwide aeon",
  265. ["crystals"] = {"disc"},
  266. ["targeted"] = false,
  267. },
  268. ["cataclysm"] = {
  269. ["vibe_set"] = {
  270. ["combat"] = false,
  271. ["basic"] = false,
  272. ["full"] = false,
  273. },
  274. ["effect"] = "Prones if no levitation",
  275. ["crystals"] = {"egg","disc"},
  276. ["targeted"] = true,
  277. },
  278. }
  279.  
  280. local embed_table = {}
  281.  
  282. function vibepause()
  283. if embed_table[1] then
  284. if vibe_def == false then
  285. vibe_def = true
  286. cecho("\n<white>Vibing resumed.")
  287. cycle_vibeSet()
  288. else
  289. vibe_def = false
  290. cecho("\n<white>Vibing paused.")
  291. end
  292. else
  293. cecho("\n<white>Not embedding vibrations, no need to pause.")
  294. end
  295. end
  296.  
  297. function embed(vibe)
  298. for k,v in ipairs(crystalism_table[vibe].crystals) do
  299. send("outr "..v)
  300. send("spin "..v)
  301. end
  302. if not crystalism_table[vibe].targeted then
  303. send("embed "..vibe)
  304. end
  305. end
  306.  
  307. function vibe_set(set)
  308. if set == "basic" or set == "full" or set == "combat" then
  309. embed_table = {}
  310. local i = set:lower()
  311. table.insert(embed_table,"reverberation")
  312. for k,v in pairs(crystalism_table) do
  313. if v.vibe_set[i] == true then
  314. table.insert(embed_table,k)
  315. end
  316. end
  317. vibe_def = true
  318. cycle_vibeSet()
  319. else
  320. cecho("\n<white:firebrick>Invalid vibe set. Please use combat, basic, or full.")
  321. end
  322. end
  323.  
  324. function cycle_vibeSet()
  325. embed(embed_table[1])
  326. table.remove(embed_table,1)
  327. if not embed_table[1] then
  328. vibe_def = false
  329. end
  330. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement