QUestion about Sconces

Questions about how to create your own dungeons and replacement graphics and sounds.

Moderator: George Gilbert

Forum rules
Please read the Forum rules and policies before posting. You may Image to help finance the hosting costs of this forum.
Post Reply
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

QUestion about Sconces

Post by Chaos Awakes »

I just can't figure out the logic behind sconces...

Can somebody please tell me how to create a sconce on the wall which opens a movable wall when there is a torch in it and closes the movable wall when the torch is taken out?

By the way, I am using the RTC Editor by George, I don't want lots of complex code to type into the text file - just how to do it in the editor.

Cheers :)
User avatar
Ameena
Wordweaver, Murafu Maker
Posts: 7552
Joined: Mon Mar 24, 2003 6:25 pm
Location: Here, where I am sitting!
Contact:

Post by Ameena »

Okay try this. I'll try and explain it clearly and go over every little point :).
You want to put a sconce on the wall and have it so that when you put a torch in, a wall opens.
First, place the movable wall (FLOORITEM_WALL_MOVABLE) where you would like it to be. By default the setting for this is "visible" so you don't need to do anything more to this object.
Right-click a wall section and select "Edit". Add a new item - WALLITEM_SCONCE. Set the position of it on the wall (so it's facing out into the corridor or room or whatever.
Tick the box reading "Item is a trigger?".
The bit immediately below this tick-box will say "Operated by" and then a box containing the word NULL. To the right of this box is a small square box with three dots in it. Click this and find WEAPON_TORCH, or one of the others if you want it to be a torch which has been used a bit. You can only set one item as the trigger item so umm make sure someone knows they're gonna need a torch at that bit or something hehe.
Once you've selected your torch, the next section below that is the action performed by the trigger. You want it to switch the movable wall from "visible" to "invisible" so select "Toggle" here.
Give it a sound if you like, like a click or something. Optional.
The next four tick boxes are also optional - "Destroy Item" will destroy the torch when it is placed. "Disable Self" means that once this trigger has been used (ie torch placed and wall opened), it cannot be triggered again by removing and replacing the torch. "Constant Weight" means that the wall only stays open while the torch is there, and "Alternate State" ermm I think changes the trigger to its alternate state (if it has one), but I've never used this particular tick box so I'm not sure. For the purposes of what you want to do in your above post, you will only want to tick the "Constant Weight" box.
Next the targets. By the topmost target in the list click the "A" button (Add) and find the square on the mini-map that comes up which contains your movable wall. Double click this square. As the movable wall is the only thing on this square it will of course be auto-selected so just click the "OK" button.
Then click the "OK" button to close that window and you should be done - when a torch (of the charge you set in the trigger thing) is placed in that sconce, the movable wall will open. This is exactly the same procedure you follow when setting any such trigger or whatever.
I hope that's useful. I hope it works. I hop someone else hasn't jumped in first and done a quicker, better reply than me while I was typing this ;). And I've never used a sconce in a dungeon so I don't know if there's any reason the above won't work. Unless they're bugged, it should do, however :).
______________________________________________
Ameena, self-declared Wordweaver, Beastmaker, Thoughtbringer, and great smegger of dungeon editing!
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

I know you didn't want any complicated code, but you could have a look at the CSB.txt file and copy and paste out the code that handles the sconce in the starting room - that does exactly what you're looking for.
Chaos Awakes
Artisan
Posts: 187
Joined: Sat Jan 22, 2005 2:50 pm
Location: Ipswich, UK

Post by Chaos Awakes »

Thanks All,

I must admit, George, I was confused by the sconce in the first room. It appears to operate as I require, but when the CSB dungeon is loaded into the editor it just appears as a sconce "operated by mouse".

Does the editor show things wrongly when it doesn't know how to display what is contained in the text file? And if so, why doesn't it trash the text file when it comes to writing out things it doesn't understand?
User avatar
George Gilbert
Dungeon Master
Posts: 3022
Joined: Mon Sep 25, 2000 11:04 am
Location: London, England
Contact:

Post by George Gilbert »

I can see the source of confusion. Sconces are a special case and even when they say opby mouse, they really mean opby torch.

For what it's worth - I don't like it either. Should really do something about that!
Post Reply