> For the complete documentation index, see [llms.txt](/llms.txt)

# GS2-Enchant API Reference

Enchantment (random parameter) feature




Provide a mechanism for randomly selecting additional parameters to be given to items and equipment.

GS2-Enchant can handle two types of additional parameters

- Balance parameter
- Rarity parameter

### Balance parameter

Balance parameters randomly distribute multiple predetermined parameters based on a determined total amount.
For example, if two parameters, attack and defense, are defined as a total of 100, and attack power is drawn at 60, defense power will be 40.

Balance parameters can be redrawn, and when redrawing, the values of some parameters can be fixed.
This feature allows game players to adjust parameters more efficiently for a price.

### Rarity parameter

Rarity parameters are randomly selected from a predetermined number of parameters.
First, a lottery is held to determine the number of parameters to be given, and then the parameters are selected.
Parameters have two game parameters, "type" and "value," and each has an "draw weight" that is used in the lottery process.

Rarity parameters can be redrawn, and when redrawing, the values of some parameters can be fixed.
In addition, additional parameters can be added. Therefore, the maximum number of rarity parameters must also be set.

[Introduction to Microservices / GS2-Enchant](../../microservices/enchant)



- [GS2-Enchant Deploy/CDK Reference](/api_reference/enchant/deploy/)
  
- [GS2-Enchant Master Data Reference](/api_reference/enchant/master_data/)
  
- [GS2-Enchant SDK API Reference](/api_reference/enchant/sdk/)
  
- [GS2-Enchant SDK for Game Engine API Reference](/api_reference/enchant/game_engine/)
  
- [GS2-Enchant Transaction Actions](/api_reference/enchant/stamp_sheet/)
  
