This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
ja:add_character [2020/05/27 15:08] – [キャラクターを追加] michyo | ja:add_character [2020/05/27 15:48] – [例:] michyo | ||
---|---|---|---|
Line 6: | Line 6: | ||
[[マップ]]内の指定された[[タイル]]に[[キャラクター]]を追加します([[タイル]]がまだ別の[[キャラクター]]で占められていない場合)。[[エンティティ]]IDはオプションで、指定した場合は新しい[[キャラクター]]に割り当てられます。 | [[マップ]]内の指定された[[タイル]]に[[キャラクター]]を追加します([[タイル]]がまだ別の[[キャラクター]]で占められていない場合)。[[エンティティ]]IDはオプションで、指定した場合は新しい[[キャラクター]]に割り当てられます。 | ||
- | ====Signature:==== | + | ====構文:==== |
<code python> | <code python> | ||
add_character(model_name, | add_character(model_name, | ||
</ | </ | ||
- | ^Argument^Description^Type^Required^ | + | ^引数^説明^型^必須/ |
- | |model_name|Model to use for the new [[character]].|[[String]]|Yes| | + | |model_name|新しい[[キャラクター]]に使用するモデル。|[[文字列]]|必須| |
- | |tile|ID or [[coordinate]] of the [[tile]] where the [[character]] will be placed.|[[String]], [[Coordinate]]|Yes| | + | |tile|[[キャラクター]]が配置される[[タイル]]のIDまたは[[座標]]。|[[文字列]], [[座標]]|必須| |
- | |entity_id|Unique | + | |entity_id|割り当てる一意の[[エンティティ]]ID。|[[文字列]]|オプション| |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | The [[Remove Entity]] function can be triggered later to remove a [[character]] that was previously added to the scene with the Add Character function. | + | 後ほど[[エンティティの削除]]関数を実行すれば、キャラクターの追加関数でシーンに追加された[[キャラクター]]を削除することができます。 |
</ | </ | ||
- | ====Example:==== | + | ====使用例:==== |
<code bauxite> | <code bauxite> | ||
add_character(" | add_character(" | ||
</ | </ | ||
- | //Results:// A purple slime will be added to the [[map]] on the [[tile]] having ID " | + | //結果:// 紫色のスライムが[[マップ]]内にある「dungeon_door_01」というIDを持った[[タイル]]の上に追加され、そのスライムには「slime_01」というIDが割り当てられます。 |
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Add Character** function to introduce new [[npc|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. | + | ** キャラクターを追加 |
</ | </ | ||
Line 34: | Line 34: | ||
<WRAP group> | <WRAP group> | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Editor Node:==== | + | ====エディターノード:==== |
{{: | {{: | ||
</ | </ | ||
<WRAP half column> | <WRAP half column> | ||
- | ====Visual Demo:==== | + | ====ビジュアルデモ:==== |
{{: | {{: | ||
</ | </ |