This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
add_character [2020/05/28 20:06] – justin | add_character [2020/06/09 09:28] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Adds a [[character]] to the specified [[tile]] within the [[map]] (if the [[tile]] is not already occupied by another [[character]]). The [[entity]] ID is optional and will be assigned to the new [[character]] if supplied. | + | Adds a [[character|character]] to the specified [[tile|tile]] within the [[map|map]] (if the [[tile|tile]] is not already occupied by another [[character|character]]). The [[entity|entity]] ID is optional and will be assigned to the new [[character|character]] if supplied. |
====Signature: | ====Signature: | ||
Line 10: | Line 10: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |model_name|Model to use for the new [[character]].|[[String]]|Yes| | + | |model_name|Model to use for the new [[character|character]].|[[string|String]]|Yes| |
- | |tile|ID or [[coordinate]] of the [[tile]] where the [[character]] will be placed.|[[String]], | + | |tile|ID or [[coordinate|coordinate]] of the [[tile|tile]] where the [[character|character]] will be placed.|[[string|String]], [[coordinate|Coordinate]]|Yes| |
- | |entity_id|Unique [[entity]] ID that will be assigned.|[[String]]|No| | + | |entity_id|Unique [[entity|entity]] ID that will be assigned.|[[string|String]]|No| |
<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. | + | The [[remove_entity|Remove Entity]] function can be triggered later to remove a [[character|character]] that was previously added to the scene with the Add Character function. |
</ | </ | ||
Line 22: | Line 22: | ||
add_character(" | add_character(" | ||
</ | </ | ||
- | // | + | // |
<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. | + | Use the **Add Character** function to introduce new [[npc|NPCs]] into the scene. After being added, you can use the [[set_dialogue|Set Dialogue]] function to assign a [[dialogue|dialogue]] to the [[character|character]] or the [[set_character_name|Set Character Name]] function to change their name. |
</ | </ | ||
Line 33: | Line 33: | ||
<WRAP half column> | <WRAP half column> | ||
====Editor Node:==== | ====Editor Node:==== | ||
- | {{: | + | {{:fr: |
</ | </ | ||