User Tools

Site Tools


move_character

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
move_character [2020/04/22 17:45] justinmove_character [2023/04/03 13:19] (current) justin
Line 6: Line 6:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-move_character(character, tile)+move_character(character, tile, pause)
 </code> </code>
  
Line 12: Line 12:
 |character|[[Character]] (player or NPC) that will be moved.|[[Entity]]|Yes| |character|[[Character]] (player or NPC) that will be moved.|[[Entity]]|Yes|
 |tile|ID or [[coordinate]] of the destination tile or a reference to the destination [[tile]] itself.|[[String]], [[Coordinate]], or [[Entity]]|Yes| |tile|ID or [[coordinate]] of the destination tile or a reference to the destination [[tile]] itself.|[[String]], [[Coordinate]], or [[Entity]]|Yes|
 +|pause|Whether or not script should be paused until the [[character]] has reached their destination. Defaults to true.|[[Boolean]]|No|
  
 <WRAP center round info 100%> <WRAP center round info 100%>
Line 19: Line 20:
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
-move_character(entity["sarah"], "bridge01")+move_character(entity["sarah"], "bridge01");
 </code> </code>
 //Results:// The [[character]] with an ID of "sarah" walks from her current location to the bridge [[tile]] with an ID of "bridge01". //Results:// The [[character]] with an ID of "sarah" walks from her current location to the bridge [[tile]] with an ID of "bridge01".
move_character.1587602701.txt.gz · Last modified: 2020/04/22 17:45 by justin