Difference between revisions of "Enemy Highlighter"
Line 27: | Line 27: | ||
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> | 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, 1628 enemies on the line, 814 enemies (two highlights per name) - 0.6 seconds<br> | ||
− | 814 enemies to search for, 106 words | + | 814 enemies to search for, 106 words on the line, 53 enemies, 2 highlights per eneemy (106 highlights)- 0.008 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, 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 | 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:18, 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.6 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, 106 words on the line, 53 enemies, 2 highlights per eneemy (106 highlights)- 0.008 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