Sending commands to another char

Post Reply
Posts: 1
Joined: Thu Sep 03, 2020 2:08 am

Sending commands to another char

Post 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!

User avatar
Posts: 1007
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Sending commands to another char

Post 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...

Post Reply