December 1, 2020
Archives  News  Scripting The Walls In Legend Of Grimrock  

Tuesday, February 5, 2013

Click to enlarge
Scripting The Walls In Legend Of Grimrock
6:00 AM | Cord Kruse | 1 comment

In a new forum posting Almost Human has revealed some information about features planned for an as yet unannounced “new Grimrock project.” Legend of Grimrock is an old school RPG dungeon crawler which puts players in the role of a prisoner exiled to Mount Grimrock. To escape they must form a party and make their way through Grimrock's ancient tunnels and dungeons.

Up to now mostly everything in the dungeon has been scriptable. This means that we (and modders) can spawn and destroy alcoves, pressure plates, monsters, items and so on at will. This has proven to be tremendously useful. But one thing has been lacking: the dungeon walls themselves have been living outside the realm of scripting. In fact, for performance reasons they were originally implemented as a special case making them completely static. So, for example, spawning an alcove on top of a wall results in the alcove overlapping with the wall since the wall and alcove share the same space.

We thought about various ways to workaround this problem, but quickly we realised that fixing this problem once and for all means that we should have access to the walls from script and being able to dynamically destroy them. And this is exactly what I have been working on this week. Now everything, including the walls, floors, ceilings and pillars are fully scriptable entities. It is now possible to retrieve the wall entity from the dungeon and call methods such as “destroy” on it. In fact, spawning an alcove now takes care of destroying the wall automatically, so we (or modders) don’t even need to bother with deleting it using script. Likewise, spawning a wall on top of an alcove destroys the alcove automatically. This works for pressure plates and everything else that should replace the existing object automatically. (In modding terms: this works because the alcove and wall entities have the “replacesWall” property set and alcoves and walls have both wall placement.)

We have also added all walls, floors and ceilings to the editor as placeable entities. This way it is very easy to mix and match different wallsets. Another improvement is the addition of onInit hooks to all entities. The hook is called when the map has been loaded and it allows customizing the dungeon geometry easily. For example, we wanted to have huge chasms that span multiple squares with custom objects that are placed at the boundary of the chasm. Placing the objects manually by hand is tedious work so we added a small piece of script that automatically adds them.

Head over to the page below to learn more about further development of Legend of Grimrock.

Grimrock Blog: Everything Is Scriptable
Legend Of Grimrock
Buy Legend Of Grimrock

Other Mac Games News for Tuesday, February 5, 2013

Mac Game Store Enters LIMBO6:00 AM
Omerta: City Of Gangsters Trailer Unveiled6:00 AM
• Scripting The Walls In Legend Of Grimrock6:00 AM
The Banner Saga Single Player Campaign6:00 AM
View all of the Mac games news for Tuesday, February 5, 2013 on one page

Mac Games News for Monday, February 4, 2013

Akaneiro: Demon Hunters Available, Kickstarter Success6:00 AM
Anomaly Warzone Earth Postmortem Released6:00 AM
Shadomania Puzzles Mac Game Store6:00 AM
The Cave Reviewed6:00 AM
View all of the Mac games news for Monday, February 4, 2013 on one page

Recent Mac Games News

Friday, February 1, 2013
Thursday, January 31, 2013
Wednesday, January 30, 2013
Tuesday, January 29, 2013
Monday, January 28, 2013

Search for other Mac games news stories or browse our Mac Games News Archive.

Archives  News  Scripting The Walls In Legend Of Grimrock