Page 1 of 1

Sending commands to another char

Posted: Thu Sep 03, 2020 2:11 am
by mftrnr
Hello, I know this has been discussed before but it was really old threads I came across. I am trying to be able to send commands directly to another char, without relying on "in mud" triggers like saying something and the other char responding.

Is it doable? I know the ":" that sends to all but sending to a specific char is really what Im after. Thanks!

Re: Sending commands to another char

Posted: Sat Sep 19, 2020 1:37 pm
by SlySven
You will need to incorporate the name of the profile you want to send the message/command to - and to do that you will need to develop a protocol that allows each profile to be made aware of the other profiles that are currently active. The ":" alias makes use of the raiseGlobalEvent(...) which you will probably want to use directly; you will probably need to raise such an event in handlers for the sysLoadEvent and sysExitEvent so that each profile is made aware of (and keeps a track of) the starting and ending of other profiles...