Rex's plugins for Construct2
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About

rex_bahamut

Plugin, ACE table, Discussion thread
Dependence: None

Introduction
Get user data from Bahamut website by parsing web pages.
This plugin could NOT be used in cocoonJS, since it uses cross-domain-requests jQuery library to read web page.

Usage
Sample capx
User data
Get user data by these steps.
  1. Call "Action:Get user data" to send a request.
  2. "Condition:On user data received", or "Condition:On user data received failed" will be triggered when get user data successful or failed.
  3. Get user data by these expressions "Expression:CurUserName", "Expression:STR", "Expression:DEX", "Expression:INT", "Expression:LUK", "Expression:VIT", "Expression:AGI", "Expression:MND", "Expression:Nickname", "Expression:LV", "Expression:RACE". "Expression:OCCUPATION".
User image
User image is got by "Expression:ImageURL" after calling "Action:Get user data". Put this url at Pode's image plugin (discuss thread) to show the user image.
The size of this image is 110x160 (pixels).
Friends list
Get friends list of the user by these steps.
  1. Call "Action:Get friend slist" to send a request.
  2. "Condition:On friends list received", or "Condition:On friends list received failed" will be triggered when get friends list successful or failed.
  3. Get friends list under "Condition:For each friend" event. "Expression:CurFriendName", "Expression:CurFriendNickname" could be used to get the name and nickname of each friend.
Clean user data
User data will be stored in this plugin after fetched. Put user name at the second parameter of these expressions "Expression:CurUserName", "Expression:STR", "Expression:DEX", "Expression:INT", "Expression:LUK", "Expression:VIT", "Expression:AGI", "Expression:MND", "Expression:Nickname", "Expression:LV", "Expression:RACE". "Expression:OCCUPATION" to get property of a specific user.
Call "Action:Clean all users data" could clean them.

Create a free web site with Weebly
  • Home
  • Map
  • Tutorial/Templates
  • News
  • About