Difference between revisions of "Enemy Highlighter"

From Mudlet
Jump to navigation Jump to search
Line 23: Line 23:
 
Other Packages made by this Package Author:
 
Other Packages made by this Package Author:
 
* [[RiftTracker| Rift Tracker 2.1]]
 
* [[RiftTracker| Rift Tracker 2.1]]
 +
 +
==Benchmarks==
 +
These benchmarks are done while running this highlighter in conjunction [http://svo.vadisystems.com svo]. In other words... alone, it'd probably be faster still.<br><br>
 +
814 enemies to search for, 1628 enemies on the line, 814 enemies (two highlights per name) - 0.6 seconds<br>
 +
814 enemies to search for, 5000 words on the line, 20 enemies on the line - 0.1 second<br>
 +
814 enemies to search for, 5000 words on the line, 1 enemies name, - 0.010 seconds
  
 
[[Category:Mudlet Package Listing]]
 
[[Category:Mudlet Package Listing]]

Revision as of 11:00, 27 July 2011

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:

Benchmarks

These benchmarks are done while running this highlighter in conjunction svo. In other words... alone, it'd probably be faster still.

814 enemies to search for, 1628 enemies on the line, 814 enemies (two highlights per name) - 0.6 seconds
814 enemies to search for, 5000 words on the line, 20 enemies on the line - 0.1 second
814 enemies to search for, 5000 words on the line, 1 enemies name, - 0.010 seconds