> For the complete documentation index, see [llms.txt](https://docs.sandbox.game/jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sandbox.game/jp/creators/game-maker/document/components/victory.md).

# Victory

コンポーネントを有効にすると 「VICTORY」 というメッセージを表示することができます。

<figure><img src="https://4251931498-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MO_j99BJEXK4zHqxgqS%2F-MOp-7ir3XnEbY6dzW8x%2F-MOp-fFRXb2Bu-5hAseO%2FVictory.gif?alt=media&#x26;token=b3e79f2c-0022-42ea-a4a9-203bab160722" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
[**シングルプレイヤーとマルチプレイヤーのロジックを制作**](/jp/creators/game-maker/creative-guide/game-rule-guide/build-singleplayer-and-multiplayer-logic.md)のページでも<mark style="color:green;">**\[SP]**</mark> や <mark style="color:orange;">**\[MP]**</mark> のビヘイビアやコンポーネントの使い方をご紹介しています。
{% endhint %}

## <img src="https://docs.sandbox.game/~gitbook/image?url=https%3A%2F%2F331512196-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F83PS3g9zpWmq73xzlwFn%252Fuploads%252FevP3vMACf4ExvtsLhzQU%252Fimage.png%3Falt%3Dmedia%26token%3D542acf5c-8fb1-4f21-a6cc-4162a34aadba&#x26;width=300&#x26;dpr=4&#x26;quality=100&#x26;sign=e5d032f9&#x26;sv=2" alt="" data-size="line"> **Victory のコンポーネント&#x20;**<mark style="color:orange;">**\[MP]**</mark>

* Victory のコンポーネントはプレイヤーがバトルに勝った際にトリガーされるように設定します。
* プレイヤーがゲームに勝ったり、ボスを倒したり、制限時間内にゴールした時に使います。

## おすすめの使い方

* ターゲットオブジェクトとのコリジョンでフラッグゲームに勝った時
* オブジェクトを倒してゲームをクリアした時
* このコンポーネントが設定されたオブジェクトにメッセージを送信することがゲームのビクトリーをトリガーできます。

## コミュニケーション

<table data-header-hidden><thead><tr><th width="369"></th><th></th></tr></thead><tbody><tr><td><p><strong>インプット</strong>：</p><p>メッセージ、コリジョン、オブジェクトの破壊</p></td><td><p><strong>アウトプット</strong>：</p><p>ビクトリー画面</p></td></tr></tbody></table>

<img src="https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/qxR3UviBSvPLgseW2QRY/file.excalidraw.svg" alt="" class="gitbook-drawing">

## パラメーター

| オプション                                                                                          | 詳細                                                                                                                                                    |
| ---------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/ro9ogPU9g3gIpYOu5v0d/1.png) | <p><strong>Victory Condition</strong> - ビクトリーの画面を表示するために必要な条件を設定できます。</p><ul><li>オブジェクトがメッセージを受信した時</li><li>オブジェクトとのコリジョンが起きた時t</li><li>死亡時</li></ul> |
| ![](https://content.gitbook.com/content/V8pr5EgDZn2rnTUJE8XB/blobs/tqkKzI6yDMQbPnUBG3l5/2.png) | **Victory Message** - ビクトリー画面を表示して体験を終了する時に受け取るメッセージを設定できます。                                                                                          |
