`echo test triggers from input line alias

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

`echo test triggers from input line alias

Post by Vadi » Wed Jun 02, 2010 12:39 pm

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 803 times

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

Re: `echo test triggers from input line alias

Post by Seinchin » Thu Jun 10, 2010 6:12 am

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 » Mon Feb 20, 2012 6:45 am

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 » Tue Feb 21, 2012 9:01 am

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: 4342
Joined: Sat Mar 14, 2009 3:13 pm

Re: `echo test triggers from input line alias

Post by Vadi » Tue Feb 21, 2012 9:22 am

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 » Tue Feb 21, 2012 11:21 am

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

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

Re: `echo test triggers from input line alias

Post by Vadi » Fri Jul 28, 2017 8:05 am

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

User avatar
SlySven
Posts: 751
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK

Re: `echo test triggers from input line alias

Post by SlySven » Fri Jul 28, 2017 9:08 pm

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

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest