Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old November 30, 2009, 17:15   #1
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,517
d_m is on a distinguished road
New command: (h) fires default ammo at nearest target

I added this command while testing the quiver and found it really nice. If people think there is too much "feature creep" I can take this command out, but I do think it does what one wants "most of the time." It's available in r1805.

The "default ammo" is the ammo in the lowest numbered slot of the quiver. This command won't fire ammo out of the inventory; if there is no acceptable ammo in the quiver, you'll get a message like "You have no ammunition in the quiver to fire." If there is no closest enemy, you'll be asked if you want to fire anyway (like if you use f on an out-of-range target).

Once one gets used to this feature, the next thing one tends to want is a way to distinguish the "in range" squares from the "out of range" squares visually.

Thoughts?

EDIT: I should say that I plan to update the documentation to include this command if the community ends up liking it. Otherwise I will just remove it again.
__________________
linux->xterm->screen->pmacs

Last edited by d_m; November 30, 2009 at 17:20.
d_m is offline   Reply With Quote
Old November 30, 2009, 17:29   #2
Atarlost
Swordsman
 
Join Date: Apr 2007
Posts: 441
Atarlost is on a distinguished road
Why not add this as a default keymap instead of a C level command?
__________________
One Ring to rule them all. One Ring to bind them.
One Ring to bring them all and in the darkness interrupt the movie.
Atarlost is offline   Reply With Quote
Old November 30, 2009, 18:42   #3
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,517
d_m is on a distinguished road
Quote:
Originally Posted by Atarlost View Post
Why not add this as a default keymap instead of a C level command?
The big advantage is that it prints many fewer messages. But it's a fair point.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old November 30, 2009, 18:48   #4
SaThaRiel
Adept
 
SaThaRiel's Avatar
 
Join Date: Nov 2009
Posts: 174
SaThaRiel is on a distinguished road
Sounds good - but i fear that i will end up in front of a wall running towards west
SaThaRiel is offline   Reply With Quote
Old November 30, 2009, 19:30   #5
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,079
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by d_m View Post
Once one gets used to this feature, the next thing one tends to want is a way to distinguish the "in range" squares from the "out of range" squares visually.
Someone else suggested this in another recent thread. Personally I think it's high time all the view_wibble_lite options were rationalised, and if there's enough interest I think a slightly different colour for in-range lit squares (and unlit, maybe?) would be good. I guess it's going to depend on the long-awaited 256-colour feature as well, as I don't think we have enough colours for all the lights otherwise:

never seen
remembered as dark
remembered as lit
in-LOS lit
in-LOS dark (not sure if these two are distinct depending on current options)
in-light-radius
in-range lit
in-range dark

... that's starting to encroach on monster colour territory.
Magnate is offline   Reply With Quote
Old November 30, 2009, 19:39   #6
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
What if rogue-like commands are enabled? (h) was already in use in that case (move left).
RogerN is offline   Reply With Quote
Old November 30, 2009, 19:45   #7
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,517
d_m is on a distinguished road
Quote:
Originally Posted by RogerN View Post
What if rogue-like commands are enabled? (h) was already in use in that case (move left).
That's a good point. Maybe I should use "x" instead? There aren't a ton of keys that aren't already taken!

I had forgotten that I needed to protect the rogue keyset.
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Old November 30, 2009, 20:05   #8
SaThaRiel
Adept
 
SaThaRiel's Avatar
 
Join Date: Nov 2009
Posts: 174
SaThaRiel is on a distinguished road
Quote:
Originally Posted by RogerN View Post
What if rogue-like commands are enabled? (h) was already in use in that case (move left).
Actually thats what i was trying to say
SaThaRiel is offline   Reply With Quote
Old November 30, 2009, 20:05   #9
RogerN
Swordsman
 
RogerN's Avatar
 
Join Date: Jul 2008
Posts: 308
RogerN is on a distinguished road
Quote:
That's a good point. Maybe I should use "x" instead? There aren't a ton of keys that aren't already taken!
Heh, strike two... (x) is the look command in the rogue-like keyset. You may need to use different keys depending in the keyset.
RogerN is offline   Reply With Quote
Old November 30, 2009, 20:26   #10
d_m
Angband Devteam member
 
d_m's Avatar
 
Join Date: Aug 2008
Location: Philadelphia, PA, USA
Age: 43
Posts: 1,517
d_m is on a distinguished road
Quote:
Originally Posted by RogerN View Post
Heh, strike two... (x) is the look command in the rogue-like keyset. You may need to use different keys depending in the keyset.
Clearly I need to read up in the code on how the keysets work. You're right that the roguelike set might need to use a different key. What key(s) would you recommend for this?
__________________
linux->xterm->screen->pmacs
d_m is offline   Reply With Quote
Reply


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
slings, bows and ammo fizzix Vanilla 25 December 1, 2009 06:18
Target in range indicator? ChodTheWacko Vanilla 1 November 28, 2009 16:14
Artefact ammo miyazaki Vanilla 18 October 29, 2009 03:23
Options that you think should be on (off) by default PaulBlay Variants 13 June 18, 2009 03:12
Special macro command - interrupt for direction / target PaulBlay Development 0 February 25, 2009 11:24


All times are GMT +1. The time now is 14:02.


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