[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  Multiline Triggers
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Multiline Triggers

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Meraki   (7 posts)  [Biography] bio
Date Mon 26 May 2014 03:34 PM (UTC)
Message
I've searched for quite some time but I can't really find anything on matching a trigger to more than one line.

Here is what I'm trying to do:

I'm using a trigger to track the quest item I'm looking for so I don't have to check all the time what I'm looking for. The problem is when anyone in the room asks for a quest it will set the variable to what they're looking for instead. My solution to this is to make a multi-line trigger to make a condition to set the variable only when my name is spoken.

If there is an alternative to this I'm also open to it.

Thanks in advance!
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Mon 26 May 2014 08:59 PM (UTC)
Message
Can you post your current solution?

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.


Also post some example output from the MUD. For example, when you get the quest, and an example of someone else getting a quest.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Meraki   (7 posts)  [Biography] bio
Date Reply #2 on Wed 28 May 2014 09:32 PM (UTC)
Message
I've actually found a solution to what I'm doing different to what I already intended. I can get the info for my quest that comes in the example:

You are on a quest to recover the fabled King's sceptre!
Look in the general vicinity of Gahboom Hill for An Uneven, Hot Corridor!


This is information only given to me which completely eliminates the need for a multi-line trigger since I can just get the information I need from this. Thank you though!
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


2,325 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]