Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This is my trigger
- <trigger
- enabled="y"
- match="[Exits: * ]"
- keep_evaluating="y"
- send_to="12"
- sequence="100"
- >
- <send>local subTable = { S = "south", W = "west", E = "east", U = "up", D = "down", SW = "sw", NW = "nw", NE = "ne", SE = "se", N = "north" }
- local result = "%1"
- for word in string.gmatch(result, "%w+") do
- if subTable[word] then
- result = result:gsub(word, subTable[word])
- end
- end
- Simulate("\\n[Exits2: " .. result .. " ]\\n")</send>
- </trigger>
- and these are the readouts...
- [Exits: S W SE ]
- [Exits2: south west southE ]
- [Exits: E SE ]
- [Exits2: east Seast ]
- They're reading out oddly (Seast instead of se, and southE instead of se, and it seems to depend on if there are also other strings in the exits line as well)
- Any idea on how to prevent this? Maybe by using quotes on both?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement