Page 1 of 1
how to hide wall text?
Posted: Sun Sep 16, 2012 6:08 pm
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?
Re: how to hide wall text?
Posted: Sun Sep 16, 2012 6:18 pm
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.
Re: how to hide wall text?
Posted: Sun Sep 16, 2012 6:50 pm
by Lmaoboat
There's also:
spawn(object, level, x, y, facing, [id])
But I don't think you could hide it again.
Re: how to hide wall text?
Posted: Sun Sep 16, 2012 9:54 pm
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.
Re: how to hide wall text?
Posted: Sun Sep 16, 2012 9:56 pm
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.
Re: how to hide wall text?
Posted: Mon Sep 17, 2012 9:24 am
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.
Re: how to hide wall text?
Posted: Tue Sep 18, 2012 7:26 pm
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!!
Re: how to hide wall text?
Posted: Tue Sep 18, 2012 7:30 pm
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.
Re: how to hide wall text?
Posted: Tue Sep 18, 2012 7:31 pm
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.
Re: how to hide wall text?
Posted: Tue Sep 18, 2012 7:36 pm
by spacecookie
Thankyou very much.