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

# Character Gacha

A currency-funded gacha that draws characters, with per-rarity drop rates.




**이 데모에 대하여**

데모는 익명 계정으로 자동 로그인합니다. 이 계정은 쇼룸의 모든 데모에서 공유되므로 한 데모에서 얻은 아이템이나 재화가 다른 데모에도 반영됩니다. 로딩에 약간 시간이 걸립니다. 화면이 작다면 새 탭에서 열어 사용해 보세요.

## 개요

A gacha that draws characters for coins. Buy coins under **Buy coins**, pull the gacha under **Draw a character**, and the character you get is added to **Your characters**. Each draw runs the coin withdrawal from GS2-Money2, the GS2-Lottery draw and the GS2-Inventory grant as one transaction.

## 체험 방법

1. Under **Buy coins**, press **Buy** on **10 coins**, **50 coins** or **250 coins**; the balance under **Your coins** goes up.
1. Under **Draw a character**, press **Buy** next to **Draw a character for 10 coins**; it spends 10 coins and pulls the gacha once.
1. The character you drew (`knight`, `archer`, `mage` or `healer`) appears as a new row under **Your characters**; a duplicate gets a row of its own.
1. Keep pulling: common (`knight` / `archer`) comes out 80% of the time and rare (`mage` / `healer`) 20%, with even odds within a rarity.
1. A draw is refused when you have fewer than 10 coins; buy more under **Buy coins**.

The wallet is shared with the other showroom demos in the same browser, so coins you got in another demo can be spent here.

## 사용하는 GS2 서비스

- [GS2-Lottery](/ko/microservices/lottery/): A GS2-Lottery prize table draws a rarity (common 80 / rare 20) first, then a character within it at equal weight.
- [GS2-Showcase](/ko/microservices/showcase/): A GS2-Showcase shelf sells one draw as a 10-coin product, tying the coin cost to the draw in one purchase transaction; the coin packs are sold from another shelf.
- [GS2-Inventory](/ko/microservices/inventory/): Each character drawn is added to a GS2-Inventory inventory, one entry per character, and listed under **Your characters**.
- [GS2-Money2](/ko/microservices/money2/): The GS2-Money2 wallet holds the coins: buying a pack deposits into it, and every draw withdraws 10.
- [GS2-Dictionary](/ko/microservices/dictionary/): Each prize also records the character in a GS2-Dictionary collection (not shown on this page).

## GS2 Studio에서 사용하기

GS2 Studio의 Simple 모드에서 **Add features** 를 열고 **Character Gacha** 의 **Add** 를 누르면 이 기능을 자신의 프로젝트에 가져올 수 있습니다. 패키지를 직접 지정하려면 **Add from GitHub** 를 선택하고 아래 패키지를 입력합니다.

```text
https://github.com/gs2io/gs2-studio-package/tree/main/micro-shop-character-gacha/packages/micro-shop-character-gacha
```

- Owner: `gs2io`
- Repository: `gs2-studio-package`
- Subdirectory: `micro-shop-character-gacha/packages/micro-shop-character-gacha`

## 소스 코드

- 데모 프로젝트: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-shop-character-gacha/live-demo>
- 기능 패키지: <https://github.com/gs2io/gs2-studio-package/tree/main/micro-shop-character-gacha>



