Character Enhancement
The demo signs in automatically with an anonymous account. The account is shared across every demo in the showroom, so items and currency you get in one demo carry over to the others. Loading takes a moment. If the frame is too small, open the demo in a new tab.
Overview
Spend enhancement materials to give a character experience. There are two materials, potion (worth 300 experience) and elixir (worth 1000), and each enhancement has a 20% chance of a great success that grants 1.5 times the experience. Recruit a character, get some materials, then spend them on the character’s row.
How to try it
- Under Recruit a character, press Recruit next to Recruit knight (or another character) to get a character.
- Press Get under Materials to add one of that material (the row reads, for example,
potion x1). - On the character’s row under Spend materials to level up, press Enhance with potion; one
potionis consumed, the character gains 300 experience (450 on a great success), and Level rises from1/10. - Press Enhance with elixir to consume one
elixirfor 1000 experience (1500 on a great success). - Pressing an enhance button without the material fails because there is not enough material.
GS2 services used
- GS2-Enhance: GS2-Enhance’s
Basicrate adds the experience written in the material’s metadata (300 forpotion, 1000 forelixir) to the target character, with a bonus of 1.5x at 20% and 1x at 80%. - GS2-Inventory: GS2-Inventory holds two inventories: the
Characterinventory with the recruited characters, and theCharacterEnhanceMaterialsimple inventory with the material counts. - GS2-Experience: GS2-Experience keeps each character’s experience, level and level cap (10); the experience added by enhancing raises the level.
- GS2-Exchange: GS2-Exchange rate models define the buttons: Get acquires a material (
Gs2Inventory:AcquireSimpleItemsByUserId), and Enhance with potion and Enhance with elixir run an enhancement with that material (Gs2Enhance:DirectEnhanceByUserId), each as a free server-side transaction.
Use it in GS2 Studio
In GS2 Studio’s Simple mode, open Add features and press Add on Character Enhancement to bring this feature into your own project. To point at the package directly, choose Add from GitHub and enter the package below.
https://github.com/gs2io/gs2-studio-package/tree/main/micro-economy-character-enhance/packages/micro-economy-character-enhance- Owner:
gs2io - Repository:
gs2-studio-package - Subdirectory:
micro-economy-character-enhance/packages/micro-economy-character-enhance