diff --git a/main.lua b/main.lua --- a/main.lua +++ b/main.lua @@ -67,8 +67,13 @@ global { rel_learr = 0; rel_anna = 0; rel_jack = 0; + + dt_code = {}; + dt_buttons = {}; }; + + pl = player { nam = "player"; disp = "Дэвид Дрейк"; @@ -145,6 +150,19 @@ function init() leviathan_init(); warehouse18_init(); warehouse32_init(); + + local nums = {1,2,3,4,5,6}; + for i = 1, 4 do + local index = rnd(#nums); + table.insert(dt_code, nums[index]); + table.remove(nums, index); + end; + nums = {1,2,3,4,5,6}; + for i = 1, 3 do + local index = rnd(#nums); + table.insert(dt_buttons, nums[index]); + table.remove(nums, index); + end; ---game init pl.where = intro; ---debug @@ -221,7 +239,7 @@ function init() put(item_colt, pl); --ven_shark.position = "55"; --pl.where = "za_plaetlarr_fight"; - pl.where = "za_temple_back_entrance"; + pl.where = "dt_fight"; move(submarine_leviathan, "za_temple_back_entrance_foot"); char_anna.follow = true; --pl.where = "ven_chest_look";