-
Notifications
You must be signed in to change notification settings - Fork 8
Expressions listing
-
Data
-
- GetMessagePropertiesCount
-
- IsMultipartMessage
-
- Message
-
- MessageAsJSON
-
- MessageAtProperty
-
- MessageHasProperty
-
Highscores
-
- GetHighscores
-
Ids
-
- ConvertDeviceIdToPlayerNumber
-
- ConvertPlayerNumberToDeviceId
-
- DeviceId
-
- GetActivePlayerDeviceIds
-
- GetControllerDeviceIds
-
- GetMasterControllerDeviceId
-
Persistent data
-
- GetPersistentData
-
Plugin
-
- IsPluginOffline
-
Profile
-
- GetNickname
-
- GetProfilePicture
-
- GetUID
-
- IsPremium
Description: Returns an integer corresponding to how many properties were set in the last received message.
Description: Returns 1 if the last received message has more than one property set.
Description: Contains the last received message. Be aware that if the last received message is multipart, this will return a JSON string of the message. I fit contains only one property it returns the property value, whatever the property name is.
Description: Returns the last received message as a JSON converted C2Dictionnary. Use C2Dictionary.Load() to read the data.
Description: Returns the value of the specified property in the last received message
Conditions: The message has to have that property set or a warning will be triggered in your console
Description: Returns 1 if the last received message has the specified property, else 0.
Description: Returns a JSON converted C2Dictionnary of the highscores loaded by the last requestHighScores. Use C2Dictionary.Load() to read the data.
Conditions: use in trigger On Receiving HIghscores after using Request Highscores.
Description: Returns the player number for a device_id, if the device_id is part of the active players previously set by the screen by using SetActivePlayers.
Conditions: Requires use of Set Active Players first.
Description: Returns the device_id of a player, if the player is part of the active players previously set by the screen by using SetActivePlayers.
Conditions: Requires use of Set Active Players first.
Description: Returns the device id that last triggered an event in Construct 2.
Description: Returns a JSON converted C2Array of device_ids of the active players previously set by the screen by calling setActivePlayers. The first device_id in the array is the first player, the second device_id in the array is the second player etc.
Description: Returns a JSON converted C2Array of all the device ids that have loaded your game.
Description: Returns the device Id of the master controller. It can be undefined, in that case Construct 2 will return -1.
Description: Returns a JSON string representation of the persistent data loaded by the last requestPersistentData. Use C2Dictionary.Load() to read the data.
Description: Returns 1 if the plugin loaded as offline, else 0.
Description: Returns the nickname of the specified device id.
Description: Returns the profile picture url of the specified device id. It can be null, in which case the default Gravatar icon url will be returned.
Description: Returns the globally unique id of the specified device id.
Description: Returns 1 if the specified device id is premium else 0.