Pretty Print Angel Presences!

Game: 
Achaea
Client Type: 
Mudlet
Script File: 

Hi! This set of triggers rewrites the spammy angel presences output into a nicely formatted table. For example this:

You bid your guardian angel to seek out life presences nearby.

Your guardian angel senses Aedin at The Targossian barracks, on a health of 3740 and a mana of 3220.

Your guardian angel senses Havyn at The Targossian barracks, on a health of 6744 and a mana of 4990.

Your guardian angel senses Ada at Sanctuary of the Lightbringer, on a health of 3740 and a mana of 4442.

Your guardian angel senses Teslyn at Before the temple to Deucalion, on a health of 1404 and a mana of 1260.

Your guardian angel senses Carmell at The Temple of Righteous Fire, on a health of 4600 and a mana of 4300.

Your guardian angel senses Greys at Before the temple to Deucalion, on a health of 6636 and a mana of 6339.

 

is rewritten as:

 

--------------------------------------------------------------------------------
Name           Health    Mana      Place                              RoomID   
--------------------------------------------------------------------------------
Teslyn         1404      1260      Before the temple to Deucalion     40271
Greys          6636      6339      Before the temple to Deucalion     40271
Ada            3740      4442      Sanctuary of the Lightbringer      40379
Aedin          3740      3220      The Targossian barracks            40392
Havyn          6744      4990      The Targossian barracks            40392
Carmell        4600      4300      The Temple of Righteous Fire       40401
--------------------------------------------------------------------------------

Enjoy!

 

Oh, here's an experimental build that uses namedb for colouring. I'm not sure if it works (don't have svo/namedb), give it a try! Clickey: http://db.tt/fgoqE46y

9.33333
Your rating: None Average: 9.3 (3 votes)

Comments

Lovely!

Tip

You can use return isPrompt() in Mudlet, as a Lua function pattern type, to get a reliable prompt trigger.

Didn't know about that :o Thanks for the tip! I updated the package to use return isPrompt() ^_^

:O I told you that like four or five times... :( Never listens

Never change

Oh look I'm on the list!

Very nice. Unfortunately the locations always seem to push the room IDs down a line, and even then some of the longer ones are cut off. The NDB version also doesn't seem to be working with SVO's namedb.