Intro And Some Questions On Modding

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Posts: 156
Joined: Sun Feb 04, 2018 11:04 pm

Intro And Some Questions On Modding

Post by wagtunes » Thu Feb 08, 2018 1:54 am


You know you're a real gaming geek, 60 years old and excited about making your first post here.

Brief intro:

I started playing video games back in the 1977 with the Atari 2600. My first PC adventure game was Eye Of The Beholder on 3.5 inch floppy back in the 90s. Until Might And Magic VI came out in 1998.

Legend Of Grimrock has captured the thrill of the original EoB series and I couldn't love it more.

With that out of the way, I've started my own dungeon. Having a good 30 years of computer programming experience behind me, I'm not overly concerned about diving into the Lua script but so far have stayed away from it because there are a few things that I'm unsure of and can't find answers for. The dungeon editor itself hasn't given me any problems though it's taken me a bit to figure out that there's a big difference between deactivate and toggle when it comes to turning off portals.

Anyway, here are my specific questions. I really didn't know where else to ask these because I don't see a sub forum that says tech help for dungeon editor or Lua scipting. So I figured posting here was safe.

1. I found the command for ending the game. I'm assuming I have to write a Lua script that when whatever event occurs, I simply call that command. My question though has to do with how to customize the game ending. I see the syntax says:


I'm assumning the cinematics file is either an audio or video but can't find any info on file type that it has to be or where that file needs to be stored on your PC. I've been composing music since 1977 so writing an ending score is no problem. In fact, you can find a lot of my work on Soundcloud.

However, in addition to the cinematic file, I want to display text similar to the dream sequence texts in LOG 1 but have no clue how to do that in conjunction with the cinematic file where several messages fade in and fade out, controlled by a timer. So any assistance here will be appreciated.

2. Would like to create a custom item to be found in a chest in order to trigger the completeGame([cinematicsFile]) command. Is this possible? I've gone through the scripting reference page but might have missed something as it's pretty long. In fact, it's massive.

That's about it. Everything else I've pretty much figured out and am through 4 levels of my current dungeon. As a former D&D Dungeon Master, this has been very easy for me story wise.

3. Is there an area where custom Lua scripts like the ones I'm looking for already exist? There is no point in reinventing the wheel if it already exists.

Any assistance that anybody can give and any other suggestions regarding things that I might not have even thought of would be greatly appreciated.

User avatar
Posts: 548
Joined: Wed Sep 12, 2012 3:49 pm

Re: Intro And Some Questions On Modding

Post by Leki » Fri Feb 09, 2018 7:41 pm

I'm the Gate I'm the Key.
Dawn of Lore

Posts: 156
Joined: Sun Feb 04, 2018 11:04 pm

Re: Intro And Some Questions On Modding

Post by wagtunes » Fri Feb 09, 2018 8:20 pm

Thank you. Much appreciated.

User avatar
Sir Tawmis
Posts: 886
Joined: Mon Jul 30, 2012 8:15 am

Re: Intro And Some Questions On Modding

Post by Sir Tawmis » Wed Apr 18, 2018 7:17 pm

Leki wrote: Custom video:
Use Grimrock I guide:

Out of curiosity (not that I am planning anything, but I clicked the link to see how easy it would be)... The page states:
Note for Legend of Grimrock 2 Version 2.1.18: When exporting, the editor does not currently package .ivf-files. To work around this limitation, rename your video file to .dds and update your script to match the new filename. This will be fixed in the next version.

Was this ever fixed in LOG2?
Define ... 'Lost.' Neverending Nights - The Neverwinter Machinima that WILL make you laugh!
Also read: Legend of Grimrock: Destiny's Chance here on the forum! Check out the site I made for Legend of Grimrock: Destiny's Chance.

Posts: 2689
Joined: Mon Sep 23, 2013 2:24 am

Re: Intro And Some Questions On Modding

Post by minmay » Wed Apr 18, 2018 11:58 pm

Yes, that was fixed.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.

Post Reply