Changeset - a4e12e25133d
[Not reviewed]
default
0 3 0
Silverwing - 6 years ago 2018-12-02 11:21:05

added all items to leviathan dialog
3 files changed with 38 insertions and 4 deletions:
0 comments (0 inline, 0 general)
journey_temple.lua
Show inline comments
 
dt_intro = lsutscene('Левиафан, рубка', 'Левиафан, рубка', [[Следуя карте, найденной в светодиске, вы следуете к древнейшему из известных вам навьярских сооружений. Через месяц пути вы оказываетесь в глубоком лабиринте ущелий. Здесь вам предстоит найти искомое. ]], 'Вы прибыли в древний храм. ', dt_labyrinth);
 

	
 
dt_labyrinth_foot = room {
 
    nam = "dt_labyrinth_foot";
 
    no_exit = [[
 
        Нет смысла покидать Левиафан здесь. 
 
    ]];
 
    handwheel_room = "dt_labyrinth";
leviathan.lua
Show inline comments
 
@@ -858,13 +858,13 @@ leviathan_dlg = dlg {
 
	disp = "Левиафан, рубка";
 
	dsc = function()
 
		local view = "";
 
		if (type(where(submarine_leviathan).view) == "function") then
 
			view = where(submarine_leviathan):view();
 
		else
 
			view = where(submarine_leviathan).view;
 
			view = where(submarine_leviathan).view();
 
		end;
 
		
 
		return [[Вы находитесь в рубке Левиафана перед штурвалом. Отсюда вы можете направиться куда-нибудь. Яркий свет электрических ламп освещает помещение. ]] .. (view);
 
	end;
 
	update_options = function()
 
		leviathan_dlg:poff("atlantis", "old_temple", "iraaphaanotrr", "iraaphaanotrr_temple", "dypatreanotrr", "dypatreanotrr_temple", "venaedanotrr", 'venaedanotrr_ravine', 'venaedanotrr_temple');
 
@@ -880,13 +880,13 @@ leviathan_dlg = dlg {
 
        if (dypatreanotrr_found and where(submarine_leviathan) ~= dyp_center) then
 
            leviathan_dlg:pon("dypatreanotrr");
 
        end;
 
		if (dypatreanotrr_night_found and where(submarine_leviathan) ~= dyp_night_center) then
 
			leviathan_dlg:pon("dypatreanotrr_night");
 
		end;
 
        if (iraaphaanotrr_temple_found and where(submarine_leviathan) ~= ctt_iraa_near_temple) then
 
        if (iraaphaanotrr_temple_found and where(submarine_leviathan) ~= ctt_iraa_near_temple) 		then
 
			leviathan_dlg:pon("iraaphaanotrr_temple");
 
		end;
 
		if (dypatreanotrr_temple_found and where(submarine_leviathan) ~= dyp_temple_entrance) then
 
			leviathan_dlg:pon("dypatreanotrr_temple");
 
		end;
 
		if venaedanotrr_found and where(submarine_leviathan) ~= ven_center then
 
@@ -895,12 +895,21 @@ leviathan_dlg = dlg {
 
		if venaedanotrr_ravine_found and where(submarine_leviathan) ~= ven_ravine_entrance then
 
			leviathan_dlg:pon("venaedanotrr_ravine");
 
		end;
 
		if venaedanotrr_temple_found and where(submarine_leviathan) ~= ven_temple_entrance then
 
			leviathan_dlg:pon("venaedanotrr_temple");
 
		end;
 
		if nleyyslanotrr_found and where(submarine_leviathan) ~= nley_near_cliff_1 then
 
			leviathan_dlg:pon('nleyyslanotrr')
 
		end;
 
		if deep_temple_found and where(submarine_leviathan) ~= dt_labyrinth_foot then
 
			leviathan_dlg:pon('deep_temple')
 
		end;
 
		if lseryanotrr_found then
 
			leviathan_dlg:pon('lseryanotrr')
 
		end;
 
	end;
 
	enter = function(s)
 
		s.update_options();
 
	end;
 
	phr = {
 
		{tag="atlantis", always = "true", "Атлантида", function()
 
@@ -974,20 +983,44 @@ leviathan_dlg = dlg {
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, 'ven_ravine_entrance');
 
			leviathan_dlg:update_options();
 
			walk(ven_ravine_intro);
 
		end},
 
		{tah='venaedanotrr_temple', always = 'true', 'Храм Венаэданотра', function()
 
		{tag='venaedanotrr_temple', always = 'true', 'Храм Венаэданотра', function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, 'ven_temple_entrance');
 
			leviathan_dlg:update_options();
 
			walk(ven_temple_intro);
 
		end},
 
		{tag='nleyyslanotrr', always = 'true', 'Нлейисланотр', function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, 'nley_near_cliff_1');
 
			leviathan_dlg:update_options();
 
			if nley_visited then
 
				walk(leviathan_wheelhouse);
 
			else
 
				walk(nley_intro);
 
			end;
 
		end},
 
		{tag='deep_temple', always = 'true', 'Неизвестный храм', function()
 
			if raybox_task then
 
				raybox_task_finished = true;
 
			end;
 
			move(submarine_leviathan, 'dt_labyrinth_foot');
 
			leviathan_dlg:update_options();
 
			walk(dt_intro);
 
		end},
 
		{tag='lseryanotrr', always = 'true', 'Лсэрианотр', function()
 
			leviathan_dlg:update_options();
 
			walk(lse_entered);
 
		end},
 
		{always = "true", "Назад", "", function()
 
			back();
 
		end}
 
	};
 
};
 
startup.lua
Show inline comments
 
@@ -17,13 +17,12 @@ global {
 

	
 
    venaedanotrr_found = false;
 
    venaedanotrr_ravine_found = false;
 
    venaedanotrr_temple_found = false;
 

	
 
    nleyyslanotrr_found = false;
 
    nleyyslanotrr_temple_found = false;
 

	
 
    deep_temple_found = false;
 
    lseryanotrr_found = false;
 
    
 
    rel_phaetlarr = 0;
 
    rel_walter = 0;
0 comments (0 inline, 0 general)