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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Making a trigger send room name to someone

Making a trigger send room name to someone

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


Posted by Xandler   (52 posts)  [Biography] 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
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] 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
[Go to top] top

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


7,167 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 HostDash]