HighJournal
Returns the line index of the most recent (newest) journal entry.
Returns -1 if the journal is empty.
This value is typically used with SetJournalLine to set the starting point for subsequent InJournal searches, and with LowJournal to define the full range of journal entries.
Возвращает индекс строки последней (самой новой) записи журнала.
Возвращает -1, если журнал пуст.
Обычно используется с SetJournalLine для установки начальной точки поиска через InJournal, а также с LowJournal для определения полного диапазона записей журнала.
function HighJournal: Integer;
def HighJournal() -> int: ...
begin
AddToSystemJournal('Journal range: ' +
IntToStr(LowJournal) + ' .. ' + IntToStr(HighJournal));
SetJournalLine(HighJournal);
UOSay('hello');
Wait(1000);
if InJournal('hello') >= 0 then
AddToSystemJournal('Found in journal');
end.
AddToSystemJournal(f'Journal range: {LowJournal()} .. {HighJournal()}')
SetJournalLine(HighJournal())
UOSay('hello')
Wait(1000)
if InJournal('hello') >= 0:
AddToSystemJournal('Found in journal')