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.
 Entire forum ➜ MUSHclient ➜ General ➜ Making a trigger send room name to someone

Making a trigger send room name to someone

Posting of new messages is disabled at present.

Refresh page


Posted by Xandler   (52 posts)  Bio
Date Thu 06 Jan 2022 04:04 AM (UTC)
Message
I'm basically looking to make a "where at" trigger if you will. What it will basically do is read the room name of whatever room you are currently in the send it to a specific channel or specific person. I've had this set up on prior computers (long story short, my laptop that had it died and it was lost). I just don't know how to set this up any longer and any help would be nicely appreciated.

The room is structured as follows:

Arena Outer Edge
Gravity: Normal
Minor combat takes little place in the outer parts of the massive arena.
Stone and metal bleachers sit on different tiers around the arena to allow
hundreds of spectators to sit comfortably while watching tournament. The arena
floor is covered in blood and filled with cracks from previous fights.
* (N) * (U)
(W) + (E) -
* (S) * (D)

The top line is the room name (Arena Outer Edge). I believe I had a few variables for this to set up to call it (A Line_in that called the gravity) and a whereat (that called the room name). That is unfortunately all I remember, and looking for help to set this up again.

Thanks
Top

Posted by Fiendish   USA  (2,533 posts)  Bio   Global Moderator
Date Reply #1 on Thu 06 Jan 2022 05:37 AM (UTC)

Amended on Thu 06 Jan 2022 05:39 AM (UTC) by Fiendish

Message
If the room name is always followed by a gravity line, I would probably make a trigger that fires on the gravity line that grabs the previous line (the room name) and puts it into a variable using something like
SetVariable("room_name", GetLineInfo(GetLinesInBufferCount() - 1, 1))


Then an alias could
GetVariable("room_name")

and send it to your friend.

https://www.mushclient.com/scripts/doc.php?function=GetLineInfo
https://www.mushclient.com/scripts/doc.php?function=GetLinesInBufferCount

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Xandler   (52 posts)  Bio
Date Reply #2 on Thu 06 Jan 2022 03:57 PM (UTC)
Message
Got it to work, thanks for the help!
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.


8,126 views.

Posting of new messages is disabled at present.

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.