User Tools

Site Tools


crpl:cheatsheet

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
crpl:cheatsheet [2015/03/19 16:39] – [Modify Map] warrencrpl:cheatsheet [2015/08/26 23:26] – [Modify Map] warren
Line 14: Line 14:
 Argument types: i=integer, f=float, n=integer or float, s=string, u=unit ID, x=integer x coordinate, y=integer y coordinate, z=integer z coordinate, b=TRUE or FALSE (1 or 0), *=any, l=list, {u}=bunch of unit IDs, CONST_= one of the normal constants.  Argument types: i=integer, f=float, n=integer or float, s=string, u=unit ID, x=integer x coordinate, y=integer y coordinate, z=integer z coordinate, b=TRUE or FALSE (1 or 0), *=any, l=list, {u}=bunch of unit IDs, CONST_= one of the normal constants. 
  
 +Default values or legal values in ().
 ==== Basics ==== ==== Basics ====
 ^ Commands ^^^^ ^ Commands ^^^^
 | *special* [[crpl:docs:comment|#]] || *special* [[crpl:docs:define|$VARNAME:DEF_VAL]] || | *special* [[crpl:docs:comment|#]] || *special* [[crpl:docs:define|$VARNAME:DEF_VAL]] ||
-| *special* [[crpl:docs:read|<-VARNAME]] * || *special* * [[crpl:docs:write|->VARNAME]] ||+| *special* [[crpl:docs:read|<-VARNAME]] *(0) || *special* * [[crpl:docs:write|->VARNAME]] ||
 | ??? [[crpl:docs:call|@FUNC_NAME]] ??? || *special* [[crpl:docs:func|:FUNC_NAME]] || | ??? [[crpl:docs:call|@FUNC_NAME]] ??? || *special* [[crpl:docs:func|:FUNC_NAME]] ||
 | n n [[crpl:docs:gt]] b | n n [[crpl:docs:gte]] b | n n [[crpl:docs:lt]] b | n n [[crpl:docs:lte]] b | | n n [[crpl:docs:gt]] b | n n [[crpl:docs:gte]] b | n n [[crpl:docs:lt]] b | n n [[crpl:docs:lte]] b |
Line 23: Line 24:
 | b b [[crpl:docs:and]] b | b b [[crpl:docs:or]] b | b [[crpl:docs:not]] b || | b b [[crpl:docs:and]] b | b b [[crpl:docs:or]] b | b [[crpl:docs:not]] b ||
 | * * [[crpl:docs:swap]] * * | * [[crpl:docs:dup]] * * | * * [[crpl:docs:dup2]] * * * * || | * * [[crpl:docs:swap]] * * | * [[crpl:docs:dup]] * * | * * [[crpl:docs:dup2]] * * * * ||
-| n n [[ crpl:docs:add]] n | n [[ crpl:docs:sub]] n | n n [[ crpl:docs:mul]] n | *special* n n [[ crpl:docs:div]] n |+| n n [[ crpl:docs:add]] n | n [[ crpl:docs:sub]] n | n n [[ crpl:docs:mul]] n | *special* n n [[ crpl:docs:div]] n |
 | n [[ crpl:docs:max]] n | n [[ crpl:docs:min]] n | n n [[ crpl:docs:mod]] n || | n [[ crpl:docs:max]] n | n [[ crpl:docs:min]] n | n n [[ crpl:docs:mod]] n ||
 | * [[ crpl:docs:asfloat]] f | * [[ crpl:docs:asint]] i | n [[ crpl:docs:neg]] n | n [[ crpl:docs:sqrt]] f | | * [[ crpl:docs:asfloat]] f | * [[ crpl:docs:asint]] i | n [[ crpl:docs:neg]] n | n [[ crpl:docs:sqrt]] f |
Line 41: Line 42:
 | *special* [[crpl:docs:Self]] u | *special* [[crpl:docs:TRUE]] b | *special* [[crpl:docs:FALSE]] b || | *special* [[crpl:docs:Self]] u | *special* [[crpl:docs:TRUE]] b | *special* [[crpl:docs:FALSE]] b ||
 | *special* [[crpl:docs:I]] i | *special* [[crpl:docs:J]] i | *special* [[crpl:docs:K]] i || | *special* [[crpl:docs:I]] i | *special* [[crpl:docs:J]] i | *special* [[crpl:docs:K]] i ||
-| *special* [[crpl:docs:MapHeight]] y || *special* [[crpl:docs:MapWidth]] x ||+| *special* [[crpl:docs:MapHeight]] y(84) || *special* [[crpl:docs:MapWidth]] x(128) ||
 | IsDestroyed b(FALSE) | Health f(1) | MaxHealth f(1) || | IsDestroyed b(FALSE) | Health f(1) | MaxHealth f(1) ||
 | CoordX i | CoordY i | DestroyMode i(-1) || | CoordX i | CoordY i | DestroyMode i(-1) ||
Line 73: Line 74:
  
 Unit type names: (not case sensitive) Unit type names: (not case sensitive)
-Collector, Relay, Reactor, OreMine, Siphon, Terp, Guppy, PulseCannon, Mortar, Strafer, Bomber, Sprayer, Nullifier, Shield, Beam, Sniper, Forge, Bertha, PowerZone, OreDeposit, ResourcePack, ShieldKey, TechArtifact, MessageArtifact, AOO, Thor, CRPLCore, ResourcePack, Totem, Emitter, SporeTower, RunnerNest, AETower, Inhibitor.+CommandNode, Collector, Relay, Reactor, OreMine, Siphon, Terp, Guppy, PulseCannon, Mortar, Strafer, Bomber, Sprayer, Nullifier, Shield, Beam, Sniper, Forge, Bertha, PowerZone, OreDeposit, ResourcePack, ShieldKey, TechArtifact, MessageArtifact, AOO, Thor, CRPLCore, ResourcePack, Totem, Emitter, SporeTower, RunnerNest, AETower, Inhibitor.
  
 Extended unit type names: (Cannot be directly created) Extended unit type names: (Cannot be directly created)
Line 109: Line 110:
  
 ^ Constants ^^^ ^ Constants ^^^
-| Ammo f(0) | MaxAmmo f(0) | const_PacketRequestDelay i(15) |+| Ammo f(0) | MaxAmmo f(0) | PacketRequestDelay i(15) |
 | AmmoAC f(0) | MaxAmmoAC f(0) | ACPacketRequestDelay i(15) | | AmmoAC f(0) | MaxAmmoAC f(0) | ACPacketRequestDelay i(15) |
 | CanRequestAmmo b(FALSE) | RequestPackets b(FALSE) || | CanRequestAmmo b(FALSE) | RequestPackets b(FALSE) ||
Line 134: Line 135:
 | b [[crpl:docs:SetScreenMode]] | x y [[crpl:docs:SetScreenCoords]] | x y [[crpl:docs:SetScreenPixelCoords]] | | b [[crpl:docs:SetScreenMode]] | x y [[crpl:docs:SetScreenCoords]] | x y [[crpl:docs:SetScreenPixelCoords]] |
 | [[crpl:docs:GetCameraPosition]] x y | x y [[crpl:docs:SetCameraPosition]] || | [[crpl:docs:GetCameraPosition]] x y | x y [[crpl:docs:SetCameraPosition]] ||
-| [[crpl:docs:GetCameraZoom]] i | i [[crpl:docs:SetCameraZoom]] ||+| [[crpl:docs:GetCameraZoom]] i | i(4) [[crpl:docs:SetCameraZoom]] ||
 | s [[crpl:docs:SetText]] | iORs [[crpl:docs:SetTextAnchor]] | i i i i [[crpl:docs:SetTextColor]] | | s [[crpl:docs:SetText]] | iORs [[crpl:docs:SetTextAnchor]] | i i i i [[crpl:docs:SetTextColor]] |
 | f(1) [[crpl:docs:SetTextSize]] | x [[crpl:docs:SetTextX]] | y [[crpl:docs:SetTextY]] | | f(1) [[crpl:docs:SetTextSize]] | x [[crpl:docs:SetTextX]] | y [[crpl:docs:SetTextY]] |
Line 166: Line 167:
 ^ Commands ^^^ ^ Commands ^^^
 | [[crpl:docs:CreateList]] l | i [[crpl:docs:CreateListStartingSize]] l || | [[crpl:docs:CreateList]] l | i [[crpl:docs:CreateListStartingSize]] l ||
-| [[crpl:docs:GetListCount]] i | l i [[crpl:docs:GetListElement]] * | l i * [[crpl:docs:SetListElement]] |+[[crpl:docs:GetListCount]] i | l i [[crpl:docs:GetListElement]] * | l i * [[crpl:docs:SetListElement]] |
 | l i * [[crpl:docs:InsertListElement]] | l i [[crpl:docs:RemoveListElement]] || | l i * [[crpl:docs:InsertListElement]] | l i [[crpl:docs:RemoveListElement]] ||
 | l * [[crpl:docs:AppendToList]] | l * [[crpl:docs:PrependToList]] || | l * [[crpl:docs:AppendToList]] | l * [[crpl:docs:PrependToList]] ||
Line 179: Line 180:
 | f [[crpl:docs:SetCreeperFlowRateUD]] | f [[crpl:docs:SetCreeperFlowRateOnDigitalisUD]] || | f [[crpl:docs:SetCreeperFlowRateUD]] | f [[crpl:docs:SetCreeperFlowRateOnDigitalisUD]] ||
 | i i [[crpl:docs:SetWind]] | i(1000) [[crpl:docs:SetCreeperEvaporationLimit]] || | i i [[crpl:docs:SetWind]] | i(1000) [[crpl:docs:SetCreeperEvaporationLimit]] ||
-| i [[crpl:docs:SetCreeperMax]] | i [[crpl:docs:SetAntiCreeperMax]] ||+| i(0) [[crpl:docs:SetCreeperMax]] | i(0) [[crpl:docs:SetAntiCreeperMax]] ||
 | x y [[crpl:docs:GetPinFieldCell]] b b | x y b b [[crpl:docs:SetPinFieldCell]] || | x y [[crpl:docs:GetPinFieldCell]] b b | x y b b [[crpl:docs:SetPinFieldCell]] ||
 | x y i i i i [[crpl:docs:SetFieldCell]] | x y [[crpl:docs:GetFieldCell]] i i i i || | x y i i i i [[crpl:docs:SetFieldCell]] | x y [[crpl:docs:GetFieldCell]] i i i i ||
Line 239: Line 240:
  
 ^ CONSTANTS ^^ ^ CONSTANTS ^^
-| *special* [[crpl:docs:E]] f | DestroyOnDamage b(TRUE) |+| *special* [[crpl:docs:E]] f | |
  
  
crpl/cheatsheet.txt · Last modified: 2015/08/27 16:10 by warren