User Tools

Site Tools


pf:prpl_information

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
pf:prpl_information [2015/02/25 17:29] Karsten75pf:prpl_information [2025/02/14 14:57] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +<-  [[pf:start| Game 4 home]]  <- [[:start |wiki home]]
 +
 ====== PRPL reference ====== ====== PRPL reference ======
 +[[ pf:prpldocsrc | PRPL Doc Src]]
 +
 +FIXME note: I just started this, it's still a mess. Feel free to clean up or alter.
  
 This reference is divided into two major sections with many subsections in each of those.  The purpose of this reference is to provide an index to all commands in the language, and define the input required and the output produced by each command. In many instances a short example of the use of the command is provided. This reference is divided into two major sections with many subsections in each of those.  The purpose of this reference is to provide an index to all commands in the language, and define the input required and the output produced by each command. In many instances a short example of the use of the command is provided.
  
-The Language API (Application Programming Interface) is related and common in many languages - these are used to control program execution and are part of the core language. The language API is identical to the [[ crpl:crplreference | CRPL language APIs]] - by reference those are included here.+The Language API (Application Programming Interface) is related and common in many languages - these are used to control program execution and are part of the core language. The language API is almost identical to the [[ crpl:crplreference | CRPL language APIs]] - by reference those are included here. There are a few extensions and syntactic differences, notable for global variables (which do not exist in CRPL) and list element access (square bracket notation). Unit attribute modification has also changed format.
  
 The rest of PRPL is contained in the Platform API and is game-specific. These govern the behavior of objects in the  game. The rest of PRPL is contained in the Platform API and is game-specific. These govern the behavior of objects in the  game.
Line 9: Line 14:
 To get started, review the [[crpl:overview|CRPL overview]] and the [[crpl:crpltutorial|programming tutorial]]. To get started, review the [[crpl:overview|CRPL overview]] and the [[crpl:crpltutorial|programming tutorial]].
  
-There is also an [[alphabetic list of commands]] in the language. In addition, you can [[crpl:examine map resources]] from other maps and missions from the game.+There is also an [[prpl:alphabetic list of commands]] in the language. In addition, you can [[prpl:examine map resources]] from other maps and missions from the game.
  
  
Line 20: Line 25:
 [[crpl:crplreference#comparators|Comparators]]\\ [[crpl:crplreference#comparators|Comparators]]\\
 [[crpl:crplreference#debugging|Debugging]]\\ [[crpl:crplreference#debugging|Debugging]]\\
-[[crpl:crplreference#lists|Lists]]\\+[[crpl:crplreference#lists|Lists]] FIXME PRPL uses []\\
 [[crpl:crplreference#logical_operators|Logical Operators]]\\ [[crpl:crplreference#logical_operators|Logical Operators]]\\
 [[crpl:crplreference#math_commands|Math Commands]]\\ [[crpl:crplreference#math_commands|Math Commands]]\\
Line 32: Line 37:
  
 === External references === === External references ===
-<-[[crpl:overview|CRPL Overview]]\\ +<-[[prpl:overview|PRPL Overview]]\\ 
-<-[[Alphabetic List of Commands]]\\+<-[[prpl:Alphabetic List of Commands]]\\
 <-[[Examine Map Resources]] <-[[Examine Map Resources]]
 <newcolumn> <newcolumn>
Line 39: Line 44:
 === Platform API === === Platform API ===
  
-[[crpl:crplreference#conversation_commands|Conversation Commands]]\\ +<note tip> For now, refer to the [[prpl:Alphabetic List of Commands]] until someone classifies them</note> 
-[[crpl:crplreference#creeper_commands|Creeper Commands]]\\ +
-[[crpl:crplreference#digitalis_Commands|Digitalis Commands]]\\ +
-[[crpl:crplreference#image_commands|Image Commands]]\\ +
-[[crpl:crplreference#input_commands|Input Commands]]\\ +
-[[crpl:crplreference#lists|List Commands]]\\ +
-[[crpl:crplreference#sound_commands|Sound Commands]]\\ +
-[[crpl:crplreference#movement_commands|Movement Commands]]\\ +
-[[crpl:crplreference#runner_commands|Runner Commands]]\\ +
-[[crpl:crplreference#score_commands|Score Commands]]\\ +
-[[crpl:crplreference#spore_commands|Spore Commands]]\\ +
-[[crpl:crplreference#terrain_and_wall_commands|Terrain and Wall Commands]]\\ +
-[[crpl:crplreference#unit_commands|Unit Commands]]\\ +
-[[crpl:crplreference#text_commands|Text Commands]]\\+
  
  
 === Unit Attribute Constants === === Unit Attribute Constants ===
-[[crpl:docs:getunitattribute#unit_constants|Constants]]\\+
 </columns> </columns>
  
-==== Language API ==== +==== Platform API ==== 
 <columns 100% 50% 0% 50% -> <columns 100% 50% 0% 50% ->
-<html><span id="vars_and_functions"></span></html>+<html><span id="type_description_goes_here"></span></html>
 |< 100% >| |< 100% >|
-Vars and Functions ^^^ +type description goes here ^^^ 
-[[crpl:docs:define|$VARNAME:DEF_VAL]] [[crpl:docs:ClearLocals]] | [[crpl:docs:delete|--VARNAME]]           +   
-[[crpl:docs:read|<-VARNAME]]  [[crpl:docs:write|->VARNAME]] | [[crpl:docs:exists|-?VARNAME]]          + |  |  
-[[crpl:docs:refread|<-!]]     [[crpl:docs:refwrite|->!]]   | [[crpl:docs:refexists|-?!]]             +   
-[[crpl:docs:refdelete|--?]] | |  | +  |  | 
-[[crpl:docs:call|@FUNC_NAME]] | [[crpl:docs:func|:FUNC_NAME]] |  |+  |  |
  
-^Built-in Functions^^^ +^Type Description^^^ 
-[[crpl:docs:func_destroyed|:destroyed]] [[crpl:docs:func_awake|:awake]] | [[crpl:docs:func_GameLoaded|:GameLoaded]] +| | |  
-[[crpl:docs:func_ShowMessageDialogCallback|:ShowMessageDialogCallback]] | |  | +| | |  | 
-[[crpl:docs:func_UserCancelAction|:UserCancelAction]] | |  |+| | |  |
  
 <newcolumn> <newcolumn>
  
-<html><span id="comparators"></span></html>+<html><span id="types"></span></html>
 |< 100% >| |< 100% >|
-Comparators ^^^^ +types ^^^^ 
-[[crpl:docs:gt]]   | [[crpl:docs:gte]]   [[crpl:docs:lt]]  [[crpl:docs:lte]]  +|      |  | | 
-[[crpl:docs:eq]]   | [[crpl:docs:neq]]   [[crpl:docs:eq0]] [[crpl:docs:neq0]] |  +|       | |  
-[[crpl:docs:TRUE]] [[crpl:docs:FALSE]]                                      |+      | |
 </columns> </columns>
  
pf/prpl_information.1424885361.txt.gz · Last modified: 2025/02/14 14:56 (external edit)