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 [2017/10/09 11:22] – justin | add_character [2019/09/04 16:25] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
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 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. | ||
+ | ====Signature: | ||
<code python> | <code python> | ||
- | add_character(model_name, | + | add_character(model_name, |
</ | </ | ||
^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.|[[String]]|Yes| | ||
- | |tile_id|ID of the tile where the character will be placed.|[[String]]|Yes| | + | |tile|ID or coordinate |
|entity_id|Unique entity ID that will be assigned.|[[String]]|No| | |entity_id|Unique entity ID that will be assigned.|[[String]]|No| | ||
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
- | The [[Fade In]] and [[Fade Out]] functions | + | The [[Remove Entity]] function |
</ | </ | ||
Line 24: | Line 25: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | 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 using the ID they were assigned. | + | 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. |
</ | </ | ||