Quick FR: Make failing to cast a spell not cost a turn


Although the central place for design discussion is ##crawl-dev on freenode, some may find it helpful to discuss requests and suggestions here first.

Abyss Ambulator

Posts: 1217

Joined: Sunday, 14th April 2013, 04:01

Post Tuesday, 8th July 2014, 16:51

Quick FR: Make failing to cast a spell not cost a turn

It drives me nuts that when you reflexively cast a spell with no valid targets, it uses a turn. The biggest case of this is while attacking an enemy that just turned invisible- if you are reflexively using the main attack spell, it just gives them free hits. Tabbing with no targets in view doesn't use turns, why should attempting to cast a spell with no targets do so?
Three wins: Gargoyle Earth Elementalist of Ash, Ogre Fighter of Ru, Deep Dwarf Fighter of Makhleb (0.16 bugbuild :( )
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Tuesday, 8th July 2014, 17:03

Re: Quick FR: Make failing to cast a spell not cost a turn

TeshiAlair wrote:It drives me nuts that when you reflexively cast a spell with no valid targets, it uses a turn. The biggest case of this is while attacking an enemy that just turned invisible- if you are reflexively using the main attack spell, it just gives them free hits. Tabbing with no targets in view doesn't use turns, why should attempting to cast a spell with no targets do so?


What keys are you pressing exactly (and what spell is it)? Cancelling a spell doesn't cost a turn.

Abyss Ambulator

Posts: 1217

Joined: Sunday, 14th April 2013, 04:01

Post Tuesday, 8th July 2014, 20:27

Re: Quick FR: Make failing to cast a spell not cost a turn

I was using shock on Sigmund.

za. to zap him with autotarget. He goes invisible. za. gives the message "no acceptable targets," and then he hits me with a scythe.
Three wins: Gargoyle Earth Elementalist of Ash, Ogre Fighter of Ru, Deep Dwarf Fighter of Makhleb (0.16 bugbuild :( )

Tomb Titivator

Posts: 853

Joined: Thursday, 29th August 2013, 18:39

Post Tuesday, 8th July 2014, 20:29

Re: Quick FR: Make failing to cast a spell not cost a turn

TeshiAlair wrote:I was using shock on Sigmund.

za. to zap him with autotarget. He goes invisible. za. gives the message "no acceptable targets," and then he hits me with a scythe.


Ahh, you are hitting za, getting the no targets, and then waiting a turn with the '.'. Try using zaf instead. That definitely seems like a hazard of using the same button for targetting and waiting.

For this message the author johlstei has received thanks: 3
Arrhythmia, neil, tedric

Tomb Titivator

Posts: 909

Joined: Thursday, 3rd January 2013, 20:32

Post Tuesday, 8th July 2014, 21:01

Re: Quick FR: Make failing to cast a spell not cost a turn

yeah i do that a lot, on Dvorak keyboard layout . is less of a stretch than f so i have a hard time retraining myself

maybe this is an argument for using macros
Wins (Does not include my GrEE^Veh 15-runer...stupid experimental branch)

Crypt Cleanser

Posts: 747

Joined: Friday, 6th January 2012, 12:30

Post Tuesday, 8th July 2014, 21:02

Re: Quick FR: Make failing to cast a spell not cost a turn

Somewhat related fr: please prevent certain spells and things like blowguns from targeting the player when no targets are in range. At least add a prompt. There used to be a prompt so why is it gone now? For example I'm firing needles at a sky beast, it goes invisible, and the next needle hits my character with no warning.

Ziggurat Zagger

Posts: 8786

Joined: Sunday, 5th May 2013, 08:25

Post Tuesday, 8th July 2014, 21:11

Re: Quick FR: Make failing to cast a spell not cost a turn

I still get a prompt in 0.15-a0-1949-g3bc2141.
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Tuesday, 8th July 2014, 21:13

Re: Quick FR: Make failing to cast a spell not cost a turn

Wahaha wrote:Somewhat related fr: please prevent certain spells and things like blowguns from targeting the player when no targets are in range. At least add a prompt. There used to be a prompt so why is it gone now? For example I'm firing needles at a sky beast, it goes invisible, and the next needle hits my character with no warning.


It should prompt you by default. This is controlled by the "allow_self_target" option; perhaps you changed that for some spell or another?

Tomb Titivator

Posts: 853

Joined: Thursday, 29th August 2013, 18:39

Post Tuesday, 8th July 2014, 21:20

Re: Quick FR: Make failing to cast a spell not cost a turn

tedric wrote:yeah i do that a lot, on Dvorak keyboard layout . is less of a stretch than f so i have a hard time retraining myself

maybe this is an argument for using macros


Ahh, I can't imagine playing on dvorak. Even if I managed to switch for typing, I'd probably just make my own new layout of crawl buttons, rather than relying on the current ones which assume qwerty. At the very least I'd get yourself a new button to be "fire", and you can make 'f' whatever that used to be.

Crypt Cleanser

Posts: 747

Joined: Friday, 6th January 2012, 12:30

Post Tuesday, 8th July 2014, 21:22

Re: Quick FR: Make failing to cast a spell not cost a turn

Yes that was the problem, thanks. Now I remember changing it to be able to self-zap wands for the purpose of identification. I think it used to be impossible to self-zap hostile wands without changing this setting or something like that. Thankfully not necessary anymore.
User avatar

Dungeon Master

Posts: 502

Joined: Wednesday, 7th March 2012, 13:25

Location: Lexington, KY, US

Post Tuesday, 8th July 2014, 22:21

Re: Quick FR: Make failing to cast a spell not cost a turn

tedric wrote:yeah i do that a lot, on Dvorak keyboard layout . is less of a stretch than f so i have a hard time retraining myself

maybe this is an argument for using macros


You might try using Z rather than z; it doesn't auto-cancel when there are no targets. On the other hand, Za. (or Zaf or whatever) with no enemies would zap yourself. On the third hand, you would be prompted about the self-target.

Tomb Titivator

Posts: 909

Joined: Thursday, 3rd January 2013, 20:32

Post Wednesday, 9th July 2014, 07:32

Re: Quick FR: Make failing to cast a spell not cost a turn

Actually I quite like playing on Dvorak. Granted it took a few weeks to internalize the movement keys, as they're spread all across the board, but once I acclimated I realized I like it better that way. I've never liked the way 8-directional movement maps to keys that aren't in a perfect grid like the numpad (I used to play on a small laptop), and having the controls spread out means I use both hands pretty much constantly, which makes me feel more fully attuned to the game in a weird but pleasant way. If people can't see the screen, they usually assume I'm typing. :ugeek:
Wins (Does not include my GrEE^Veh 15-runer...stupid experimental branch)

Ziggurat Zagger

Posts: 4055

Joined: Tuesday, 10th January 2012, 19:49

Post Wednesday, 9th July 2014, 07:36

Re: Quick FR: Make failing to cast a spell not cost a turn

using enter or space is identical to using "f" for targeting (and both are even safer than using f in the case described here)
you can also use "!" which is basically always at least as good as "f"

For this message the author crate has received thanks: 2
duvessa, tedric
User avatar

Pandemonium Purger

Posts: 1298

Joined: Wednesday, 11th April 2012, 02:42

Location: Sydney, Australia

Post Wednesday, 9th July 2014, 08:51

Re: Quick FR: Make failing to cast a spell not cost a turn

Just copy and paste this into your rc and live happily ever after

  Code:
# Set Alias'
stop := runrest_stop_message
ignore := runrest_ignore_message

# Jiyva Messages
: if you.god() == "Jiyva" then
   ignore += Jiyva gurgles merrily
   ignore += Jiyva appreciates your sacrifice
   ignore += Jiyva says: Divide and consume
   ignore += You hear.*splatter
: end

# Annoyances  -- Don't stop autotravel for these events
ignore += You feel.*sick
ignore += disappears in a puff of smoke
ignore += engulfed in a cloud of smoke
ignore += standing in the rain
ignore += engulfed in white fluffiness
ignore += safely over a trap
ignore += A.*toadstool withers and dies
ignore += toadstools? grow
ignore += You walk carefully through the
ignore += grinding sound
ignore += contamination has completely
ignore += in your inventory.*rotted away

# Bad things -- Stop autotravel for these events
stop += found a zot trap
stop += Wait a moment
stop += You fall through a shaft
stop += An alarm trap emits a blaring wail
stop += (blundered into a|invokes the power of) Zot
stop += hear a soft click
stop += A huge blade swings out and slices into you[^r]
stop += sense of stasis
stop += flesh start
stop += (starving|devoid of blood)
stop += wrath finds you
stop += lose consciousness

# Expiring effects -- Stop autotravel for spells beginning to expire (to allow recasts)
# Haste
stop += You feel yourself slow down
# Flight
stop += You are starting to lose your buoyancy
stop += You lose control over your flight
# Necromutation
stop += Your transformation is almost over
stop += You have a feeling this form
stop += You feel yourself come back to life
# Control Teleport
stop += uncertain
# Deaths Door
stop += time is quickly running out
stop += life is in your own
# Enslavement
stop += is no longer charmed
# Shroud
stop += shroud begins to fray
stop += shroud unravels
# Swiftness
stop += start to feel a little slower
# Repel/Deflect
stop += missiles spell is about to expire

# Ghouls
: if you.race() == "Ghoul" then
   stop += smell.*(rott(ing|en)|decay)
   stop += something tasty in your inventory
: end

# Good things - Bad things wearing off
stop += Your magical contamination has completely faded away
stop += You are no longer firmly anchored in space

#ignore += pray:
#ignore += friend_spell:
#ignore += friend_enchant:
#ignore += friend_action:
#ignore += sound:

#################
# Force Prompts #
#################

force_more_message += Something interferes with your magic
force_more_message += shining eye come
force_more_message += shining eyes come
force_more_message += giant spore come
force_more_message += giant spores come
force_more_message += giant spore is too close
force_more_message += filled with an inner flame
force_more_message += pager goes off
force_more_message += Found a glowing drain
force_more_message += Found a sand-covered staircase
force_more_message += Found a flagged portal
force_more_message += Found a crumbling entrance
force_more_message += Found a flickering gateway
force_more_message += Found a gateway to a bazaar
force_more_message += Found a magical portal
force_more_message += Found a frozen archway
force_more_message += Found a dark tunnel
force_more_message += Found a gateway leading out of the Abyss
force_more_message += Found an abyssal rune
force_more_message += zaps a wand

# Set Alias
more := force_more_message

# Important dungeon features
more += interdimensional caravan
more += distant snort
more += Found a gateway leading out of the Abyss
more += wave of frost
more += roar of battle
more += There is an entrance to a bailey on this level
more += oppresive heat
more += tolling of a bell
more += sound of rushing water
more += Found a frozen archway

: if you.god() == "Ashenzari" then
   more += You have a vision of.*gates?
: end

more += Done waiting
more += (The|Your).*falls away!
more += acid corrodes
more += catch(es)? fire
more += freezes? and shatters?
more += can cast Torment
more += MASSIVE DAMAGE

# Translocations
more += You.*teleport [^f]
more += You blink
more += Your surroundings suddenly seem different
more += You feel strangely stable

# Wands/Potions/evokes used by monsters
more += zaps a (wand|rod)
more += drinks a potion
more += evokes.*(amulet|ring)

# Abyssal Rune
more += Found .* abyssal rune of Zot

# Dangerous Monsters
more += Giant eyeball.*comes? into view
more += Lich.*comes? into view
more += The blast of calcifying dust hits you
more += You are engulfed in calcifying dust
more += begins to recite a word of recall
more += You are engulfed in dark miasma
more += swoops through the air toward you
more += orange crystal statue.*comes? into view
more += The ghost moth stares at you
more += You feel you are being watched by something
more += Its appearance distorts for a moment

# Interrupts for unexpected situations
more += The.*shudders
more += You feel a genetic drift
more += You don't.* that spell
more += You fail to use your ability
more += You miscast
more += You cannot teleport right now
more += appears in a shower of sparks
more += It doesn't seem very happy
more += Some monsters swap places
more += This wand has no charges
more += You are held in a net
more += You have disarmed
more += You can't gag anything down
more += You don't have any such object
more += do not work when you're silenced
more += You cannot cast spells when silenced
more += The barbed spikes dig painfully into your body as you move
more += The water nymph flows with the water
more += You can't unwield
more += You don't have enough magic
more += You haven't enough magic at the moment
more += You feel your control is inadequate
more += You feel strangely unstable
more += Your guardian golem overheats
more += You have finished your manual
more += You can't take your gloves off to put on a ring
more += You feel your power leaking away
more += You feel your power drain away
more += Space warps horribly around you
more += Your damage is reflected back at you
more += dark mirror aura disappears
more += Space bends around you
more += The.*grabs you[^r]
more += Your attempt to break free
more += The.*is a mimic
more += The.*offers itself to Yredelemnul
more += You are blown backwards!
more += Agitated ravens fly out from beneath the
more += goes berserk
more += are blown away by the wind
more += Your magical defenses are stripped away
more += appears out of thin air
more += You feel less protected from missiles
more += Your body is wracked with pain
more += surroundings become eerily quiet
more += The pull of.*song draws you forwards
more += comes (up|down) the stairs
more += The jumping spider pounces on you [^but]
more += Wisps of shadow swirl around
more += begins to accept its allies' injuries
more += doors? slams? shut
more += The vault warden activates a sealing rune
more += Miasma billows from the
more += You feel.*firmly anchored in space
more += You stumble into the trap
more += You have no appropriate body parts free
more += drinks a potion
more += You stop (a|de)scending the stairs
more += The walls disappear
more += too hungry
more += The spell fizzles
more += Your body armour is too heavy
more += stands defiantly in death's doorway
more += is no longer invulnerable
more += This potion can/'t work under stasis
more += splits in two
more += Kikubaaqudgha will now enhance your necromancy
more += The Shining One will now bless
more += You cannot cast spells while unable to breathe
more += Your fit of retching subsides
more += You are wearing\:
more += The walls and floor vibrate strangely for a moment
more += You feel your flesh start to rot away
more += Mara shimmers and seems to become three
more += You sense the presence of something unfriendly

# Interrupts for Bad things
more += Your surroundings flicker
more += You feel yourself grow more vulnerable to poison
more += You feel less vulnerable to poison
more += The poison in your body grows stronger
more += burn any scroll you tried to read
more += Your icy (shield|armour) evaporates
more += Your.*(shield|armour) melts away
more += sense of stasis
more += Your amulet of stasis
more += You smell decay. (^Yuck!)
more += The writing blurs in front of your eyes
more += You fall through a shaft
more += A huge blade swings out and slices into you
more += your magic stops regenerating
more += (blundered into a|invokes the power of) Zot
more += Ouch! That really hurt!
more += dispelling energy hits you
more += You convulse
more += You feel drained
more += You are (blasted|electrocuted)
more += You feel uncertain
more += (You are|You're) poisoned
more += (You are|You're) more poisoned
more += (You are|You're) lethally poisoned
more += (You are|You're) confused
more += (You are|You're) more confused
more += (You are|You're) too confused
more += (starving|devoid of blood)
more += You need to eat something NOW
more += You are engulfed in mutagenic fog
more += wrath finds you
more += lose consciousness
more += You are too injured to fight blindly
more += Green shoots are pushing up through the earth
more += your.*devoured
more += You are drained
more += shoots a curare
more += You feel your attacks grow feeble
more += You are blown backwards by the freezing wind
more += You are knocked back by the lance of force
more += You are knocked back by the blast of cold
more += You are knocked back by the great wave of water
more += You stumble backwards
more += You are trampled
more += Okawaru sends forces against you
more += You are slowing down.
more += You flicker for a moment.
more += You flicker back
more += The.*is unaffected
more += You (become entangled|are caught) in (a|the) (web|net)
more += The arrow of dispersal hits you[^r]
more += The forest starts to sway and rumble
more += Vines fly forth from the trees!
more += A tree reaches out and hits you!
more += You are hit by a branch
more += The.*answers the.*call
more += The air twists around and violently strikes you in flight
more += The.*engulfs you in water
more += The power of Zot is invoked against you
more += The acid corrodes your
more += You feel (dopey|clumsy|weak)
more += The air around.*erupts in flames
more += Terrible wounds (open|spread)
more += You are encased in ice
more += Your.*suddenly stops moving
more += You suddenly stop moving
more += Your surroundings seem slightly different
more += Your resistance to elements expires
more += You feel a (horrible|terrible) chill
more += You are burned terribly
more += You are mesmerised
more += The barbed spikes become lodged in your body
more += A sentinel's mark forms upon you
more += The silver sears you
more += [^Your].*seems to speed up
more += steals.*your
more += infuriates you
more += [^Your].*reflects
more += You cannot afford.*fee
more += You can move again
more += You slip out of the net
more += You.*and break free
more += You feel your flesh rotting away
more += You feel your translocation being delayed
more += There is a sealed passage
more += Something appears in a flash of light
more += You feel your rage building
more += You turn into a fleshy mushroom

# Interrupts for Hell effects
more += You will not leave this place
more += Die\, mortal
more += We do not forgive those who trespass against us
more += Trespassers are not welcome here
more += You do not belong in this place
more += Leave now\, before it is too late
more += We have you now
more += You smell brimstone
more += Brimstone rains from above
more += You feel lost and a long\, long way from home
more += You shiver with fear
more += You feel a terrible foreboding
more += Something frightening happens
more += You sense an ancient evil watching you
more += You suddenly feel all small and vulnerable
more += You sense a hostile presence
more += A gut-wrenching scream fills the air
more += You hear words spoken in a strange and terrible language
more += You hear diabolical laughter

# Interrupts for Expiring spell effects
more += You feel yourself slow down
more += You are starting to lose your buoyancy
more += Your hearing returns
more += Your transformation is almost over
more += Your skin feels tender
more += You have a feeling this form
more += You feel yourself come back to life
more += time is quickly running out
more += life is in your own
more += is no longer charmed
more += shroud falls apart
more += Your extra speed is starting to run out
more += Your skin stops crawling
more += You are firmly grounded in the material plane once more

# Uniques
more += 27-headed.*(comes? into view|opens the)
more += Agnes.*(comes? into view|opens the)
more += Aizul.*(comes? into view|opens the)
more += Antaeus.*(comes? into view|opens the)
more += Arachne.*(comes? into view|opens the)
more += Asmodeus.*(comes? into view|opens the)
more += Asterion.*(comes? into view|opens the)
more += Azrael.*(comes? into view|opens the)
more += Blork the orc.*(comes? into view|opens the)
more += Boris.*(comes? into view|opens the)
more += Cerebov.*(comes? into view|opens the)
more += Crazy Yiuf.*(comes? into view|opens the)
more += Dispater.*(comes? into view|opens the)
more += Dissolution.*(comes? into view|opens the)
more += Donald.*(comes? into view|opens the)
more += Dowan.*(comes? into view|opens the)
more += Duvessa.*(comes? into view|opens the)
more += Edmund.*(comes? into view|opens the)
more += Ereshkigal.*(comes? into view|opens the)
more += Erica.*(comes? into view|opens the)
more += Erolcha.*(comes? into view|opens the)
more += Eustachio.*(comes? into view|opens the)
more += Fannar.*(comes? into view|opens the)
more += Frances.*(comes? into view|opens the)
more += Francis.*(comes? into view|opens the)
more += Frederick.*(comes? into view|opens the)
more += Gastronok.*(comes? into view|opens the)
more += Geryon.*(comes? into view|opens the)
more += Gloorx Vloq.*(comes? into view|opens the)
more += Grinder.*(comes? into view|opens the)
more += Grum.*(comes? into view|opens the)
more += Harold.*(comes? into view|opens the)
more += Ignacio.*(comes? into view|opens the)
more += Ijyb.*(comes? into view|opens the)
more += Ilsuiw.*(comes? into view|opens the)
more += Jessica.*(comes? into view|opens the)
more += Jory.*(comes? into view|opens the)
more += Joseph.*(comes? into view|opens the)
more += Josephine.*(comes? into view|opens the)
more += Jozef.*(comes? into view|opens the)
more += Khufu.*(comes? into view|opens the)
more += Kirke.*(comes? into view|opens the)
more += Lamia.*(comes? into view|opens the)
more += Lom Lobon.*(comes? into view|opens the)
more += Louise.*(comes? into view|opens the)
more += Mara.*(comes? into view|opens the)
more += Margery.*(comes? into view|opens the)
more += Maud.*(comes? into view|opens the)
more += Maurice.*(comes? into view|opens the)
more += Menkaure.*(comes? into view|opens the)
more += Mennas.*(comes? into view|opens the)
more += Mnoleg.*(comes? into view|opens the)
more += Murray.*(comes? into view|opens the)
more += Natasha.*(comes? into view|opens the)
more += Nergalle.*(comes? into view|opens the)
more += Nessos.*(comes? into view|opens the)
more += Nikola.*(comes? into view|opens the)
more += Norris.*(comes? into view|opens the)
more += Pikel.*(comes? into view|opens the)
more += Polyphemus.*(comes? into view|opens the)
more += Prince Ribbit.*(comes? into view|opens the)
more += Psyche.*(comes? into view|opens the)
more += Purgy.*(comes? into view|opens the)
more += Roxanne.*(comes? into view|opens the)
more += Rupert.*(comes? into view|opens the)
more += Saint Roka.*(comes? into view|opens the)
more += Sigmund.*(comes? into view|opens the)
more += Snorg.*(comes? into view|opens the)
more += Sojobo.*(comes? into view|opens the)
more += Sonja.*(comes? into view|opens the)
more += Terence.*(comes? into view|opens the)
more += The Lernaean hydra.*(comes? into view|opens the)
more += The royal jelly.*(comes? into view|opens the)
more += The Serpent of Hell.*(comes? into view|opens the)
more += Tiamat.*(comes? into view|opens the)
more += Urug.*(comes? into view|opens the)
more += Vashnia.*(comes? into view|opens the)
more += Wiglaf.*(comes? into view|opens the)
more += Xtahua.*(comes? into view|opens the)
more += 's ghost.*(comes? into view|opens the)

# Others
more += You have reached level
more += Your scales start
more += You can now
more += Your? can no longer
more += The rod doesn't have enough magic points
more += You feel monstrous
more += Jiyva alters your body
: if you.god() == "Xom" then
   more += god:
: end

Return to Game Design Discussion

Who is online

Users browsing this forum: No registered users and 54 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.