Enemy Highlighter

From Mudlet
Jump to navigation Jump to search

Package Info

By: ThePhoenix

For(MUD): Achaea

Size: 4kb

Website: http://dl.dropbox.com/u/22569276/EnemyHighlighter.zip

Version: 2.0 (faster and better)

Contents: EnemyHighlighter.xml

Summary/Description: This system has one alias, which will allow you to colour the enemies for any Achaean organisation. Simply use 'enhi <enemy checking command>' to check them. For example, to highlight the enemies of your city, you would do 'enhi city enemies'.

The code is fully commented, allowing you to easily make enemies for different orgs show up different colours. Pretty much the only place you'd need to edit in the code would be between lines 5 and 9 in EnemyList trigger, adding orgs or changing the default easily, based on the templates.

This highlighter now uses substring triggers instead of regex triggers, and the colorAll has been modified to be precise and fast. No more highlighting the wrong person! On my computer, 814 different enemies in one line get highlighted in 0.35 seconds. Doubling up, so it's highlighting 1628 words (two of each name on the line), took it 0.68 seconds.


Related Packages: None.

Other Packages made by this Package Author: