GET /processes/:processId/triggers
Description
Get a list of all available triggers a player can perform in a process.
Resource URL
https://api.playlyfe.com/processes/:processId/triggers
Method
GET
Scopes
player, game, debug
Parameters
None
Example
Request
GET https://api.playlyfe.com/processes/neo/therealmatrix/triggers
Response
[
{
"trigger": "destroy_the_world:choose_your_path",
"name": "Destroy the World",
"actions": [
{
"metric": {
"id": "existential_plane",
"type": "state",
"name": "Existential Plane"
},
"value": "Hell",
"verb": "set"
},
{
"metric": {
"id": "karma",
"type": "point",
"name": "Karma"
},
"value": "-1000000000",
"verb": "add"
}
]
},
{
"trigger": "let_it_burn:choose_your_path",
"name": "Let it Burn",
"actions": [
{
"metric": {
"id": "existential_plane",
"type": "state",
"name": "Existential Plane"
},
"value": "Hell",
"verb": "set"
},
{
"metric": {
"id": "karma",
"type": "point",
"name": "Karma"
},
"value": "1",
"verb": "add"
}
]
},
{
"trigger": "try_to_save_the_world:choose_your_path",
"name": "Try to save the World",
"actions": [
{
"metric": {
"id": "existential_plane",
"type": "state",
"name": "Existential Plane"
},
"value": "Material",
"verb": "set"
},
{
"metric": {
"id": "karma",
"type": "point",
"name": "Karma"
},
"value": "1000000001",
"verb": "add"
}
]
}
]