This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
move_character [2017/04/24 14:49] – justin | move_character [2020/02/14 11:50] – justin | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- | ---- | ||
- | Moves the character to the specified tile at their assigned movement speed. If a walkable path is not open then the character will remain at their current position. | + | Moves the character to the specified tile at their assigned movement speed. If a walkable path is not open the character will remain at their current position. |
+ | ====Signature: | ||
<code python> | <code python> | ||
- | move_character(character, | + | move_character(character, |
</ | </ | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
|character|Character (player or NPC) that will be moved.|[[Entity]]|Yes| | |character|Character (player or NPC) that will be moved.|[[Entity]]|Yes| | ||
- | |tile_id|ID of the destination tile.|[[String]]|Yes| | + | |tile|ID or coordinate |
<WRAP center round info 100%> | <WRAP center round info 100%> | ||
Line 17: | Line 18: | ||
====Example: | ====Example: | ||
- | < | + | < |
move_character(entity[" | move_character(entity[" | ||
</ | </ | ||
Line 23: | Line 24: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Move Character** function to move the player character or NPCs around the map during scripted | + | Use the **Move Character** function to move the player character or NPCs around the map during scripted |
</ | </ | ||