FireEvent
The FireEvent effect allows to fire an event in the app. Events can trigger mechanics.
JSON Format
{
"type": "fireEvent",
"event": ...,
"event_names": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
event | Event | The event to fire. Either this parameter or event_names need to be provided. If both are provided, event will take priority over the other one. The appropriate id will be added for you to the event name to ensure only the resource instance firing this effect reacts to the event fired (for clarification, see the information banner in Mechanic). | |
event_names | StatFormulaComponent | The names of the events to fire. This stat formula must return an array of strings. Each of these event names require you to make use of the eventName stat formula component where appropriate to ensure the events get picked up by the appropriate resource (for clarification, see the information banner in Mechanic). |