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

CharName

Returns the name of the current character.

Returns an empty string if the character is not connected to the UO server.

Возвращает имя текущего персонажа.

Возвращает пустую строку, если персонаж не подключён к серверу UO.

Pascal

function CharName: String;

Python

def CharName() -> str: ...

Pascal Example

begin
  if CharName = 'MyChar' then
    AddToSystemJournal('Playing as MyChar')
  else
    AddToSystemJournal('Current char: ' + CharName);
end.

Python Example

AddToSystemJournal(f'Current char: {CharName()}')

See Also

CharTitle, Self