rex_kongregate
Usage
How to test
User only could test this plugin after uploaded to kongregate. DON'T run this plugin in local preview mode.
User only could test this plugin after uploaded to kongregate. DON'T run this plugin in local preview mode.
Initialize
First of all, plugin will try to load API before use it. "Condition:On api loaded" will be triggered when api loaded successful.
First of all, plugin will try to load API before use it. "Condition:On api loaded" will be triggered when api loaded successful.
Authentication
After initialize, "Condition:On login" will be triggered if user had logged. Or call "Action:Show registration box" to popup a registration box.
Get user name or user ID by "Expression:UserName", "Expression:UserID".
After initialize, "Condition:On login" will be triggered if user had logged. Or call "Action:Show registration box" to popup a registration box.
Get user name or user ID by "Expression:UserName", "Expression:UserID".
Add items
Sets items in dashboard of project.
Sets items in dashboard of project.
Request item list
Get item list of current project by "Action:Request item list". "Condition:Callback" will be triggered when received result.
Read result in JSON string by "Expression:Result". push this data into rex_hash plugin or Yann's JSJON plugin to retrieve it, or read child value by "Expression:Result( keys )", for example, get success flag by 'Expression:Result( "success" )'.
Fields of result are listed here.
Get item list of current project by "Action:Request item list". "Condition:Callback" will be triggered when received result.
Read result in JSON string by "Expression:Result". push this data into rex_hash plugin or Yann's JSJON plugin to retrieve it, or read child value by "Expression:Result( keys )", for example, get success flag by 'Expression:Result( "success" )'.
Fields of result are listed here.
Request list of a user's inventory of items
Get item list of current user by "Action:Request user item list". "Condition:Callback" will be triggered when received result, and read result in JSON string by "Expression:Result".
Fields of result are listed here.
Get item list of current user by "Action:Request user item list". "Condition:Callback" will be triggered when received result, and read result in JSON string by "Expression:Result".
Fields of result are listed here.
Purchase items
Call "Action:Purchase items" to start the purchase flow for predefined items by Item identifier. "Condition:Callback" will be triggered when received result, and read result in JSON string by "Expression:Result".
Fields of result are listed here.
Call "Action:Purchase items" to start the purchase flow for predefined items by Item identifier. "Condition:Callback" will be triggered when received result, and read result in JSON string by "Expression:Result".
Fields of result are listed here.
Show Kred purchase dialog
Call "Action:Show Kred purchase dialog" to open the Kred Purchase lightbox.
Call "Action:Show Kred purchase dialog" to open the Kred Purchase lightbox.
Incentivized Ads
This feature will not function unless we have enabled it for your game. If you would like to have this feature enabled, please email us at apps@kongregate.com.
This feature will not function unless we have enabled it for your game. If you would like to have this feature enabled, please email us at apps@kongregate.com.
Follows these steps to open an incentivized Ads.
- Call "Action:1. Initialize incentivized Ads"
- "Condition:2. On ads available" or "Condition:2. On ads unavailable" will be triggered when ads available or not.
- Call "Action:3. Show incentivized Ad" under "Condition:2. On ads available" to start showing ads
- "Condition:4. On ads opened" will be triggered when ads opened. pause gameplay and mute sound
- "Condition:5. On ads completed" or "Condition:5. On ads abandoned" will be triggered when ad has completed successfully or not.
- Player should be rewarded under "Condition:5. On ads completed".