Making a trigger send room name to someone

Posted by Xandler on Thu 06 Jan 2022 04:04 AM — 3 posts, 13,469 views.

#0
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
USA Global Moderator #1
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
Amended on Thu 06 Jan 2022 05:39 AM by Fiendish
#2
Got it to work, thanks for the help!