obj { nam = 'back', act = function() return walkout() end } local markers = { chos = "626,666", abandoned = "264,213", exit_west = "373,540", pavels = "168,609", houseclosed = "348,692", exit_north = "448,157", intersection = "555,550", town = "543,462", factory = "703,310", cathedral = "703,310" } room { nam = 'map', disp = "Карта", hideinv = true, enter = function (here, from) char.lastroom = from.nam end, pic = function() local map = 'images/satellite.jpg' if markers[char.lastroom] then map = map .. ';images/marker.png@' .. markers[char.lastroom] end return map end, decor = [[ Вы сверяетесь с картой.^^ {back|Назад} ]], obj = {'back'} } dlg { nam = 'quests', disp = "Квесты", hideinv = true, decor = [[ Вы вспоминаете обо всём, что нужно сделать.^^ ]], obj = {{ { true, cond = function() return char.act == nil end, 'Нет активных квестов', 'Пройдите чуть подальше по сюжету и возвращайтесь.' }, { true, cond = function() return char.act == 1 and char.kathy == true end, 'Найти дом Павла', 'Вы должны найти дом Павла при помощи своего проводника и попросить у него доступ в мастерскую.' }, { true, 'Назад', function() walkout() end, }, }} } room { nam = 'inventory', disp = "Инвентарь", hideinv = true, decor = function() local dsc = 'Пока что ваши карманы пусты.' return dsc..'^^{back|Назад}' end, obj = {'back'} }