GlobalChatActiveChannel
Returns the name of the global chat channel the character is currently in.
Returns an empty string if the character is not in any chat channel.
Возвращает название канала глобального чата, в котором сейчас находится персонаж.
Возвращает пустую строку, если персонаж не находится ни в одном чат-канале.
function GlobalChatActiveChannel: String;
def GlobalChatActiveChannel() -> str: ...
var
Ch: String;
begin
Ch := GlobalChatActiveChannel;
if Ch <> '' then
AddToSystemJournal('Active chat channel: ' + Ch)
else
AddToSystemJournal('Not in any chat channel');
end.
ch = GlobalChatActiveChannel()
if ch:
AddToSystemJournal(f'Active chat channel: {ch}')
else:
AddToSystemJournal('Not in any chat channel')
GlobalChatChannelsList, GlobalChatJoinChannel, GlobalChatLeaveChannel, GlobalChatSendMsg