Basic Comms User Window

Basic Comms User Window

Postby DarkArtist » Fri Oct 17, 2014 1:32 am

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.
DarkArtist
Double 40 Poster
 
Posts: 112
Joined: Tue Dec 10, 2013 6:18 pm
Status: Offline

Return to Mudlet - unlimited possibilities

Who is online

Users browsing this forum: No registered users and 2 guests

cron