Author Topic: Room Key  (Read 1261 times)

Purist

  • Red Academy
  • Dark Power
  • ******
  • Posts: 2277
Room Key
« on: November 04, 2017, 10:18:31 AM »
I suggest changing the way the inn room key disappears.

Option 1
Instead of disappearing as soon as you step out of the room, make it so that it disappears as soon as you in fact leave the building itself. Sometimes people may want to go upstairs, change clothes and whatnot, changing would let it be more natural and fluid, instead of the current having to speak to the NPC and getting that unnecessary text wall.

Option 2
Is it possible to give a key the "uses per day" property? If so, give keys more than a single usage, like 5 times, 10 times, depending on the area.

JaneDoe79

  • Outlander
  • **
  • Posts: 53
  • Not today.
    • All PotM portraits on Steam
Re: Room Key
« Reply #1 on: January 28, 2020, 08:44:46 PM »
Bump! This is such a good suggestion.

Also, option 3: Make the item just disappear from inventory within 24 hours? Realistically, you rent a room for a day, and you can return to it multiple times a day with the same key.

Also it would be good if we could have some sort of mechanism to prevent people opening inn doors behind which there are people, somehow?

Leezil

  • Undead Master
  • ****
  • Posts: 312
Re: Room Key
« Reply #2 on: January 28, 2020, 09:10:46 PM »
+1, it's very awkward that it disappears immediately
Sasha Sorokina: Devoted to the Morninglord
Portrait - link

APorg

  • Dark Power
  • ******
  • Posts: 5336
  • Fanatic Xenophile
Re: Room Key
« Reply #3 on: January 28, 2020, 11:19:11 PM »
It's a good suggestion!

In the mean time, if anyone gets stuck in an inn room because their key disappeared and the door locked, here's a tip to escape:

Press R to go to the rest menu, then choose to teleport to the OOC room; once there, teleport back.  The door will be unlocked.
“Moral wounds have this peculiarity - they may be hidden, but they never close; always painful, always ready to bleed when touched, they remain fresh and open in the heart.”
― Alexandre Dumas, The Count of Monte Cristo

EO

  • Assistant Head DM/Developer
  • Head DMs
  • Dark Power
  • ******
  • Posts: 22404
  • The one and only, the one everyone wants to be!
Re: Room Key
« Reply #4 on: January 30, 2020, 09:26:21 AM »
There are no plans to change that; the suggested mechanisms would just create more lag and be less efficient.

Glowfire

  • Undead Slayer
  • ***
  • Posts: 227
Re: Room Key
« Reply #5 on: January 30, 2020, 02:05:37 PM »
Option 1
Instead of disappearing as soon as you step out of the room, make it so that it disappears as soon as you in fact leave the building itself. Sometimes people may want to go upstairs, change clothes and whatnot, changing would let it be more natural and fluid, instead of the current having to speak to the NPC and getting that unnecessary text wall.
Wouldn't that be the same as exists now except the room key is auto-magically removed when leaving the building rather than the room? I'm not quite sure how that would have a greater impact and be less efficient but perhaps I'm overlooking something. I'd much prefer option 1 as I've accidentally lost keys in various situations.
Liss Santraeger - "Life is a song. Don't be scared to sing along."
Eglantine Desrosiers - "A rose is still a rose, even if it has only one petal left."

LivingWasteland

  • Dark Lord
  • *****
  • Posts: 680
  • LOOT B4 LUV - TIEFLING LYFE
Re: Room Key
« Reply #6 on: January 30, 2020, 02:53:45 PM »
Also confused as to how it would much up the works, as it just changes the script trigger from inn room doorways to entrance doorway.

Purist

  • Red Academy
  • Dark Power
  • ******
  • Posts: 2277
Re: Room Key
« Reply #7 on: January 30, 2020, 03:17:28 PM »
Because there are less people having a script check their inventories when they leave specific rooms than the much more higher number of people entering and exiting a building like the Lady's Rest, which gets a lot of transit. That being said, the Enhanced Edition is rumored to help and constantly make progress to stability and FPS. Maybe it would be worth the try, but I'm no developer...

EO

  • Assistant Head DM/Developer
  • Head DMs
  • Dark Power
  • ******
  • Posts: 22404
  • The one and only, the one everyone wants to be!
Re: Room Key
« Reply #8 on: January 30, 2020, 03:36:06 PM »
Also confused as to how it would much up the works, as it just changes the script trigger from inn room doorways to entrance doorway.

Because we only place inn room triggers in inns, so the check only happens in limited circumstances, whereas the area exit scripts are the same across the module. You'd need to find a way to efficiently check if the area contains inn room triggers (ie: parsing through the area to see if it does), then if so, find the key tag (either based on the inn room trigger or doors), remove said key (ie: parse through every character's inventory looking for a key). Of course people would not want to lose their key if they hadn't entered the room itself, so you add another check for a variable on the PC that you need to set when the PC enters the room (though that can bug out with crashes or resets). All these checks do add up performance-wise.
« Last Edit: January 30, 2020, 03:40:05 PM by EO »