2017-02-26 11:45:05 +02:00
|
|
|
|
init = function ()
|
2017-03-05 19:37:27 +02:00
|
|
|
|
take(menu {
|
2017-02-26 11:45:05 +02:00
|
|
|
|
nam = "Карта",
|
2017-03-05 19:37:27 +02:00
|
|
|
|
menu = function()
|
2017-02-26 11:45:05 +02:00
|
|
|
|
walk('map')
|
|
|
|
|
end
|
2017-03-05 19:37:27 +02:00
|
|
|
|
})
|
|
|
|
|
take(menu {
|
2017-02-26 11:45:05 +02:00
|
|
|
|
nam = "Квесты",
|
2017-03-05 19:37:27 +02:00
|
|
|
|
menu = function()
|
2017-02-26 11:45:05 +02:00
|
|
|
|
walk('quests')
|
|
|
|
|
end
|
2017-03-05 19:37:27 +02:00
|
|
|
|
})
|
|
|
|
|
take(menu {
|
2017-02-26 11:45:05 +02:00
|
|
|
|
nam = "Инвентарь",
|
2017-03-05 19:37:27 +02:00
|
|
|
|
menu = function()
|
2017-02-26 11:45:05 +02:00
|
|
|
|
walk('inventory')
|
|
|
|
|
end
|
2017-03-05 19:37:27 +02:00
|
|
|
|
})
|
2017-02-26 11:45:05 +02:00
|
|
|
|
char.act = nil
|
2017-03-05 19:34:59 +02:00
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ОСМОТРЕТЬ';
|
|
|
|
|
acts = { inv = 'exam' };
|
2017-03-05 19:45:50 +02:00
|
|
|
|
sources = { scene = true, inv = false }; -- осмотр инвентаря вынесен отдельно
|
2017-03-05 19:34:59 +02:00
|
|
|
|
}, me())
|
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ВЗЯТЬ';
|
|
|
|
|
acts = { inv = 'take' };
|
|
|
|
|
sources = { scene = true, inv = false };
|
|
|
|
|
}, me())
|
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ВЫБРОСИТЬ';
|
|
|
|
|
acts = { inv = 'drop' };
|
|
|
|
|
sources = { scene = false, inv = true };
|
|
|
|
|
}, me())
|
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ОТКРЫТЬ';
|
|
|
|
|
acts = { inv = 'open' };
|
|
|
|
|
sources = { scene = false, inv = true };
|
|
|
|
|
}, me())
|
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ЗАКРЫТЬ';
|
|
|
|
|
acts = { inv = 'close' };
|
|
|
|
|
sources = { scene = false, inv = true };
|
|
|
|
|
}, me())
|
|
|
|
|
place( proxy_menu {
|
|
|
|
|
disp = 'ГОВОРИТЬ С';
|
|
|
|
|
acts = { inv = 'talk' };
|
|
|
|
|
sources = { scene = true, inv = false };
|
|
|
|
|
}, me())
|
2017-02-26 11:45:05 +02:00
|
|
|
|
end
|
2017-03-05 08:13:15 +02:00
|
|
|
|
game.after_take = function(s, w)
|
|
|
|
|
take(w)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
game.after_drop = function(s, w)
|
|
|
|
|
drop(w)
|
|
|
|
|
end
|
|
|
|
|
game.exam = 'Ничего необычного.'
|
2017-02-26 11:45:05 +02:00
|
|
|
|
|
2017-02-20 18:40:12 +02:00
|
|
|
|
engineer = function()
|
2017-03-02 19:37:19 +02:00
|
|
|
|
if char.plural == true then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'инженеры'
|
|
|
|
|
end
|
|
|
|
|
return 'инженер'
|
|
|
|
|
end
|
2017-03-02 19:37:19 +02:00
|
|
|
|
that = function()
|
|
|
|
|
if char.plural == true then
|
|
|
|
|
return 'те'
|
|
|
|
|
end
|
|
|
|
|
return 'тот'
|
|
|
|
|
end
|
2017-02-20 18:40:12 +02:00
|
|
|
|
pronoun_3 = function()
|
2017-02-21 16:16:48 +02:00
|
|
|
|
if char.gender == 'she' then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'она'
|
|
|
|
|
end
|
2017-02-21 16:16:48 +02:00
|
|
|
|
if char.gender == 'he' then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'он'
|
|
|
|
|
end
|
2017-02-21 16:16:48 +02:00
|
|
|
|
if char.gender == 'it' then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'оно'
|
|
|
|
|
end
|
|
|
|
|
return 'они'
|
|
|
|
|
end
|
|
|
|
|
pronoun_1 = function()
|
2017-03-02 19:37:19 +02:00
|
|
|
|
if char.plural == true then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'мы'
|
|
|
|
|
end
|
|
|
|
|
return 'я'
|
|
|
|
|
end
|
|
|
|
|
endings = function()
|
2017-03-02 19:37:19 +02:00
|
|
|
|
if char.plural == true then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'и'
|
|
|
|
|
end
|
2017-02-21 16:16:48 +02:00
|
|
|
|
if char.gender == 'she' then
|
2017-02-20 18:40:12 +02:00
|
|
|
|
return 'а'
|
|
|
|
|
end
|
2017-02-20 18:49:39 +02:00
|
|
|
|
return ''
|
2017-02-20 18:40:12 +02:00
|
|
|
|
end
|
|
|
|
|
rndstr = function(strings)
|
|
|
|
|
return strings[rnd(stead.table.maxn(strings))];
|
|
|
|
|
end
|
2017-02-26 13:24:21 +02:00
|
|
|
|
rndalt = function(yes, no)
|
|
|
|
|
if rnd(2) == 1 then
|
|
|
|
|
return yes
|
|
|
|
|
end
|
|
|
|
|
return no
|
|
|
|
|
end
|