User Tools

Site Tools


cw4:scripting

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
cw4:scripting [2019/12/18 07:52] Karsten75cw4:scripting [2021/01/09 10:51] (current) Karsten75
Line 1: Line 1:
-<WRAP tabs> +{{page>cw4:header&nofooter}} 
-  * [[cw4:creeper_world_4|CW4 Home]] +====== Scripting and Making Custom Maps ======
-  * [[CW4:the_story|The Story]]  +
-  * [[CW4:Chronom|Chronom]]  +
-  * [[CW4:custom_maps|Custom Maps]]  +
-  * [[CW4:Custom_units|Custom Units]]  +
-  * [[cw4:scripting|Scripting]] +
-</WRAP> +
-===== Scripting and Making Custom Maps =====+
 Creeper World 4, in the same tradition as Creeper World 3 and Particle Fleet, has extensive scripting capabilities. It uses the same Reverse Polish Notation and associated "warp" notation as its predecessors.  Creeper World 4, in the same tradition as Creeper World 3 and Particle Fleet, has extensive scripting capabilities. It uses the same Reverse Polish Notation and associated "warp" notation as its predecessors. 
  
Line 13: Line 6:
  
 ===== Workflow ===== ===== Workflow =====
-==== Overview ==== 
 There are 3 components to a custom map There are 3 components to a custom map
   * The map terrain   * The map terrain
Line 19: Line 11:
   * Scripts   * Scripts
  
-=== Map Terrain ===+==== Map Terrain ====
 This includes terrain features such as terrain height; textures (both for cliffs and terrain); image overlays, decals applied to the terrain;  as well as the placement of resources and enemy units. More details are in the [[Terrain Editor]] or the [[Texture Editor]] pages.  This includes terrain features such as terrain height; textures (both for cliffs and terrain); image overlays, decals applied to the terrain;  as well as the placement of resources and enemy units. More details are in the [[Terrain Editor]] or the [[Texture Editor]] pages. 
  
-=== Custom units ===+==== Custom units ====
 Pre-built custom units are placed on the map by the map maker and can either be friendly or enemies. Player-built units are included on the build menus and are built by the player during the game. Most units will have one or more scripts associated with them, unless they are purely of a decorative nature.  Pre-built custom units are placed on the map by the map maker and can either be friendly or enemies. Player-built units are included on the build menus and are built by the player during the game. Most units will have one or more scripts associated with them, unless they are purely of a decorative nature. 
  
Line 29: Line 21:
 Each CPACK has a unique identifier (GUID) that is associated with the CPACK from creation onward. The only way to alter the GUID of a CPACK is to **branch** the CPACK in the game's custom module editor.  Each CPACK has a unique identifier (GUID) that is associated with the CPACK from creation onward. The only way to alter the GUID of a CPACK is to **branch** the CPACK in the game's custom module editor. 
    
-=== Scripts ===+==== Scripts ====
 4RPL scripts control the behavior of units, as well as select aspects of the map. As such, they can be associated with a unit, or with the **Global Control** section embedded in the CPACK ((Global Control scripts are divided in Pre- and Post- sections in the Package Manager. \\ 4RPL scripts control the behavior of units, as well as select aspects of the map. As such, they can be associated with a unit, or with the **Global Control** section embedded in the CPACK ((Global Control scripts are divided in Pre- and Post- sections in the Package Manager. \\
  
Line 49: Line 41:
  :!: Note: You must explicitly save the map if you want the recompiled scripts to be saved.** If you don't, and reload the map, the previous version of the scripts will be in effect until you recompile.  :!: Note: You must explicitly save the map if you want the recompiled scripts to be saved.** If you don't, and reload the map, the previous version of the scripts will be in effect until you recompile.
  
-<WRAP center centeralign box group 60%> +If you wish to examine the scripts on any map, you can do so by following a very simple set of steps outlined on the [[Examine CW4 Map Resources|Examine Map Resources page.]] 
-| **More about Creeper World 4** || + 
-|  **Main pages:** | **[[ creeper_world_4 Creeper World 4 ]]**  | +Random link to [[symbol aliasing]]
-|  **Custom maps:** | **[[custom_maps | Custom Maps]]** • **[[custom_units Custom Units]]** • **Scripting**  | + 
-</WRAP>+===== Tutorials and How-to ===== 
 + 
 +[[cw4:tutorials:rotation_conversion |Converting between different kinds of rotation]] 
 + 
 +===== Karsten's placeholder ===== 
 + 
 +[[Common Scripting Language]] 
 + 
 + 
 +{{page>cw4:footer}}
cw4/scripting.1576673562.txt.gz · Last modified: 2019/12/18 07:52 by Karsten75