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:47] – justin | ||
---|---|---|---|
Line 4: | Line 4: | ||
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 then 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[" | ||
</ | </ |