Table help

Posted by Lotness on Sun 08 Apr 2012 12:32 PM — 3 posts, 12,408 views.

Australia #0
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-
Australia Forum Administrator #1
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.
Australia #2
Yes! that sounds precisely like the right thing. I'll try find it in the forum :D

Thanks for getting back to me!