ForwardEvent
This effect allows you to forward a received event, changing its name but retaining its payload.
JSON Format
{
"type": "forwardEvent",
"new_event_names": ...
}
Fields
| Field | Type | Required | Description |
|---|---|---|---|
new_event_names | StatFormulaComponent | ✓ | The event names to forward this event as. This stat formula should return a list of strings. As with the fireEvent effect, you are responsible for utilizing 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). The event will be forwarded n times, where n is the size of the array returned by this stat formula, once for every event name present in it. Only the event name will be changed when forwarding. The payload will remain as is. |