Skip to content

05. Conditions

Psycho edited this page Dec 25, 2022 · 2 revisions

https://laurent.s-ul.eu/x5akoSum

Ads

Ad shown: True if the last call to ads displayed ads

Is ad showing: True if ads are currently showing

On ad complete: Triggered when ads displaying is over

On ad show: Triggered when ads start displaying

Controller only

On device motion: Triggered when a given device moves

Device and user

Is premium (deviceId): True if the specified deviceId is a premium user

Is user logged in (deviceId): True if the specified deviceId is logged in

On custom device state change: Triggered when a device updates it's custom device state

On device profile change: Triggered when a device updates it's profile picture, nickname or email

Highscores

On highscores stored: Triggered when highscores storing is done server side

On receiving highscores: Triggered when receiving highscores from server

Messaging

Is multipart message: True if the last message received is multipart, meaning it has more than one property

On message: Triggered when getting a message

On message from (deviceId): Triggered when getting a message from the specified deviceId

On message from is (propertyName, propertyValue, deviceId): Triggered when getting a message with propertyName = propertyValue from the specified deviceId

On message has property (propertyName): Triggered when getting a message that has the specified property set

On message is (propertyName, propertyValue): Triggered when getting a message with propertyName = propertyValue

Persistent data

On persistent data loaded: Triggered when persistent data are loaded

On persistent data stored: Triggered when persistent data are stored server side

Plugin

Is plugin offline: True if the plugin loaded as offline. Maybe soon deprecated! As of version 1.7.0.1 of no use as the API is provided in the plugin

Signalling

On connect: Triggered when a device connects

On device disconnect (deviceId): Triggered when deviceId disconnects

On disconnect: Triggered when any device disconnect

On premium connect: Triggered when a premium user connects

On too many players: Triggered when a device connects and the plugin property "Max player" is reached

On mute: Triggered when the game asks to mute

On unmute: Triggered when the game asks to unmute

On pause: Triggered when the game asks to pause

On resume: Triggered when the game asks to resume

System

Is controller: True if the plugin property "Is controller" is enabled

Clone this wiki locally