-
Notifications
You must be signed in to change notification settings - Fork 82
Material threshold event
Triggered when a material reaches a threshold.
Where values are indexed (the compartments on a ship for example), the index will be represented by '<index>'. For VoiceAttack, a variable with the root name of the indexed array shall identify the total number of entries in the array. For example, if compartments 1 and 2 are available then the value of the corresponding 'compartments' variable will be 2.
When using this event in the Speech responder the information about this event is available under the event
object. The available variables are as follows:
-
{event.amount} - The current amount of the material
-
{event.change} - The change to the inventory (Increase/Reduction)
-
{event.level} - The level that has been triggered (Minimum/Desired/Maximum)
-
{event.limit} - The amount of the limit that has been passed
-
{event.material} - The material (as an object)
-
{event.material.blueprints}
-
{event.material.blueprints[<index>].grade}
-
{event.material.blueprints[<index>].invariantName}
-
{event.material.blueprints[<index>].materials}
-
{event.material.blueprints[<index>].materials[<index>].amount}
-
{event.material.blueprints[<index>].materials[<index>].category}
-
{event.material.blueprints[<index>].materials[<index>].desired}
-
{event.material.blueprints[<index>].materials[<index>].material}
-
{event.material.blueprints[<index>].materials[<index>].maximum}
-
{event.material.blueprints[<index>].materials[<index>].minimum}
-
{event.material.blueprints[<index>].materials[<index>].Rarity}
-
{event.material.blueprints[<index>].materials[<index>].Rarity.invariantName}
-
{event.material.blueprints[<index>].materials[<index>].Rarity.level}
-
{event.material.blueprints[<index>].materials[<index>].Rarity.name}
-
{event.material.blueprints[<index>].name}
-
{event.material.bodyname}
-
{event.material.bodyshortname}
-
{event.material.category}
-
{event.material.goodpctbody}
-
{event.material.greatpctbody}
-
{event.material.invariantName}
-
{event.material.location}
-
{event.material.name}
-
{event.material.rarity}
-
{event.material.symbol}
To respond to this event in VoiceAttack, create a command entitled ((EDDI material threshold)). VoiceAttack variables will be generated to allow you to access the event information.
The following VoiceAttack variables are available for this event:
-
{INT:EDDI material threshold amount} - The current amount of the material
-
{TXT:EDDI material threshold change} - The change to the inventory (Increase/Reduction)
-
{TXT:EDDI material threshold level} - The level that has been triggered (Minimum/Desired/Maximum)
-
{INT:EDDI material threshold limit} - The amount of the limit that has been passed
-
{INT:EDDI material threshold material blueprints}
-
{INT:EDDI material threshold material blueprints <index> grade}
-
{TXT:EDDI material threshold material blueprints <index> invariant name}
-
{INT:EDDI material threshold material blueprints <index> materials}
-
{INT:EDDI material threshold material blueprints <index> materials <index> amount}
-
{TXT:EDDI material threshold material blueprints <index> materials <index> category}
-
{INT:EDDI material threshold material blueprints <index> materials <index> desired}
-
{TXT:EDDI material threshold material blueprints <index> materials <index> material}
-
{INT:EDDI material threshold material blueprints <index> materials <index> maximum}
-
{INT:EDDI material threshold material blueprints <index> materials <index> minimum}
-
{TXT:EDDI material threshold material blueprints <index> materials <index> rarity invariant name}
-
{INT:EDDI material threshold material blueprints <index> materials <index> rarity level}
-
{TXT:EDDI material threshold material blueprints <index> materials <index> rarity name}
-
{TXT:EDDI material threshold material blueprints <index> name}
-
{TXT:EDDI material threshold material bodyname}
-
{TXT:EDDI material threshold material bodyshortname}
-
{TXT:EDDI material threshold material category}
-
{DEC:EDDI material threshold material goodpctbody}
-
{DEC:EDDI material threshold material greatpctbody}
-
{TXT:EDDI material threshold material invariant name}
-
{TXT:EDDI material threshold material location}
-
{TXT:EDDI material threshold material name}
-
{TXT:EDDI material threshold material rarity}
-
{TXT:EDDI material threshold material symbol}
For more details on VoiceAttack integration, see https://github.com/EDCD/EDDI/wiki/VoiceAttack-Integration.