Spawning alcoves and ceiling shafts

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
manic.insomnia
Posts: 4
Joined: Fri May 31, 2013 12:12 am
Contact:

Spawning alcoves and ceiling shafts

Post by manic.insomnia »

Hi all just working through my first mod.

Having an issue spawning alcoves and ceiling shafts.

If I use this script anywhere in my levels I get the alcove overlaying the wall or ceiling element obscuring it. It works as an alcove but it's hidden by what was already in the same spot.

Code: Select all

spawn("prison_ceiling_lamp", 4,12,20,2)
spawn("dungeon_ceiling_shaft", 4,12,20,2)
spawn("dungeon_alcove", 4,12,20,3)
Is there a straight forward way to script alcoves or shafts that replace the walls. This function is mentioned as being added the scripting by default but seems not to have been implemented yet.

Thanks
MI.
User avatar
Sutekh
Posts: 129
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: Spawning alcoves and ceiling shafts

Post by Sutekh »

Well, I know that you can replace a secret button with an alcove by destroying the secret button in the same script that spawns the alcove, so it should just be a case of defining a wall decoration using the wall model itself and setting its replacesWall flag to true. Once you have this 'dummy' wall defined and placed in the editor, you should be able to destroy it and spawn an alcove in its place.
User avatar
manic.insomnia
Posts: 4
Joined: Fri May 31, 2013 12:12 am
Contact:

Re: Spawning alcoves and ceiling shafts

Post by manic.insomnia »

Thanks Sutekh I'll give that a go.

Shame the replacesWall default for the alcove isn't implemented yet, everything I've found seems to involve hacks rather than straight forward modding.
User avatar
manic.insomnia
Posts: 4
Joined: Fri May 31, 2013 12:12 am
Contact:

Re: Spawning alcoves and ceiling shafts

Post by manic.insomnia »

Still no luck with scripting an alcove but I think maybe it's not a critical factor so I'm just going with a standard fixed alcove and script the items instead.
Post Reply