Page 1 of 1

Basic Comms User Window

PostPosted: Fri Oct 17, 2014 1:32 am
by DarkArtist
For a basic comms user window:

insert into defintions:
openUserWindow("gossip")

Then make a trigger for gossip with the following regex triggers:
^(\w+) (gossips|newbies)--(.*)
^You (gossip|newbie)-- (.*)

That does the following:
if table.contains(shopKeepers,matches[2])==false then
selectString(line,1)
fg("RoyalBlue")
copy()
appendBuffer("gossip")
end

Then create a table of shopkeepers in your definitions (keeps out the spam):
shopKeepers={"Valishael","Regina","Shelda","Shayne","Mikala"}

It's very basic. Just posting upon someone's request. Hope that helps. You have to adjust the size of the user window manually. There are better ways to do it, but this is one.