Search found 891 matches

by Sir Tawmis
Fri Oct 06, 2023 6:38 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

How to Create Hatching Spider Eggs In this how-to we’ll take a look at how we can create spider eggs which, when destroyed, spawn a spider. With this tutorial we’ll get to know how scripting hooks work in practice and how to pass parameters to functions in other script entities. I hope you’re prepa...
by Sir Tawmis
Fri Oct 06, 2023 6:35 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Scripting Hooks Scripting hooks are Lua functions that can be added to asset definitions. Hooks can be used to extend and customize behavior of assets that support hooks. Hooks are called when certain events occur in the engine and before the corresponding action is executed. Most actions can be ca...
by Sir Tawmis
Fri Oct 06, 2023 6:34 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Creating Custom Assets Using customized assets opens Legend of Grimrock for more in-depth modding than is possible by just using the Dungeon Editor. Using existing Grimrock assets as the basis and changing a few parameters to come up with new item or monster variants is relatively straightforward t...
by Sir Tawmis
Fri Oct 06, 2023 6:30 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Scripting Reference You are reading the Lua scripting reference manual for Legend of Grimrock. The focus of this document is on completeness rather than brevity. Refer to the tutorials for more detailed examples on how to use the material described here. The Lua functions and methods described here...
by Sir Tawmis
Fri Oct 06, 2023 6:27 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Save Games and Variables When creating scripts, you need to be aware of some limitations when it comes to save games. It is possible to create all sorts of variables, tables and whatnot to store data with Lua but the game itself will not necessarily be able save and load the data. Naturally you don...
by Sir Tawmis
Fri Oct 06, 2023 6:25 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

How to Script "Item on an Alcove" Puzzle Riddles that prompt the player to insert an item of a specific type on an altar or an alcove is a classic RPG puzzle. To create such a puzzle in the Dungeon Editor, we need to know what items are placed on an alcove and, if an item of a specific ty...
by Sir Tawmis
Fri Oct 06, 2023 6:24 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

How to Add a Scroll With Text on an Alcove It is not possible to define parameters, like the text for a scroll, for items that are added on alcoves or inside containers by using the inspector alone but it is possible to work around these limitations by scripting. First, let’s place an alcove into t...
by Sir Tawmis
Fri Oct 06, 2023 6:22 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

How to Script a Combination Lock https://i.ibb.co/DL5b5DY/combolock.jpg With this script, we will learn how to interact with other assets via script by doing a classic combination lock puzzle. To get started, we need three lever entities for the lock and a door of your choice we want to get open an...
by Sir Tawmis
Fri Oct 06, 2023 6:19 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Introduction to Scripting Scripting is a vast topic so in the scope of these documents we can merely introduce you to the subject. Even though you can do a lot in the Dungeon Editor without ever touching scripting, I would encourage you to try it out since doing scripts, even very simple ones, will...
by Sir Tawmis
Fri Oct 06, 2023 6:11 pm
Forum: Modding
Topic: Legend of Grimrock 1 Modding
Replies: 22
Views: 3673

Re: Legend of Grimrock 1 Modding

Editor Keyboard Shortcuts Select tool.....................1 Add object tool...............2 Draw walls tool...............3 Start preview..................F5 Stop preview..................Shift+F5 Toggle fullscreen preview...Ctrl-F Previous level.................Page Up Next level.....................