Alarm trap + stabbing + WJC


If it doesn't fit anywhere else, it belongs here. Also, come here if you just need to get hammered.

User avatar

Ziggurat Zagger

Posts: 4478

Joined: Wednesday, 23rd October 2013, 07:56

Post Wednesday, 28th February 2018, 10:22

Alarm trap + stabbing + WJC

So I just managed to stab Pikel even though I stepped (voluntarily) on an alarm trap at the same time (this was a test to see what happens, the level was almost fully cleared so I was not scared of the alarm trap). Even though the trap was activated first, I got the lunge and stab in before Pikel was alarmed. Bug or feature? (This is an OpVM of WJC.)
  Code:
A slave comes into view.
A slave comes into view.
Pikel the Slaver comes into view. He is wielding a whip of flaming.
A slave comes into view.
A slave comes into view.
You lunge at the slave.
The helpless slave fails to defend itself.
You spit the slave like a pig!!!
You kill the slave!
That felt strangely unrewarding.
You lunge at the slave.
The helpless slave fails to defend itself.
You spit the slave like a pig!!!
You kill the slave!
That felt strangely unrewarding.
Things that are here:
an animal skin; a human corpse
You found an alarm trap!
You see here an animal skin.
Really walk onto that alarm trap?
The alarm trap emits a blaring wail!
A sentinel's mark forms upon you.
You lunge at Pikel.
The helpless Pikel fails to defend himself.
You skewer Pikel like a kebab!!!
You kill Pikel!
The Council accepts your kill.
You feel your dexterity returning.
With Pikel's spell broken, the former slaves thank you for their freedom.
You start waiting.
The sentinel's mark upon you fades away.
DCSS: 97:...MfCj}SpNeBaEEGrFE{HaAKTrCK}DsFESpHu{FoArNaBe}
FeEE{HOIEMiAE}GrGlHuWrGnWrNaAKBaFi{MiDeMfDe}{DrAKTrAMGhEnGnWz}
{PaBeDjFi}OgAKPaCAGnCjOgCKMfAEAtCKSpCjDEEE{HOSu
Bloat: 17: RaRoPrPh{GuStGnCa}{ArEtZoNb}KiPaAnDrBXDBQOApDaMeAGBiOCNKAsFnFlUs{RoBoNeWi
User avatar

Pandemonium Purger

Posts: 1298

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

Location: Sydney, Australia

Post Wednesday, 28th February 2018, 10:36

Re: Alarm trap + stabbing + WJC

I think this happens because noises are batched and only propagated at certain points in time. There are some other weird causes, like being hit, activating your shield of the gong, THEN being put to sleep by a dream sheep, THEN being woken up by the noise.

For this message the author Patashu has received thanks: 2
Fingolfin, Sprucery

Dungeon Master

Posts: 388

Joined: Monday, 18th August 2014, 20:04

Post Wednesday, 28th February 2018, 18:48

Re: Alarm trap + stabbing + WJC

If I understand right, I think this isn't a bug given crawl's time system, even though the message ordering is confusing (whereas the gong thing is a bug). Lunge-attacks are all one turn: both the movement and the attack happen before the monster gets a chance to respond. Since monsters can't react on your turn, they shouldn't react to anything that happens during that turn until it is all over, even though a bunch can happen during that turn. The same thing is also true of walljump: it takes longer but monsters don't get a chance to respond until after you've landed, and it frontloads the extra damage. (So if you think you can two-shot something, walljump is better than making two individual normal attacks.)

One way to think of it is that crawl time in terms of actions is discrete/turn-based, not continuous, so even though the messages have to be ordered somehow within a turn, really the movement, attack, alarm trap triggering, and resulting noise/status all happen "at the same time", and the monster waking up happens at the next time unit.

At a technical level, yes, sounds are batched and propagated after your turn is all over.

For this message the author advil has received thanks: 2
Sprucery, ThreeInvisibleDucks
User avatar

Crypt Cleanser

Posts: 732

Joined: Monday, 24th April 2017, 11:46

Post Thursday, 1st March 2018, 13:44

Re: Alarm trap + stabbing + WJC

Into the same category falls the almost fail-safe teleport escape trick of high-piety Chei followers. When things go bad, reading a scroll and then moving to an adjacent tile triggers the teleport before the adjoining monsters get to deal their damage, although the whole procedure takes three turns.
Maɟaŋ

Return to Crazy Yiuf's Corner

Who is online

Users browsing this forum: No registered users and 82 guests

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