setgroup script command is used to add or remove a group for an entity. Entities with at least one shared group will not damage each other using (some?) area damages and spells. The
sendevent -g command can use groups to limit the entities receiving the event and the
if isgroup and
if !isgroup commands can be used to check if another entity is part of a group. Shop containers can be set to only accept items of certain groups using
setgroup [-r] <group*>
Context: Any Entity
-r: Remove the entity from a group instead of adding it
||Name of the group to add or remove|
Entities in the
demon group are affected by the Control demon () spell.
Collisions involving entities in the
door group will cause the
collide_door event to be sent to both the door and the colliding entity.