how to hide wall text?
how to hide wall text?
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?
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?
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?
There's also:
spawn(object, level, x, y, facing, [id])
But I don't think you could hide it again.
spawn(object, level, x, y, facing, [id])
But I don't think you could hide it again.
Re: how to hide wall text?
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:
- 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.
- 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- 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
Re: how to hide wall text?
Actually, you can also make the door somewhere else and just move it.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:- create the pressure plateCode: Select all
function openitnow() fakewalldoor:setDoorState("open") end
- 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?
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.
Step on, it will toggle the wall plate on, step off and it will toggle it off.
- spacecookie
- Posts: 26
- Joined: Tue Sep 18, 2012 4:23 pm
- Location: SW Ingalund, innit.
- Contact:
Re: how to hide wall text?
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!!
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?
"\n" without the quotes.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?
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.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!!
- spacecookie
- Posts: 26
- Joined: Tue Sep 18, 2012 4:23 pm
- Location: SW Ingalund, innit.
- Contact:
Re: how to hide wall text?
Thankyou very much.
