Upgrade
Call the following methods if your game contains upgrading contents for character or equipment.
Upgrade character
Upgrade character statistics
Call ChangeStat when a character’s ability statistics change due to level up or character upgrade.
Method |
Parameter |
Type |
Required |
Notes |
||
|---|---|---|---|---|---|---|
Stat A |
Stat B |
Stat C |
||||
player_uuid |
string |
Required |
||||
character_uuid |
string |
Required |
||||
stat_slug |
string |
Required |
HP |
attack speed |
attack speed |
|
stat_to |
int |
Required |
|
|
|
|
stat_from |
int |
Optional |
|
|
|
|
stat_category_slug |
string |
Optional |
||||
Level up character
Call LevelUpCharacter and Use{ Object } methods when an object is used to level up a character.
The following example assumes that UseConsumable method is called because a consumable item is used to level up.
| Method | Parameter | Type | Required | Notes |
|---|---|---|---|---|
player_uuid |
string |
Required |
||
character_uuid |
string |
Required |
||
item_slug |
string |
Required |
|
|
item_quantity |
float |
Required |
|
|
where_to_entity |
Optional |
|
||
where_to_category_slug |
string |
Optional |
level |
|
where_to_slug |
string |
Optional |
level |
| Method | Parameter | Type | Required | Notes |
|---|---|---|---|---|
player_uuid |
string |
Required |
||
character_uuid |
string |
Required |
||
level_to |
int |
Required |
|
|
level_from |
int |
Optional |
|
Upgrade character
Call the following methods when a character is upgraded.
-
Call
UseCurrencywhen a currency is needed to upgrade character.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
currency_slug
string
Required
goldcurrency_quantity
float
Required
10800currency_total_quantity
float
Optional
99999where_to_entity
Optional
entity.ChangeCustomAbilitywhere_to_category_slug
string
Optional
next level
where_to_slug
string
Optional
next level
-
Call
UseMaterialwhen a material is used to upgrade character.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
item_slug
string
Required
Kylie’s animaitem_quantity
float
Required
30where_to_entity
Optional
entity.ChangeCustomAbilitywhere_to_category_slug
string
Optional
next level
where_to_slug
string
Optional
next level
-
Call
ChangeCustomAbilitywhen a character is upgraded.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
custom_ability_slug
string
Required
next level
custom_ability_to
int
Required
1custom_ability_category_slug
string
Optional
next level
custom_ability_from
int
Optional
0
Change character job class
Call ChangeCharacterArchetype when a character’s job class or original form changes.
| Method | Parameter | Type | Required | Notes |
|---|---|---|---|---|
player_uuid |
string |
Required |
||
character_uuid |
string |
Required |
||
characterarchetype_to_slug |
string |
Required |
|
|
characterarchetype_from_slug |
float |
Optional |
|
Upgrade skill
Call the following methods when a currency is paid to level up skills.
-
Call
UseCurrencywhen a currency is paid to level up skills.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
currency_slug
string
Required
goldcurrency_quantity
float
Required
10000currency_total_quantity
float
Optional
99999where_to_entity
Optional
entity.LevelUpSkillwhere_to_category_slug
string
Optional
movement skillwhere_to_slug
string
Optional
movement skill -
Call
LevelUpSkillwhen a skill levels up.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
skill_slug
string
Required
movement skillskill_level_to
int
Required
2skill_category_slug
string
Optional
movement skillskill_level_from
int
Optional
1
Upgrade equipment
Call the following methods when either currency or material is used to upgrade equipment.
-
Call
UseCurrencywhen a currency is paid to upgrade equipment.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
currency_slug
string
Required
goldcurrency_quantity
float
Required
10800currency_total_quantity
float
Optional
99999where_to_entity
Optional
entity.ChangeCustomAbilitywhere_to_category_slug
string
Optional
upgradewhere_to_slug
string
Optional
sword of ancient goddess -
Call
UseMaterialwhen a material is used to upgrade an equipment.Even if the object used to upgrade an equipment is an equipment, you still have to call
UseMaterialbecause the object is used as a material, not an equipment.Method
Parameter
Type
Required
Notes
Material A
Material B
Material C
player_uuid
string
Required
character_uuid
string
Required
item_slug
string
Required
2 star water sword2 star knights sword2 star knowledge of wateritem_quantity
float
Required
111where_to_entity
Optional
entity.ChangeCustomAbilitywhere_to_category_slug
string
Optional
upgradewhere_to_slug
string
Optional
3 star ultimate water sword -
Call
LevelUpEquipmentto record the result of equipment upgrade.Method Parameter Type Required Notes player_uuid
string
Required
character_uuid
string
Required
item_slug
string
Required
3 star ultimate water sworditem_level_to
int
Required
13item_level_from
int
Optional
12