`echo test triggers from input line alias

Post Reply
User avatar
Vadi
Posts: 4833
Joined: Sat Mar 14, 2009 3:13 pm

`echo test triggers from input line alias

Post by Vadi »

This allows for testing triggers from the command line.

Usage:

`echo line

$ marks the newline, so:

`echo line1$line2

Will produce:

line1
line2


Note: this script is included by default with Mudlet now, you can use it as-is!

ala mudbot style.
Attachments
`echo.xml
(488 Bytes) Downloaded 1223 times

Seinchin
Posts: 9
Joined: Thu Jun 10, 2010 6:10 am

Re: `echo test triggers from input line alias

Post by Seinchin »

This is a great little script, I have used it alot already to test my triggers

Lyev
Posts: 6
Joined: Mon Feb 20, 2012 6:38 am

Re: `echo test triggers from input line alias

Post by Lyev »

This is really great. Nice work. :)

User avatar
Gilmo
Posts: 25
Joined: Fri Feb 11, 2011 11:43 am

Re: `echo test triggers from input line alias

Post by Gilmo »

Lyev wrote:This is really great. Nice work. :)
I think you can use feedTriggers() now.
feedTriggers( text )
This function will have Mudlet parse the given text as if it came from the MUD - one great application is trigger testing. You can use \n to represent a new line - you also want to use it before and after the text you’re testing. The function also accept ANSI color codes that are used in MUDs.

User avatar
Vadi
Posts: 4833
Joined: Sat Mar 14, 2009 3:13 pm

Re: `echo test triggers from input line alias

Post by Vadi »

This alias does use it. It's a wrapper to make that function easy to use.

User avatar
Gilmo
Posts: 25
Joined: Fri Feb 11, 2011 11:43 am

Re: `echo test triggers from input line alias

Post by Gilmo »

Ahh.. The old data of the post confused me! Helpful indeed.

User avatar
Vadi
Posts: 4833
Joined: Sat Mar 14, 2009 3:13 pm

Re: `echo test triggers from input line alias

Post by Vadi »

Unstickied as it's been part of Mudlet for a long while now. Just use it and go!

User avatar
SlySven
Posts: 960
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: `echo test triggers from input line alias

Post by SlySven »

No it hasn't - it is still stickyed :-(

Post Reply