Can you Ready an attack with the trigger ‘enemy enters my reach’? If so, will you interrupt their movement on a hit?

Without using any feats, can a player with a reach weapon set that weapon to receive a ‘charge’ by the enemy, attacking them when they enter range? Or even a non-reach weapon? That is, can a player commit to using their attack action when an enemy crosses an arbitrary line with their movement? (Examples: Ready my glaive to attack when the orc gets 10′ away from me. Ready my shortbow to attack when the dragon enters 80′ from me. Ready my dagger in case the kobold comes adjacent.)

If this is possible, and the player’s attack hits, does it have any effect on the enemy’s remaining movement or other actions?

I think the answers are yes, and no, respectively.

Does casting Web interrupt the spell Sanctuary?

Does casting web interrupt the spell sanctuary on the caster? If yes, in which moment? Let us consider the case in which there is an enemy creature in the area covered by the web.

Maybe it can be useful underline a couple of things:

  1. When web is cast, no creatures are affected.
  2. A creature will be affected by the web if it is starting/going through its turn there and fails the saving throw.
  3. About sanctuary: if the warded creature makes an attack or casts a spell that affects an enemy creature, this spell ends.

Is it possible to interrupt spellcasting?

As this blog post suggests, there seems to be a hole in the D&D Basic rules. Maybe. The rules for readying an action state:

When the trigger occurs, you can either take your reaction right after the trigger finishes or ignore the trigger.

This seems to imply that it is impossible to interrupt a spell in 5e. If you set your trigger to be “I attack the Wizard when he casts a spell”, then you make the attack after the spell has been cast. Does this mean that spells can no longer be interrupted in combat like they could be in previous editions?

Can the reaction attack from the third benefit of the Sentinel feat interrupt the triggering attack by the enemy?

The third benefit of the Sentinel feat (PHB, p. 169-170) allows a melee attack when an enemy within 5 feet of you makes an attack against a target other than you (that doesn’t have the feat).

If you kill this enemy with your attack, does their triggering attack still go through?

Same question if say you knock him back or prone, etc.

Can you interrupt the standard action a wizard acquired via celerity with a celerity of your own?

The answers in the Question: A question about Celerity spells confused me…

Some people claim that immediate actions are resolved in the order they are called wich I agree, except in the case of celerity because it says you can interrupt with it:

The Celerity spell states:

(…)When you cast this spell, you can immediately take a standard action, as if you had readied an action. You can even interrupt another creature’s turn when you cast this spell(…)

Immediate actions:

Immediate Actions Much like a swift action , an immediate action consumes a very small amount of time, but represents a larger expenditure of effort and energy than a free action . However, unlike a swift action, an immediate action can be performed at any time — even if it’s not your turn. Casting feather fall is an immediate action, since the spell can be cast at any time. Using an immediate action on your turn is the same as using a swift action, and counts as your swift action for that turn. You cannot use another immediate action or a swift action until after your next turn if you have used an immediate action when it is not currently your turn (effectively, using an immediate action before your turn is equivalent to using your swift action for the coming turn). You also cannot use an immediate action if you are flat-footed .

So with this info let’s say a fighter wants to attack you, you have to call your celerity before the attack roll right? If a mage wants to cast a spell, you have to call your celerity before the spell benefits/roll etc. is called (to interrupt them of course), why can’t you do the same while the wizard using celerity (let’s say not on his turn), you could just interrupt his standard action (given by celerity) with celerity?

I’d like a RAW reference if possible (FAQ or pathfinder is acceptable if there’s nothing in 3.X)

Can you use your action to interrupt another player action that was played in the same round?

I think the title is pretty straight forward, I’ll just add some context.

I play in a game when everyone play the way we want at our own turn : saying to another player what he should do is forbidden. Your turn = your action.

I think this is pretty fun and it add a lot of stress in difficult fights since we can’t coordinate ourselve on runtime but, sometime, someone make a mistake that could be avoided in a roleplay way.

So, is it possible to use our own action to interrupt another player action that was played earlier in the same round ?

Thanks.

Generating NMI (non-maskable interrupt) in Mac VM running on VMware Fusion

I’m trying to (kernel-)debug my Mac 10.14.5 VM running on VMWare Fusion (v11.0.2) on my Mac 10.13.6 host. I’m following documentation/blogs in [1], [2].

I am trying to generate an NMI (non-maskable interrupt) in my VM, so that it triggers the VM to wait for the remote debugger connection. But looks like I cannot trigger the NMI. Pressing the given key combination (Command-Option-Control-Shift-Escape) isn’t working. Neither can I seem to simulate it via the below AppleScript:

-- 53 is escape tell application "System Events" to key code 53 using {command down, option down, control down, shift down} 

What has helped make a successful connection with the remote debugger is to manually generate a panic like so: (from [3])

sudo dtrace -w -n "BEGIN{ panic();}" 

But this is not good enough for me — the panic’d session is no longer recoverable, and my goal is to debug/understand regular functioning of the VM.

So my questions, finally:

  • How do I generate the NMI on my VM?
  • Alternatively, is there any other way to trigger a successful connection with the remote debugger such that I can debug regular functioning of the VM?

Thank you!

References:

  1. http://ddeville.me/2015/08/kernel-debugging-with-lldb-and-vmware-fusion
  2. https://developer.apple.com/library/archive/documentation/Darwin/Conceptual/KernelProgramming/build/build.html#//apple_ref/doc/uid/TP30000905-CH221-BABDGEGF
  3. https://www.wikihow.com/Force-a-Kernel-Panic-on-a-Mac

Dealing with interrupt and sleep

I was thinking that I could calmly Thread.sleep() on an interrupted thread. Sonar doesn’t think so, of course.

In some circumstates we should waiting for conditions, even if an interrupt occured. Is there anything wrong, for example, with the code below? Is there any better solution?

private void waitFinish() {     boolean wasInterrupted = false;     while (asyncProgressCounter.get() > 0) {         try {             Thread.sleep(100);         } catch (InterruptedException e) { // NOSONAR             wasInterrupted = true;         }     }     if (wasInterrupted) {         Thread.currentThread().interrupt();     }     onFinish(); } 

PIC16F84A 3switch interrupt, 8LEDchaser

So basically i’ve been given a project to work on a pic16f84a microcontroller,which has 3 switches of which are interrupts and 8 LEDs which are connected to Vcc instead of ground.. A starting code was given to me,the aim is to complete,or edit the lines of code already given and add 2 or more features to the code..such as the leds blinking or moving in a chaser sequence.. Please can anyone who’s really vast with pics/assembly help me out here with it..thanks