GetTitle
Returns the title (suffix) of the object or mobile with the given ObjID.
For NPCs and players, the title is typically the profession or guild tag displayed after the name (e.g., “the blacksmith”, “the mage”).
ObjID — ID of the object or mobile.
Returns an empty string if the object does not exist or the character is disconnected.
Возвращает титул (суффикс) объекта или мобила с указанным ObjID.
Для NPC и игроков титул — это профессия или тег гильдии, отображаемые после имени (например, «the blacksmith», «the mage»).
ObjID — ID объекта или мобила.
Возвращает пустую строку, если объект не существует или персонаж не подключён.
function GetTitle(ObjID: Cardinal): String;
def GetTitle(ObjID: int) -> str: ...
begin
AddToSystemJournal('Name: ' + GetName(Self) + ', Title: ' + GetTitle(Self));
end.
AddToSystemJournal(f'Name: {GetName(Self())}, Title: {GetTitle(Self())}')