Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old January 30, 2020, 03:45   #1
Join Date: Dec 2019
Location: Mexico, undisclosed location
Posts: 79
eastwind is on a distinguished road
locked doors?

I was messing around with the town a little bit, and I wanted to add some extra non-shop buildings, with doors, that the player couldn't open. Just for color, to make it look like there were some homes in the town or whatever.

How do I lock a door against the player? I called square_set_door_lock() and gave it a high power, and stepped through the code for that routine and it did it's thing. The lock doesn't show up for the player (because that's the way the trap is defined) but it also doesn't stop the player from opening the door.

Are doors now lockable only against monsters?

Also, I thought I remembered seeing a shockbolt tile of a door with a chain and lock across it, and I can't find that tile anymore either.

Time to punt on this? I can always make the extra buildings doorless, but that's less flavorful.
eastwind is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doors Mark Vanilla 16 February 15, 2014 21:45
secret doors quarague Vanilla 31 June 3, 2013 10:01
Doors of Doom GrimBob Development 10 September 5, 2011 01:23
Angband doors Timo Pietilš Vanilla 24 September 15, 2010 17:25
[S] [spoiler] Locked chest? Fuma Variants 6 August 18, 2007 21:47

All times are GMT +1. The time now is 03:45.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.