Changeset - 6aca151fdea9
[Not reviewed]
default
0 2 0
Silverwing - 5 years ago 2019-06-28 21:41:28

vars initialized with nil do not work
2 files changed with 8 insertions and 4 deletions:
0 comments (0 inline, 0 general)
journey_nleyyslanotrr.lua
Show inline comments
 
@@ -586,7 +586,7 @@ nley_telhyarr_dlg = dlg {
 
}
 

	
 
function nley_init_catacombs()
 
    if nley_catacombs_password.password == nil then
 
    if nley_catacombs_password.password == '' then
 
        nley_catacombs_password.password = tostring(rnd(6) - 1) .. tostring(rnd(6) - 1) .. tostring(rnd(6) - 1) .. tostring(rnd(6) - 1);
 
    end;
 
end
 
@@ -832,11 +832,11 @@ nley_cat_room_7 = room {
 
}
 

	
 
nley_catacombs_password = input_number_nav {
 
    var {
 
        password = '';
 
    };
 
    nam = 'Нлейисланотр, катакомбы';
 
    maxlen = 4;
 
    var {
 
        password = nil;
 
    };
 
    label = 'На стене перед вами расположено несколько кнопок. Шесть из них соответствуют навьярским цифрам, еще одна гласит "завершить". Очевидно, с их помощью нужно ввести код. ^Введенный код:';
 
    check = function(s, input)
 
        if input == s.password then
utils.lua
Show inline comments
 
@@ -386,6 +386,8 @@ function input_number(tab)
 
	end;
 
	tab.forcedsc = true;
 
    tab.not_follow = true;
 
    tab.nosave = true;
 
    tab.noautosave = true;
 
	tab.noinv = true;
 
	tab.input = "";
 
	tab.dsc = function(s)
 
@@ -446,6 +448,8 @@ function input_number_nav(tab)
 
    end;
 
    tab.forcedsc = true;
 
    tab.noinv = true;
 
    tab.nosave = true;
 
    tab.noautosave = true;
 
    tab.not_follow = true;
 
    tab.input = "";
 
    tab.dsc = function(s)
0 comments (0 inline, 0 general)