Go Back   Angband Forums > Angband > Development

Thread Tools Display Modes
Old April 29, 2016, 17:50   #1
PowerWyrm's Avatar
Join Date: Apr 2008
Posts: 2,666
PowerWyrm is on a distinguished road
PWMAngband: getting out of icky screens when disturbed

So your mage has learned a new spell and you want to macro it? Your warrior has found an artifact weapon and you want to inspect it? In Angband, no problem... you open the corresponding screen and do as you want for as long as you want.

Now you're playing PWMAngband... not in turn-based mode, but in real-time mode. You're in the dungeon, you have found a new item and you want to inspect it... so you press 'I' then choose the item and browse all its properties. Once you're done, you leave the screen... but to your horror it's not the dungeon map you're facing, but the tombstone screen. During the time you were looking at the object properties, something sneaked by and killed your character! How infuriating...

To fix that, I added an option to "get out of icky screens when disturbed". Basically, the disturb() function sends an "ESC" keypress to the keypress buffer if the option is set and the screen is icky. This was perfect a few versions ago... until everything in the game started to be coded as menus. And menus are now considered as icky screens.

Imagine a character chased by a group of orcs in a corridor. The player didn't macro phase door scrolls, and it's the only way to escape the threat. As usual, you start to press 'r', then the letter for phase door scrolls and hope the phase puts the character out of trouble. But with the option on... you don't get the chance to select your scrolls, you're kicked out of the menu before you have time to press the key! Basically, the option designed to help will do the opposite...

At this point, I have no idea how to fix the issue. I could simply throw in a hack on the "use" command to prevent the disturbing, since this would allow access to the basic items...
PWMAngband variant maintainer - check (or to learn more about this new variant!
PowerWyrm is offline   Reply With Quote
Old April 29, 2016, 18:33   #2
Join Date: Oct 2009
Posts: 191
emulord is on a distinguished road
I'd suggest to have exceptions for any "quick" menu. Using items and casting spells should be "quick".
Inspecting, Wielding, Macros, Dropping items, Gaining spells should be interrupted by a disturb.
emulord 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
PWMAngband 1.1.11 released PowerWyrm Variants 138 August 26, 2016 21:46
PWMAngband 1.1.10 released PowerWyrm Variants 2 April 28, 2014 00:10
PWMAngband 1.1.9 released PowerWyrm Variants 5 October 5, 2012 19:42
PWMAngband 1.1.8 released PowerWyrm Variants 3 November 27, 2011 19:19
[PWMAngband] New version 1.0.3 is out PowerWyrm Variants 0 April 4, 2008 20:46

All times are GMT +1. The time now is 09:54.

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