[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]  General
. . -> [Subject]  Chaining trigger output
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Chaining trigger output

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


Posted by Blakat   (5 posts)  [Biography] bio
Date Sat 27 Aug 2016 05:32 PM (UTC)
Message
I'm trying to setup a trigger that doesn't multiple outputs at the same time.

So...


INPUT
*Picks up a wooden sword*

OUTPUT
mercy on (in game command)& retaliate none (in game command)

But I don't know what character would represent & for it to work.
[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 27 Aug 2016 09:34 PM (UTC)
Message
Can you show what you tried?

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.



Quote:

But I don't know what character would represent & for it to work.


I don't understand that. Surely the "&" character represents "&"? Can you elaborate?

- Nick Gammon

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

Posted by Blakat   (5 posts)  [Biography] bio
Date Reply #2 on Sat 27 Aug 2016 09:54 PM (UTC)

Amended on Sun 28 Aug 2016 04:22 AM (UTC) by Blakat

Message
Nick,

In the SEND I put:

retaliate none&retaliate none&control body

I also tried:

retaliate none,retaliate none,control body

So I'm trying to get a trigger to put in multiple send/outputs and I don't know what symbol represents & so that I can do that.
[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 28 Aug 2016 03:14 AM (UTC)
Message
If you want those commands sent on separate lines, just put them on separate lines, eg.


retaliate none
retaliate none
control body


I still don't really understand the question.

- Nick Gammon

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

Posted by Blakat   (5 posts)  [Biography] bio
Date Reply #4 on Sun 28 Aug 2016 04:23 AM (UTC)
Message
Nick Gammon said:

If you want those commands sent on separate lines, just put them on separate lines, eg.


retaliate none
retaliate none
control body


I still don\'t really understand the question.


I'm trying to setup triggers that output/send multiple commands.
[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Sun 28 Aug 2016 04:34 AM (UTC)
Message
What was wrong with my suggestion then?

- Nick Gammon

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

Posted by Blakat   (5 posts)  [Biography] bio
Date Reply #6 on Sun 28 Aug 2016 06:26 PM (UTC)
Message
I'm confused, what was your suggestion?

When I have the trigger output/send set as:

command&command&command

It doesn't work. How do I set a trigger that outputs multiple sends on a trigger?

If I set up 3 different triggers it doesn't work either, it only does one of them.

Example:

TRIGGER 1: A stick is dropped.

AUTO SEND: Pick up stick.

TRIGGER 2: A stick is dropped.

AUTO SEND: Smile

TRIGGER 3: A stick is dropped.

AUTO SEND: Laugh

-- I want to pick up a stick, smile and laugh in the game when a stick is dropped. I'm trying to make 1 trigger, output several different send commands. How do I do that?
[Go to top] top

Posted by Nick Gammon   Australia  (21,674 posts)  [Biography] bio   Forum Administrator
Date Reply #7 on Sun 28 Aug 2016 08:38 PM (UTC)
Message
Blakat said:

I'm confused, what was your suggestion?


The trigger "send" box can hold multiple lines of text. What is stopping you putting multiple commands in it? One per line?

- Nick Gammon

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

Posted by Blakat   (5 posts)  [Biography] bio
Date Reply #8 on Sun 28 Aug 2016 08:52 PM (UTC)
Message
That's it!

I can do multiple commands on one trigger by just putting each command on a new line! HAZZA! Thanks!
[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.


3,492 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]