Changeset - 7bbe03b8df5e
[Not reviewed]
default
0 2 13
Silverwing - 5 years ago 2019-06-26 17:47:08

Venaedanotrr ravine crypt
15 files changed with 30 insertions and 34 deletions:
0 comments (0 inline, 0 general)
images/powerplant_bg.png
Show inline comments
 
binary diff not shown
Show images
images/ven_ravine_towers.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_green_1.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_green_2.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_green_3.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_green_4.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_red_1.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_red_2.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_red_3.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_red_4.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_yellow_1.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_yellow_2.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_yellow_3.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
images/ven_ravine_towers_yellow_4.png
Show inline comments
 
new file 100644
 
binary diff not shown
Show images
journey_venaedanotrr_labyrinth.lua
Show inline comments
 
ven_towers_machine = obj {
 
    nam = "ven_towers_machine";
 
    dsc = "У одной из стен помещения вы видите странную {машину} - три вращающихся оси, на которых установлено 4 шестеренки. Внизу вы видите какие-то рычаги";
 
    dsc = "У одной из стен помещения вы видите странную {машину} - на небольшом светящемся экране вы видите несколько прямоугольников разных цветов. Ниже расположены три кнопки. ";
 
    act = function(s)
 
        if (not ven_towers_machine_look.solved) then
 
            walkin(ven_towers_machine_look);
 
@@ -14,12 +14,28 @@ ven_towers_machine_look = room {
 
        from = 0;
 
        solved = false;
 
    };
 
    nam = "Венаэданотр, башня, третий этаж";
 
    colors = {
 
        'red';
 
        'red';
 
        'green';
 
    };
 
    nam = "Ущелье, тайное хранилище";
 
    underwater = true;
 
    pic = function(s)
 
        local p = "box:96x48,white,255;box:1x48,black,255@16,0;box:1x48,black,255@48,0;box:1x48,black,255@80,0";
 
        for g = 1,#s.gears do
 
            p = p .. ";box:" .. tostring(g * 8) .. "x11,green,255@" .. tostring((s.gears[g] - 1) * 32 + 16 - g * 4) .. "," .. tostring((g - 1) * 12 + 1);
 
--        local p = "box:96x48,white,255;box:1x48,black,255@16,0;box:1x48,black,255@48,0;box:1x48,black,255@80,0";
 
--        for g = 1,#s.gears do
 
--            p = p .. ";box:" .. tostring(g * 8) .. "x11,green,255@" .. tostring((s.gears[g] - 1) * 32 + 16 - g * 4) .. "," .. tostring((g - 1) * 12 + 1);
 
--        end;
 
        local p = 'images/ven_ravine_towers.png';
 
        local f = false;
 
        for g = 1, #s.gears do
 
            local color = s.colors[s.gears[g]];
 
            if s.from == s.gears[g] and not f then
 
                f = true;
 
                color = 'yellow';
 
            end;
 

	
 
            p = p ..';images/ven_ravine_towers_' .. color .. '_' .. tostring(5 - g) .. '.png@' .. tostring((s.gears[g] - 1) * 103 + 6) .. ',' .. tostring((g - 1) * 47 + 6);
 
        end;
 
        
 
        return p;
 
@@ -41,10 +57,10 @@ ven_towers_machine_look = room {
 
        end;
 
        
 
        if (not nums or numt and numt < nums) then
 
            rv = "Механизм издает легкий щелчок и ничего не происходит. ";
 
            rv = "Машина издает легкий щелчок и ничего не происходит. ";
 
        else
 
            s.gears[nums] = target;
 
            rv = "Механизм издает легкий щелчок и одна из шестеренок перемещается на соседнюю ось. ";
 
            rv = "Машина  издает легкий щелчок и изображение на экране меняется. ";
 
        end;
 
        
 
        s.solved = true;
 
@@ -67,9 +83,7 @@ ven_towers_machine_look = room {
 
        ven_towers_machine_look.from = 0;
 
        return rv;
 
    end;
 
    dsc = [[
 
        Странная машина состоит из четырех шестеренок и трех вращающихся осей. Внизу вы видите три рычага.
 
    ]];
 
    dsc = [[На небольшом светящемся экране вы видите несколько прямоугольников разных цветов. Ниже расположены три кнопки. ]];
 
    obj = {
 
        'ven_towers_lever1',
 
        'ven_towers_lever2',
 
@@ -85,15 +99,9 @@ ven_towers_lever1 = obj {
 
        state = 0;
 
    };
 
    nam = "ven_towers_lever1";
 
    dsc = function(s)
 
        if (s.state == 0) then
 
            return [[{Первый рычаг(выключен).}^]];
 
        else
 
            return [[{Первый рычаг(включен).}^]];
 
        end;
 
    end;
 
    dsc = "{Нажать кнопку 1}^";
 
    act = function(s)
 
        local rv = [[Вы переключаете рычаг. ]];
 
        local rv = [[Вы нажимаете кнопку. ]];
 
        if (s.state == 0) then
 
            s.state = 1;
 
            if (ven_towers_machine_look.from == 0) then
 
@@ -114,15 +122,9 @@ ven_towers_lever2 = obj {
 
        state = 0;
 
    };
 
    nam = "ven_towers_lever2";
 
    dsc = function(s)
 
        if (s.state == 0) then
 
            return [[{Второй рычаг(выключен).}^]];
 
        else
 
            return [[{Второй рычаг(включен).}^]];
 
        end;
 
    end;
 
    dsc = "{Нажать кнопку 2}^";
 
    act = function(s)
 
        local rv = [[Вы переключаете рычаг. ]];
 
        local rv = [[Вы нажимаете кнопку. ]];
 
        if (s.state == 0) then
 
            s.state = 1;
 
            if (ven_towers_machine_look.from == 0) then
 
@@ -143,15 +145,9 @@ ven_towers_lever3 = obj {
 
        state = 0;
 
    };
 
    nam = "ven_towers_lever3";
 
    dsc = function(s)
 
        if (s.state == 0) then
 
            return [[{Третий рычаг(выключен).}^]];
 
        else
 
            return [[{Третий рычаг(включен).}^]];
 
        end;
 
    end;
 
    dsc = "{Нажать кнопку 3}^";
 
    act = function(s)
 
        local rv = [[Вы переключаете рычаг. ]];
 
        local rv = [[Вы нажимаете кнопку. ]];
 
        if (s.state == 0) then
 
            s.state = 1;
 
            if (ven_towers_machine_look.from == 0) then
0 comments (0 inline, 0 general)