Grimrock 1 text walls

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Grimrock 1 text walls

Post by RayB »

Trying to spawn a text wall but the gold rune text flickers when running a preview. I found I can use a regular text wall with a secret door over it. It works but a click on the secret door covering the text wall will reveal the text box with text. Not too cool. I can also use a drainage wall and then destroy the drainage wall and spawn a text wall. That works but the text wall doesn't have a drain and the change looks weird. What is with the flickering? Is there any way to spawn a text wall without it? And why does the drainage wall work? After all you destroy the drainage wall before creating the text wall. Something funny going on!
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Grimrock 1 text walls

Post by minmay »

The flickering happens because the wall text model is overlapping with the existing wall model. Your drainage thing "works" because the drainage wall model replaces the automatic wall model, and when you delete the drainage wall entity it deletes the model leaving a blank space, which you're then replacing with the wall text.
Simply make a version of the regular wall model with replacesWall = true and destroy that and spawn the wall text.
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.
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Re: Grimrock 1 text walls

Post by RayB »

I really am new at this stuff and don't know how to go about making a version of a regular wall model. But thank you for your reply. The flickering was really mind boggling to me.
minmay
Posts: 2790
Joined: Mon Sep 23, 2013 2:24 am

Re: Grimrock 1 text walls

Post by minmay »

You do not need to edit a model. Just define an object like this:

Code: Select all

defineObject{
	name = "dungeon_wall_01",
	class = "Decoration",
	model = "assets/models/env/dungeon_wall_01.fbx",
	placement = "wall",
	replacesWall = true,
	editorIcon = 8,
}
and place it on the wall, then when you want to create the wall text, just destroy it and spawn the wall text on the same frame.
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.
RayB
Posts: 140
Joined: Fri Mar 06, 2015 3:45 am

Re: Grimrock 1 text walls

Post by RayB »

Works like a charm! And makes coding a lot simpler. Thank you very much.
Post Reply