Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.64 KB | None | 0 0
  1. TRIGGERS:
  2.  
  3. DEMESNE GROUP
  4.     myRunes = {}
  5. -------------------------
  6. |CLEARER
  7. |   ^Your demesne is (\d+) rooms in size and is centered at
  8. |  
  9. |   clearWindow("dm_eff")
  10. |   if dBool == false then
  11. |   dBool = true
  12. |   end
  13. |------------------------
  14. |DEMESNE SURVEY PLANE
  15. |
  16. |   ^You are in the (\w+) (\w+) Plane\.$
  17. |
  18. |   if sBool == true then
  19. |   sPlane = matches[2]
  20. |   end
  21. |   sBool = false
  22. |------------------------
  23. |DEMESNE SURVEY AREA
  24. |
  25. |   ^You are standing in the (\w+) (\w+)\.$
  26. |
  27. |   if sBool == true then
  28. |   sArea = matches[2]
  29. |   end
  30. |------------------------
  31. |DEMESNE WATCH SURVEY
  32. |
  33. |   ^You begin watching who enters and leaves your demesne\.$
  34. |
  35. |   sBool = true
  36. |   send("survey")
  37. |------------------------
  38. |DEMESNE SURVEY RUNES
  39. |
  40. |   (\w+) rune$
  41. |
  42. |   for _, y in ipairs(myRunes) do
  43. |   if y == matches[2] then
  44. |       rBool = true  
  45. |   end
  46. |   end
  47. |   if rBool == false then
  48. |   table.insert(myRunes, matches[2])
  49. |   end
  50. |   rBool = false
  51. |------------------------
  52. |DEMESNE DISSOLVE
  53. |   ^You focus your will upon your demesne and allow for its release\.$
  54. |
  55. |   dmPeople = {}
  56. |   myRunes = {}
  57. |------------------------
  58. |TOP LINE CATCHER
  59. |   ^(Effect) \s+  (Time Left  )$
  60. |
  61. |   clearWindow("dm_eff")
  62. |   echo("dm_eff", "" .. matches[2] .. "          "   .. matches[3] .. "\n" )
  63. |   deleteLine()
  64. |   for _, y in ipairs(myRunes) do        
  65. |   echo("dm_eff", "" .. y .. "\n" )
  66. |   end
  67. |--------------------------
  68. |DEMESNE EFFECT WINDOW
  69. |   ^(\w+) \s+ (\d+)$
  70. |
  71. |   if dBool == true then
  72. |   echo("dm_eff", "" .. matches[2] .. "           "   .. matches[3] .. "\n" )
  73. |   deleteLine()
  74. |   end
  75. |--------------------------
  76. |BOTTOM LINE CATCHER
  77. |   \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
  78. |
  79. |   if dBool == true then
  80. |   dBool = false
  81. |   end
  82. |--------------------------
  83. ||PEOPLE
  84. ||  dmPeople = {}
  85. ||--------------------------
  86. ||PEOPLE ENTER
  87. ||  ^(\w+) enters your demesne\.$
  88. ||
  89. ||  for _, y in ipairs(dmPeople) do
  90. ||  if y == matches[2] then
  91. ||      dpBool = true
  92. ||  end
  93. ||  end
  94. ||  if dpBool == false then
  95. ||  table.insert(dmPeople, matches[2])
  96. ||  end
  97. ||  dpBool = false
  98. ||---------------------------
  99. ||PEOPLE LEAVE
  100. ||  ^(\w+) leaves your demesne\.$
  101. ||
  102. ||  for x, y in ipairs(dmPeople) do
  103. ||  if y == matches[2] then
  104. ||      table.remove(dmPeople, x)
  105. ||  end
  106. ||  end
  107. ||-----------------------
  108. |-------------------------
  109. -------------------------
  110.  
  111. TIMERS:
  112.  
  113. DEMESNE TIMERS
  114. -------------------------
  115. |PEOPLE TIMER
  116. |   0:0:5.0
  117. |   clearWindow("ppl_dm")
  118. |   for _, y in ipairs(dmPeople) do        
  119. |   echo("ppl_dm", "   " .. y .. "\n" )
  120. |   end
  121. |-------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement