1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-06-24 11:00:54 +03:00
duel/ui.lua

74 lines
1.6 KiB
Lua
Raw Normal View History

obj {
nam = 'back',
act = function()
return walkout()
end
}
local markers = {
chos = "626,666",
}
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'}
}