Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ Multiline Triggers

Multiline Triggers

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


Posted by Meraki   (7 posts)  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!
Top

Posted by Nick Gammon   Australia  (23,173 posts)  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
Top

Posted by Meraki   (7 posts)  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!
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.


13,872 views.

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

Go to topic:           Search the forum


[Go to top] top

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