Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TRIGGERS:
- DEMESNE GROUP
- myRunes = {}
- -------------------------
- |CLEARER
- | ^Your demesne is (\d+) rooms in size and is centered at
- |
- | clearWindow("dm_eff")
- | if dBool == false then
- | dBool = true
- | end
- |------------------------
- |DEMESNE SURVEY PLANE
- |
- | ^You are in the (\w+) (\w+) Plane\.$
- |
- | if sBool == true then
- | sPlane = matches[2]
- | end
- | sBool = false
- |------------------------
- |DEMESNE SURVEY AREA
- |
- | ^You are standing in the (\w+) (\w+)\.$
- |
- | if sBool == true then
- | sArea = matches[2]
- | end
- |------------------------
- |DEMESNE WATCH SURVEY
- |
- | ^You begin watching who enters and leaves your demesne\.$
- |
- | sBool = true
- | send("survey")
- |------------------------
- |DEMESNE SURVEY RUNES
- |
- | (\w+) rune$
- |
- | for _, y in ipairs(myRunes) do
- | if y == matches[2] then
- | rBool = true
- | end
- | end
- | if rBool == false then
- | table.insert(myRunes, matches[2])
- | end
- | rBool = false
- |------------------------
- |DEMESNE DISSOLVE
- | ^You focus your will upon your demesne and allow for its release\.$
- |
- | dmPeople = {}
- | myRunes = {}
- |------------------------
- |TOP LINE CATCHER
- | ^(Effect) \s+ (Time Left )$
- |
- | clearWindow("dm_eff")
- | echo("dm_eff", "" .. matches[2] .. " " .. matches[3] .. "\n" )
- | deleteLine()
- | for _, y in ipairs(myRunes) do
- | echo("dm_eff", "" .. y .. "\n" )
- | end
- |--------------------------
- |DEMESNE EFFECT WINDOW
- | ^(\w+) \s+ (\d+)$
- |
- | if dBool == true then
- | echo("dm_eff", "" .. matches[2] .. " " .. matches[3] .. "\n" )
- | deleteLine()
- | end
- |--------------------------
- |BOTTOM LINE CATCHER
- | \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
- |
- | if dBool == true then
- | dBool = false
- | end
- |--------------------------
- ||PEOPLE
- || dmPeople = {}
- ||--------------------------
- ||PEOPLE ENTER
- || ^(\w+) enters your demesne\.$
- ||
- || for _, y in ipairs(dmPeople) do
- || if y == matches[2] then
- || dpBool = true
- || end
- || end
- || if dpBool == false then
- || table.insert(dmPeople, matches[2])
- || end
- || dpBool = false
- ||---------------------------
- ||PEOPLE LEAVE
- || ^(\w+) leaves your demesne\.$
- ||
- || for x, y in ipairs(dmPeople) do
- || if y == matches[2] then
- || table.remove(dmPeople, x)
- || end
- || end
- ||-----------------------
- |-------------------------
- -------------------------
- TIMERS:
- DEMESNE TIMERS
- -------------------------
- |PEOPLE TIMER
- | 0:0:5.0
- | clearWindow("ppl_dm")
- | for _, y in ipairs(dmPeople) do
- | echo("ppl_dm", " " .. y .. "\n" )
- | end
- |-------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement