User Tools

Site Tools


modify_navigation

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
Last revisionBoth sides next revision
modify_navigation [2017/04/17 21:27] justinmodify_navigation [2020/04/21 14:31] justin
Line 1: Line 1:
-======Modify Navigation/Interaction======+======Modify Navigation======
 ---- ----
  
-Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable values for navigation mode are described below: +Modifies the type of navigation and interaction allowed between two adjacent tiles. The acceptable values for navigation type are listed and explained on the [[Navigation and Interaction]] page.
-  * **//WALK_AND_INTERACT://** Characters can both walk and interact between the tiles. +
-  * **//WALK_ONLY://** Characters can only walk between the tiles (no interaction is allowed). +
-  * **//INTERACT_ONLY://** Characters can only interact between the tiles (no walking is allowed). +
-  * **//PENDING://** Characters cannot walk or interact between the tiles, but a connection is maintained. (This is in support of some future functionality.) +
-  * **//NONE://** Characters cannot walk or interact between the tiles.+
  
 +====Signature:====
 <code python> <code python>
-modify_navigation(first_tile_idsecond_tile_idnavigation_mode)+modify_navigation(from_tileto_tilenavigation_type)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
-|first_tile_id|ID of the first tile.|[[String]]|Yes| +|from_tile|Tile to connect navigation from.|[[Entity]]|Yes| 
-|second_tile_id|ID of the second tile.|[[String]]|Yes| +|to_tile|Tile to connect navigation to.|[[Entity]]|Yes| 
-|navigation_mode|Navigation mode to set between the two tiles.|[[Constant]]|Yes|+|navigation_type|Navigation type to set between the two tiles.|[[navigation_and_interaction|Navigation Type]]|Yes| 
 + 
 +<WRAP center round info 100%> 
 +See [[Replace Navigation]] if you'd like to update any navigation paths of a specific type relative to an entity instead of only between two adjacent tiles. 
 +</WRAP>
  
 ====Example:==== ====Example:====
-<code python>+<code bauxite>
 modify_navigation("tile01", "tile02", WALK_AND_INTERACT) modify_navigation("tile01", "tile02", WALK_AND_INTERACT)
 </code> </code>
Line 25: Line 25:
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
-Use the **Modify Navigation/Interaction** function to open up new routes for the player to travel through, for example when a door is opened or a blocking object has been removed from a tile.+Use the **Modify Navigation** function to open up new routes for the player to travel through, for example when a door is opened or a blocking object has been removed from a tile.
 </WRAP> </WRAP>
  
modify_navigation.txt · Last modified: 2021/04/21 18:35 by justin