Gold
Returns the character’s current gold amount (as displayed in the status window).
Returns 0 if the character is not connected.
Возвращает текущее количество золота персонажа (как отображается в окне статуса).
Возвращает 0, если персонаж не подключён.
function Gold: Cardinal;
def Gold() -> int: ...
begin
AddToSystemJournal('Gold: ' + IntToStr(Gold));
if Gold < 1000 then
AddToSystemJournal('Warning: low gold!');
end.
AddToSystemJournal(f'Gold: {Gold()}')
if Gold() < 1000:
AddToSystemJournal('Warning: low gold!')