You are looking at a command called guard

guard {target}

This prevents future attacks to a living target or exit through a doorway target while you are alive.

- If the target is already in combat, you may guard them but it will only apply to further initiated attacks
- You and the target must be made of 'living' material and have some health, or the target must be an exit.
- The target must not be guarding anything
- The target must not already be guarded by anything else.
- The location must not be of material 'sanctuary'

If you want to kill a guarded object, you must kill the guard first.

Pushing a guard might allow you to then attack the target or get to the exit.

A guard at an exit does not prevent someone from entering from the other side.

When someone tries to pass through a guarded exit, the failure message includes a 'noneshallpass' reaction with target=doorway and second=guard.

Coders: click spawn then review the code for any of thje passive creature templates for a reaction example.


Code