# 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="/files/EBWjJBy2XkGiXMCzsJTM" alt="" class="gitbook-drawing">

## パラメーター

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sandbox.game/jp/creators/game-maker/document/components/victory.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
