...
 
Commits (2)
......@@ -630,6 +630,62 @@ dialog{
]],
}
dialog{
id = "dungeons.2.final_npc",
text = [[
Tu as vaincu le monstre de cette mine ???
Félicitation !!!
Je suis le chef des ouvriers, tu dis que tu me
cherchais ?
Prends ce sac rempli de bombes, ça devrait
t'aider.
]],
}
dialog{
id = "dungeons.2.prison_npc.1",
text = [[
En creusant les galeries nous avons découvert
ce repère de monstres...
]],
}
dialog{
id = "dungeons.2.prison_npc.2",
text = [[
Nous avons tous été capturés par les monstres
vivant dans ces cavernes.
]],
}
dialog{
id = "dungeons.2.prison_npc.3",
text = [[
Notre chef est à l'étage en dessous, va vite le
sauver !
]],
}
dialog{
id = "dungeons.2.prison_npc.take_this",
text = [[
J'ai trouvé ça dans la mine, prends-la, ça
devrait t'aider !
]],
}
dialog{
id = "dungeons.2.prison_npc.thanks",
text = [[
Tu es venu me sauver ?
Merci beaucoup !
]],
}
dialog{
id = "dungeons.2.welcome",
text = [[
......
......@@ -6378,7 +6378,7 @@ chest{
}
enemy{
name = "auto_enemy_3",
name = "auto_enemy_auto_door_d",
layer = 0,
x = 792,
y = 797,
......@@ -6410,15 +6410,6 @@ stairs{
subtype = 3,
}
enemy{
name = "auto_enemy_1",
layer = 0,
x = 792,
y = 797,
direction = 1,
breed = "alttp/tektite_blue",
}
enemy{
name = "auto_enemy_2",
layer = 0,
......@@ -7610,430 +7601,430 @@ dynamic_tile{
layer = 2,
x = 320,
y = -16,
pattern = "201",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "201",
}
dynamic_tile{
layer = 2,
x = 328,
y = -16,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 648,
y = -16,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 640,
y = -16,
pattern = "203",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "203",
}
dynamic_tile{
layer = 2,
x = 1288,
y = -16,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 1280,
y = -16,
pattern = "207",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "207",
}
dynamic_tile{
layer = 2,
x = 8,
y = -16,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = -8,
y = 0,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = -16,
y = 240,
pattern = "200",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "200",
}
dynamic_tile{
layer = 2,
x = -8,
y = 240,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = 968,
y = -16,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 960,
y = -16,
pattern = "205",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "205",
}
dynamic_tile{
layer = 2,
x = -8,
y = 480,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = -16,
y = 480,
pattern = "202",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "202",
}
dynamic_tile{
layer = 2,
x = -8,
y = 720,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = -16,
y = 720,
pattern = "203",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "203",
}
dynamic_tile{
layer = 2,
x = -8,
y = 960,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = -16,
y = 960,
pattern = "205",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "205",
}
dynamic_tile{
layer = 2,
x = -8,
y = 1200,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = -16,
y = 1200,
pattern = "206",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "206",
}
dynamic_tile{
layer = 2,
x = -8,
y = 1440,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = -16,
y = 1440,
pattern = "208",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "208",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 240,
pattern = "200",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "200",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 240,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 480,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 480,
pattern = "202",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "202",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 720,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 720,
pattern = "203",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "203",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 960,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 960,
pattern = "205",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "205",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 1200,
pattern = "204",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "204",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 1200,
pattern = "206",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "206",
}
dynamic_tile{
layer = 2,
x = 1608,
y = 1440,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 1600,
y = 1440,
pattern = "208",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "208",
}
dynamic_tile{
layer = 2,
x = 320,
y = 1680,
pattern = "201",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "201",
}
dynamic_tile{
layer = 2,
x = 328,
y = 1680,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 648,
y = 1680,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 640,
y = 1680,
pattern = "203",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "203",
}
dynamic_tile{
layer = 2,
x = 1288,
y = 1680,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 1280,
y = 1680,
pattern = "207",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "207",
}
dynamic_tile{
layer = 2,
x = 8,
y = 1680,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 968,
y = 1680,
pattern = "199",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "199",
}
dynamic_tile{
layer = 2,
x = 960,
y = 1680,
pattern = "205",
enabled_at_start = false,
width = 8,
height = 16,
enabled_at_start = false,
pattern = "205",
}
enemy{
......
This diff is collapsed.
......@@ -13,3 +13,26 @@ function map:on_started(destination)
prison_npc_3:remove()
end
end
local function prison_npc_interaction(num)
game:start_dialog("dungeons.2.prison_npc.thanks", function()
game:start_dialog("dungeons.2.prison_npc." .. num, function()
game:start_dialog("dungeons.2.prison_npc.take_this", function()
game:set_value("d2_b1_prison_npc_key_" .. num, true)
hero:start_treasure("small_key")
end)
end)
end)
end
function prison_npc_1:on_interaction()
prison_npc_interaction(1)
end
function prison_npc_2:on_interaction()
prison_npc_interaction(2)
end
function prison_npc_3:on_interaction()
prison_npc_interaction(3)
end
\ No newline at end of file
This diff is collapsed.
local map = ...
local game = map:get_game()
local fighting_boss = false
local music_id = map:get_music()
function map:on_started()
if game:has_item("bombs_counter") then
final_npc:remove()
end
if boss ~= nil then
boss:set_enabled(false)
end
map:set_doors_open("boss_door", true)
end
function start_boss_sensor:on_activated()
if boss ~= nil and not fighting_boss then
hero:freeze()
map:close_doors("boss_door")
sol.audio.stop_music()
sol.timer.start(1000, function()
boss:set_enabled(true)
hero:unfreeze()
sol.audio.play_music("boss")
fighting_boss = true
end)
end
end
function map:on_obtained_treasure(item, variant, savegame_variable)
if item:get_name() == "heart_container" then
sol.audio.play_music(music_id)
map:open_doors("boss_door")
end
end
function final_npc:on_interaction()
if not game:has_item("bombs_counter") then
game:start_dialog("dungeons.2.final_npc", function()
hero:start_treasure("bombs_counter")
local bombs_counter = game:get_item("bombs_counter")
bombs_counter:add_amount(bombs_counter:get_max_amount())
end)
end
end
\ No newline at end of file