User Tools

Site Tools


cardinal_direction

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
cardinal_direction [2017/06/20 15:00] justincardinal_direction [2021/04/21 20:23] (current) justin
Line 4: Line 4:
 The concept of **cardinal directions** plays an important role due to the grid-based nature of RPG in a Box. There are four cardinal directions: //north//, //south//, //west//, and //east//. The concept of **cardinal directions** plays an important role due to the grid-based nature of RPG in a Box. There are four cardinal directions: //north//, //south//, //west//, and //east//.
  
-When used in scripting (for example, when manually writing a quick script), the directions should be specified in uppercaseNORTH, SOUTH, WEST, and EAST.+When used in scripting (for example, when manually writing a [[quick script]]), the direction should be specified in all uppercase, i.e. NORTH, SOUTH, WEST, and EAST.
  
-====Example:==== +====Examples:==== 
-<code python+<code bauxite> 
-rotate_player_to_direction(WEST)+load_map("dungeon", coord[3, 4, 0], NORTH); 
 +</code> 
 +<code bauxite
 +rotate_player_to_direction(WEST);
 </code> </code>
cardinal_direction.1497996021.txt.gz · Last modified: 2017/06/20 15:00 by justin