[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Table help

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Table help

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Lotness   Australia  (2 posts)  [Biography] bio
Date Sun 08 Apr 2012 12:32 PM (UTC)  quote  ]
Message
Heyas there,
I play an lpmud and I have NO scripting experience in mushclient. I have managed to set up basic aliases and triggers so at least i've gotten that far.

What I'd like to do is have a table that I can add a list of mobs to that react to a certain power I have and then whenever I see that mob name have it highlighted somehow in a coloured text.

For example, say I see a cabbage, kill it and discover that I can use my power with it, then I can type in 'addmob cabbage' and it would add cabbage to the table.

Then every time I enter a room with the word cabbage (which is hopefully just the mob) then I will see it highlighted somehow (like white text on a green background or something).

If I could have an example of this it'd really help me to understand tables and how they work in mushclient.

I'd love to have a removemob command too so I can remove an entry if needed.

Sorry to be asking in here, I hope it's the right place. :D

-Lotness-

-= Lotness =-
[Go to top] top

Posted by Nick Gammon   Australia  (18,800 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 09 Apr 2012 06:51 AM (UTC)  quote  ]
Message
What you want sounds similar to a "friends list" plugin we had a while back. Basically you have a table of words you are interested in, and an alias to add/remove items from it. Then you set up a trigger to match this word and highlight it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Lotness   Australia  (2 posts)  [Biography] bio
Date Reply #2 on Mon 09 Apr 2012 07:16 AM (UTC)  quote  ]
Message
Yes! that sounds precisely like the right thing. I'll try find it in the forum :D

Thanks for getting back to me!

-= Lotness =-
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


728 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]