SetJournalLine
Replaces the text of a journal entry at the specified index.
StringIndex — zero-based index of the journal line to modify. Must be non-negative; negative values are silently ignored.
Text — new text for the journal entry.
This modifies the in-memory journal data only. It does not affect the server-side journal, the journal displayed in the UO client connected to Stealth, or any other external view — only the local journal buffer used by Journal, InJournal, and related methods within the script.
Does nothing if the character is not connected.
Заменяет текст записи журнала по указанному индексу.
StringIndex — индекс (с нуля) строки журнала для изменения. Должен быть неотрицательным; отрицательные значения игнорируются.
Text — новый текст записи журнала.
Изменяет данные журнала только в памяти. Не влияет на серверный журнал, журнал в UO-клиенте, подключённом к Stealth, и любое другое внешнее отображение — только на локальный буфер, используемый Journal, InJournal и связанными методами внутри скрипта.
Не выполняет действий, если персонаж не подключён.
procedure SetJournalLine(StringIndex: Integer; Text: String);
def SetJournalLine(StringIndex: int, Text: str) -> None: ...
begin
AddToSystemJournal('Line count: ' + IntToStr(LineCount));
if LineCount > 0 then
begin
SetJournalLine(0, '[MODIFIED] ' + Journal(0));
AddToSystemJournal('Modified first journal line');
end;
end.
AddToSystemJournal(f'Line count: {LineCount()}')
if LineCount() > 0:
SetJournalLine(0, f'[MODIFIED] {Journal(0)}')
AddToSystemJournal('Modified first journal line')