There was Phitt's Cozy Dungeon Pack for LoG1:
https://www.nexusmods.com/grimrock/mods/61
A conversion to LoG2 is included in minmay's Grimrock 1 Mega Pack [Alpha 1]:
viewtopic.php?f=22&t=14645&
The built in functions are part of the GameMode object.
Code: Select all
--call fadeOut, fadeOut calls fadeIn. Set delay (5) to be the duration that it stays a solid color.
function fadeOut()
local delay,fade,color = 5,1, 0xffffff
GameMode.fadeOut(color, fade)
delayedCall(self.go.id, delay, 'fadeIn', fade, color)
end
function fadeIn(fade, color)
fade, color = fade or 1, color or 0xffffff
GameMode.fadeIn(color, fade)
end
If I understand you correctly, you want this:
Code: Select all
function openDoor()
local item_count = 0
for i = 1, 4 do
local champion = party.party:getChampion(i)
if champion then
for j = 1, ItemSlot.MaxSlots do
if champion:getItem(j) then
item_count = item_count + 1
end
end
end
end
if item_count == 0 then
dungeon_door_wooden_1.door:open()
end
end