Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

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.

Возвращает название канала глобального чата, в котором сейчас находится персонаж.

Возвращает пустую строку, если персонаж не находится ни в одном чат-канале.

Pascal

function GlobalChatActiveChannel: String;

Python

def GlobalChatActiveChannel() -> str: ...

Pascal Example

var
  Ch: String;
begin
  Ch := GlobalChatActiveChannel;
  if Ch <> '' then
    AddToSystemJournal('Active chat channel: ' + Ch)
  else
    AddToSystemJournal('Not in any chat channel');
end.

Python Example

ch = GlobalChatActiveChannel()
if ch:
    AddToSystemJournal(f'Active chat channel: {ch}')
else:
    AddToSystemJournal('Not in any chat channel')

See Also

GlobalChatChannelsList, GlobalChatJoinChannel, GlobalChatLeaveChannel, GlobalChatSendMsg