User Tools

Site Tools


ja:add_character

This is an old revision of the document!


FIXME このページはまだ完全には、翻訳されません。翻訳の完了を支援して下さい。
(翻訳が完了したらこの段落を削除して下さい)

キャラクターを追加


マップ内の指定されたタイルキャラクターを追加します(タイルがまだ別のキャラクターで占められていない場合)。エンティティIDはオプションで、指定した場合は新しいキャラクターに割り当てられます。

構文:

add_character(model_name, tile, entity_id)
引数説明必須/オプション
model_name新しいキャラクターに使用するモデル。文字列必須
tileキャラクターが配置されるタイルのIDまたは座標文字列, 座標必須
entity_id割り当てる一意のエンティティID。文字列オプション

後ほどエンティティの削除関数を実行すれば、キャラクターの追加関数でシーンに追加されたキャラクターを削除することができます。

Example:

add_character("purple_slime", "dungeon_door_01", "slime_01")

Results: A purple slime will be added to the map on the tile having ID “dungeon_door_01” and will be assigned an ID of “slime_01”.

Use the Add Character function to introduce new NPCs into the scene. After being added, you can use the Set Dialogue function to assign a dialogue to the character or the Set Character Name function to change their name.


Editor Node:

Visual Demo:

ja/add_character.1590618859.txt.gz · Last modified: 2020/05/27 15:34 by michyo