Page 1 of 5

Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 2:14 am
by Leshrack
Hello,

I play a multiplayer mud and would like to know whats the command or commands to be able to send orders to all windows (players) without having to lose focus of main one.

I play on Mac OSX 10.5.8

Sorry if this has been asked before but couldnt find any multiplayer question on forums.

Thanks in advance.

Re: Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 2:54 am
by Vadi
Not yet - in fact you're the first person to raise this.

Can you tell us your use case and what functionality do you exactly need?

Re: Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 4:43 am
by Leshrack
I need an special character of my choice that can be typed on the console and be captured by the client in an understanding that anything followed by that character will be executed into all active windows.
For instance i have my 3 sessions opened and i want all my chars to drink water i would type something like:
:drink water
And another character to target an specific window
;(name of window) (action to be executed only to that window)

Thats how i was able to manipulate chars on another program without having to fully configure a bot for the other remaining chars. I dont know if it can be done or else im open for suggestions.

Thanks

Re: Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 5:25 am
by Vadi
So all your scripts and aliases etc function on all 3 open profiles?

Re: Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 3:46 pm
by Heiko
I'll add 2 functions:
sendSession( regular send args ..., profileName )
echoSession( regular echo args ..., profileName )

Re: Multiplayer (Controlling multiple session)

Posted: Wed Jan 06, 2010 10:13 pm
by Leshrack
Vadi wrote:So all your scripts and aliases etc function on all 3 open profiles?
It could be easier if we were able to open more session on the same profile and just organizing triggers, alias and such by player name. But i think i read on manual that is not possible so an special character to control other profiles session would be easier to do.

Also on mac version I cant open at same time more than 1 settings window, it would help me to copy and paste triggers , etc. I have been exporting and importing triggers in the meantime.

Re: Multiplayer (Controlling multiple session)

Posted: Sat Jan 09, 2010 10:54 pm
by Alexander Divine
Once they implement sendSession() that'd be all there is to it. For a special character, just use an alias. Say you wanted to make it so anything with a slash sends commands to your other characters. Just do an alias with the matching pattern: ^\/(\s)(.*)$ And have it do sendSession(matches[2]).

Re: Multiplayer (Controlling multiple session)

Posted: Wed Dec 05, 2012 4:17 am
by hellotojoe
Did sendSession() get implemented? It would come in handy.

Re: Multiplayer (Controlling multiple session)

Posted: Wed Dec 05, 2012 9:08 pm
by Vadi
Not at the moment.

Re: Multiplayer (Controlling multiple session)

Posted: Thu Dec 06, 2012 4:10 am
by chris
I'll put a note on my repo to put this in so it's at least on one development branch. I'll throw getSessions so players can loop through them as well for an echo/send all.