how to hide wall text?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Golgon
Posts: 1
Joined: Sun Sep 16, 2012 3:15 pm

how to hide wall text?

Post by Golgon »

First of all, awesome Editor, thx a lot, Guys.

So, i´ve been trying my hands on a remake of Dungeon Master as have many i presume.
It´s been going great so far, and the Editor is just awesome, but there are some problems, i can´t seem to resolve.

Especially the wall text that only appears when the Pressure Plate is activated eludes me.

So far i have connected the pressure plat to the script entity, but i can´t find any command to hide the text.

Anyone got any Idea how to handle this?
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: how to hide wall text?

Post by Lmaoboat »

Well you could put a secret door over top of it, but there would be some clipping problems when it opens, and it would still read the message if they clicked on it. You could also just use WallText:setWallText(text) to make the text blank.
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: how to hide wall text?

Post by Lmaoboat »

There's also:
spawn(object, level, x, y, facing, [id])
But I don't think you could hide it again.
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: how to hide wall text?

Post by Komag »

you can do a script to make the secret door instantly open, no noise, no animation. It works, but it's a little tricky

- You have to first have the square behind the secret wall be a room (or else you cannot place the secret wall).
- Then place the secret door (and name it if you like, such as "fakewalldoor")
- Then close the room again (RMB with the Draw Walls tool)
- create a Lua script item, with this code:

Code: Select all

function openitnow()
    fakewalldoor:setDoorState("open")
end
- create the pressure plate
- add a connection from the pressure plate to the script (Action will say "openitnow")
This works, but if you are looking at the wall you will see it "jump back" a couple inches. The effect could possibly be acceptable or even desirable depending on what you are trying to do.
Finished Dungeons - complete mods to play
Lmaoboat
Posts: 359
Joined: Wed Apr 11, 2012 8:55 pm

Re: how to hide wall text?

Post by Lmaoboat »

Komag wrote:you can do a script to make the secret door instantly open, no noise, no animation. It works, but it's a little tricky

- You have to first have the square behind the secret wall be a room (or else you cannot place the secret wall).
- Then place the secret door (and name it if you like, such as "fakewalldoor")
- Then close the room again (RMB with the Draw Walls tool)
- create a Lua script item, with this code:

Code: Select all

function openitnow()
    fakewalldoor:setDoorState("open")
end
- create the pressure plate
- add a connection from the pressure plate to the script (Action will say "openitnow")
This works, but if you are looking at the wall you will see it "jump back" a couple inches. The effect could possibly be acceptable or even desirable depending on what you are trying to do.
Actually, you can also make the door somewhere else and just move it.
User avatar
Xzalander
Posts: 62
Joined: Thu Sep 13, 2012 1:27 pm
Location: Yorkshire, United Kingdom

Re: how to hide wall text?

Post by Xzalander »

Curious, why not directly connect the Wall plate to the pressure plate, then set the PressurePlate reaction to any and the Wall plate reaction to toggle.

Step on, it will toggle the wall plate on, step off and it will toggle it off.
User avatar
spacecookie
Posts: 26
Joined: Tue Sep 18, 2012 4:23 pm
Location: SW Ingalund, innit.
Contact:

Re: how to hide wall text?

Post by spacecookie »

On the subject of wall text, how do I get text on separate lines please?

So instead of:-
Welcome to the hall of CHOCOLATE BUNNIES!

I could have;-
Welcome to
The hall of
CHOCOLATE BUNNIES!!
Magus
Posts: 56
Joined: Wed Sep 12, 2012 6:05 pm

Re: how to hide wall text?

Post by Magus »

On the subject of wall text, how do I get text on separate lines please?

So instead of:-
Welcome to the hall of CHOCOLATE BUNNIES!

I could have;-
Welcome to
The hall of
CHOCOLATE BUNNIES!!
"\n" without the quotes.
User avatar
Malveus
Posts: 25
Joined: Tue Jul 17, 2012 5:03 am
Location: Louisville, KY

Re: how to hide wall text?

Post by Malveus »

spacecookie wrote:On the subject of wall text, how do I get text on separate lines please?

So instead of:-
Welcome to the hall of CHOCOLATE BUNNIES!

I could have;-
Welcome to
The hall of
CHOCOLATE BUNNIES!!
You would say " Welcome to \n the hall of \n CHOCOLATE BUNNIES" , the \n denoting a new text line below the first, if I'm not mistaken.
User avatar
spacecookie
Posts: 26
Joined: Tue Sep 18, 2012 4:23 pm
Location: SW Ingalund, innit.
Contact:

Re: how to hide wall text?

Post by spacecookie »

Thankyou very much.
Post Reply