crpl:docs:getterrain

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
crpl:docs:getterrain [2014/10/01 19:02] – external edit 127.0.0.1crpl:docs:getterrain [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
-~~DISCUSSION~~ 
 <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#terrain_and_wall_commands|Terrain and Wall Commands]] <- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#terrain_and_wall_commands|Terrain and Wall Commands]]
 =====  GetTerrain  ===== =====  GetTerrain  =====
Line 10: Line 9:
 Pushes to the stack the height of the terrain cell.  Returns -1 for Void terrain.  Values outside the map bounds are considered Void and hence also return -1. Pushes to the stack the height of the terrain cell.  Returns -1 for Void terrain.  Values outside the map bounds are considered Void and hence also return -1.
 === Examples === === Examples ===
-<code>example goes here</code> +<code> 
 +#Gets the terrain level at the current position of the core 
 +#and stores it in variable lvl 
 +CurrentCoords GetTerrain ->lvl</code> 
crpl/docs/getterrain.1412190170.txt.gz · Last modified: 2025/02/14 14:56 (external edit)