1
0
Fork 0
mirror of https://gitlab.com/Oreolek/duel.git synced 2024-07-02 14:55:15 +03:00
duel/tools.lua

98 lines
1.9 KiB
Lua
Raw Normal View History

init = function ()
map = obj {
nam = "Карта",
inv = function()
walk('map')
end
}
take(map)
quests = obj {
nam = "Квесты",
inv = function()
walk('quests')
end
}
take(quests)
inventory = obj {
nam = "Инвентарь",
inv = function()
walk('inventory')
end
}
take(inventory)
char.act = nil
2017-03-05 08:13:15 +02:00
--[[
local examine_menu = act_menu("ОСМОТРЕТЬ", "exam", true);
take(examine_menu)
local take_menu = act_menu("ВЗЯТЬ", "take", true);
take(take_menu)
local drop_menu = act_menu("ВЫБРОСИТЬ", "drop", false, true);
place(drop_menu, me())
local open_menu = act_menu("ОТКРЫТЬ", "open", false, true);
place(open_menu, me())
local close_menu = act_menu("ЗАКРЫТЬ", "close", false, true);
place(close_menu, me())
local talk_menu = act_menu("ГОВОРИТЬ С", "talk", true);
place(talk_menu, me())
]]
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-20 18:40:12 +02:00
engineer = function()
if char.plural == true then
2017-02-20 18:40:12 +02:00
return 'инженеры'
end
return 'инженер'
end
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()
if char.plural == true then
2017-02-20 18:40:12 +02:00
return 'мы'
end
return 'я'
end
endings = function()
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
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