Voice Loudness (Entity Condition Type)

Compares how loudly the entity is currently talking.

Compares the entity’s current speaking loudness, on a 0100 scale, against a value.

Type ID: apoli:voice_loudness

Fields

FieldTypeDefaultPurpose
comparisonComparison>=How to compare.
compare_toInteger1The value to compare against, 0100.

The default of >= 1 is effectively “is making any sound at all”.

Loudness is approximated from the size of the encoded voice packet - no audio is decoded. It is cheap but coarse: reliable for “loud vs. quiet”, not for precise volume. Pick thresholds by testing rather than by expecting decibels.

Example

{
   "type":"apoli:action_on_speak",
   "entity_action":{
      "type":"apoli:area_of_effect",
      "radius":6.0,
      "bientity_action":{
         "type":"apoli:damage",
         "amount":4.0
      }
   },
   "condition":{
      "type":"apoli:voice_loudness",
      "comparison":">=",
      "compare_to":70
   }
}

Only shout-powered abilities