{{page>cw4:header&nofooter}} {{page>4rpl:header&nofooter}} ====== 4RPL Scripting Language ====== Want to get started? Read the [[Overview]], or see some [[cw4:Tutorials]]. Also some help for testing [[CW4:Mverse]] scripts. ===== API reference ===== ==== Variables ==== [[4rpl:commands:define|$init_var]] (define) \\ [[4rpl:commands:define2|$$init_var]] (define) \\ [[4rpl:commands:read|<-var]] (read) \\ [[4rpl:commands:write|->var]] (write) \\ [[4rpl:commands:exists|-?var]] (exists) \\ [[4rpl:commands:delete|--var]] (delete) \\ [[4rpl:commands:refread|<-!]] (ref read) \\ [[4rpl:commands:refwrite|->!]] (ref write) \\ [[4rpl:commands:refexists|-?!]] (ref exists) \\ [[4rpl:commands:refdelete|--!]] (ref delete) \\ Clear [[4rpl:commands:ClearLocals|Locals]] | [[4rpl:commands:ClearGlobals|Globals]] \\ [[4rpl:commands:Copy]] \\ [[4rpl:commands:DeepCopy]] \\ [[4rpl:commands:NotPersist]] \\ \\ **Special var syntax** \\ [[4rpl:commands:specialsyntax#global_variables| · Global variables]] \\ [[4rpl:commands:SpecialSyntax#vectors| · Vectors]] \\ [[4rpl:commands:SpecialSyntax#lists| · Lists]] \\ [[4rpl:commands:SpecialSyntax#tables| · Tables]] \\ ==== Functions ==== [[4rpl:commands:call|@FUNC_NAME]] \\ [[4rpl:commands:func|:FUNC_NAME]] \\ [[4rpl:commands:refcall]] \\ **Built in Callbacks** \\ [[4rpl:commands:func_awake|:Awake]] \\ [[4rpl:commands:func_buildcomplete|:BuildComplete]] \\ [[4rpl:commands:func_destroyed|:Destroyed]] \\ [[4rpl:commands:func_gameloaded|:GameLoaded]] \\ [[4rpl:commands:func_once|:Once]] \\ [[4rpl:commands:func_selected|:_Selected]] \\ [[4rpl:commands:func_uicallback|:_UICallback]] \\ [[4rpl:commands:func_warepacketsent|:_WarePacketSent]] \\ \\ **Built in Messages** \\ [[4rpl:commands:MSG_FrameAdvance]] \\ [[4rpl:commands:MSG_PreUpdate]] \\ [[4rpl:commands:MSG_PostUpdate]] \\ [[4rpl:commands:MSG_SaveGame]] \\ ==== Arithmetic ==== //Note//[(alias>alternate notation in [[cw4:symbol_aliasing]])] \\ [[4rpl:commands:add]] \\ [[4rpl:commands:div]] \\ [[4rpl:commands:mod]] \\ [[4rpl:commands:mod2]] \\ [[4rpl:commands:mul]] \\ [[4rpl:commands:pow]] \\ [[4rpl:commands:sub]] \\ \\ \\ \\ \\ \\ \\ \\ ** Syntax ** \\ [[4rpl:commands:Comma]] \\ [[4rpl:commands:Comment]] \\ [[4RPL:Data Types]] \\ [[cw4:Symbol Aliasing]] ==== Comparators ==== //Note//[(alias)] \\ [[4rpl:commands:eq]] \\ [[4rpl:commands:eq0]] \\ [[4rpl:commands:gt]] \\ [[4rpl:commands:gt0]] \\ [[4rpl:commands:gte]] \\ [[4rpl:commands:gte0]] \\ [[4rpl:commands:lt]] \\ [[4rpl:commands:lt0]] \\ [[4rpl:commands:lte]] \\ [[4rpl:commands:lte0]] \\ [[4rpl:commands:neq]] \\ [[4rpl:commands:neq0]] \\ \\ \\ **Named Collections** \\ · [[4rpl:commands:Unit Types]] \\ · [[4rpl:commands:Sounds]] \\ ==== Logic ==== //Note//[(alias>)] \\ [[4rpl:commands:and]] \\ [[4rpl:commands:not]] \\ [[4rpl:commands:or]] \\ [[4rpl:commands:xor]] \\ [[4rpl:commands:true]] \\ [[4rpl:commands:false]] \\ \\ \\ \\ \\ \\ \\ \\ ---- ==== Debugging ==== [[4rpl:commands:ClearTraceLog]] \\ [[4rpl:commands:Debug]] \\ [[4rpl:commands:DebugAllSp]] \\ [[4rpl:commands:Trace]] \\ [[4rpl:commands:Trace2]] \\ [[4rpl:commands:Trace3]] \\ [[4rpl:commands:Trace4]] \\ [[4rpl:commands:Trace5]] \\ [[4rpl:commands:TraceAll]] \\ [[4rpl:commands:TraceAllSp]] \\ [[4rpl:commands:TraceStack]] \\ ==== Flow Control ==== [[4rpl:commands:break]] \\ [[4rpl:commands:do]] \\ [[4rpl:commands:else]] \\ [[4rpl:commands:endif]] \\ [[4rpl:commands:endonce]] \\ [[4rpl:commands:endwhile]] \\ [[4rpl:commands:if]] \\ [[4rpl:commands:I]] \\ [[4rpl:commands:J]] \\ [[4rpl:commands:K]] \\ [[4rpl:commands:loop]] \\ [[4rpl:commands:once]] \\ [[4rpl:commands:repeat]] \\ [[4rpl:commands:return]] \\ [[4rpl:commands:while]] \\ ==== Constants ==== [[4rpl:commands:Deg2Rad]] \\ [[4rpl:commands:E]] \\ [[4rpl:commands:HalfPI]] \\ [[4rpl:commands:PI]] \\ [[4rpl:commands:QuarterPI]] \\ [[4rpl:commands:Rad2Deg]] \\ [[4rpl:commands:Self]] \\ [[4rpl:commands:TAU]] \\ [[4rpl:commands:ThreeHalvesPI]] \\ [[4rpl:commands:ThreeQuarterPI]] \\ [[4rpl:commands:TwoPI]] \\ [[4rpl:commands:Vector0]] \\ ==== Tables ==== [[4rpl:commands:CreateTable]] \\ GlobalTable [[4rpl:commands:GetGlobalTable|Get]] | [[4rpl:commands:SetGlobalTable|Set]] \\ [[4rpl:commands:RemoveTableElement]] \\ [[4rpl:commands:Table]] \\ TableCount [[4rpl:commands:GetTableCount]|Get]] \\ TableElement [[4rpl:commands:GetTableElement|Get]] | [[4rpl:commands:SetTableElement|Set]] \\ TableElementRPN [[4rpl:commands:SetTableElementRPN|Set]] \\ TableKeys [[4rpl:commands:GetTableKeys|Get]] \\ [[4rpl:commands:TableN]] \\ TableValues [[4rpl:commands:GetTableValues|Get]] \\ ==== Vectors ==== Cell [[4rpl:commands:FromCell|From]] | [[4rpl:commands:ToCell|To]] \\ [[4rpl:commands:Cross]] \\ [[4rpl:commands:Dot]] \\ [[4rpl:commands:EV2]] \\ [[4rpl:commands:EV3]] \\ [[4rpl:commands:EV4]] \\ [[4rpl:commands:Magnitude]] \\ [[4rpl:commands:Normalize]] \\ [[4rpl:commands:SqrMagnitude]] \\ [[4rpl:commands:V2]] \\ [[4rpl:commands:V3]] \\ [[4rpl:commands:V4]] \\ ==== Output ==== //Note//[(Edit>Output to the RPL.txt file is //only// produced if the game is in Edit mode. In normal circumstances, no output will be produced.)] \\ [[4rpl:commands:CR]] \\ [[4rpl:ClearPrintLog]] \\ [[4rpl:commands:DQ]] \\ [[4rpl:commands:LF]] \\ [[4rpl:commands:Print]] | [[4rpl:commands:Print2]] | [[4rpl:commands:Print3]] | [[4rpl:commands:Print4]] | [[4rpl:commands:Print5]] \\ [[4rpl:commands:PrintAllSp]] \\ [[4rpl:commands:PrintAll]] \\ PrintPrefixEnabled [[[[4rpl:commands:GetPrintPrefixEnabled|Get]] | [[[[4rpl:commands:SetPrintPrefixEnabled|Set]] \\ [[4rpl:commands:PrintStack]] \\ [[4rpl:commands:TAB]] \\ ---- ==== Lists ==== [[4rpl:commands:AppendStackToList]] \\ [[4rpl:commands:AppendToList]] \\ [[4rpl:commands:ClearList]] \\ [[4rpl:commands:CreateList]] \\ [[4rpl:commands:CreateListStartingSize]] \\ GlobalList [[4rpl:commands:GetGlobalList|Get]] | [[4rpl:commands:SetGlobalList|Set]] \\ [[4rpl:commands:InsertListElement]] \\ [[4rpl:commands:List]] \\ [[4rpl:commands:ListContains]] \\ ListCount [[4rpl:commands:GetListCount|Get]] \\ ListElement [[4rpl:commands:GetListElement|Get]] | [[4rpl:commands:SetListElement|Set]] \\ ListElementRPN [[4rpl:commands:SetListElementRPN|Set]] \\ [[4rpl:commands:ListN]] \\ [[4rpl:commands:PopList]] \\ [[4rpl:commands:PrependStackToList]] \\ [[4rpl:commands:PrependToList]] \\ [[4rpl:commands:PushList]] \\ [[4rpl:commands:RemoveListElement]] \\ [[4rpl:commands:ReverseList]] \\ [[4rpl:commands:StringToList]] ==== Math ==== [[4rpl:commands:abs]] \\ [[4rpl:commands:acos]] \\ [[4rpl:commands:approximately]] \\ [[4rpl:commands:asin]] \\ [[4rpl:commands:atan2]] \\ [[4rpl:commands:atan]] \\ [[4rpl:commands:avg2]] \\ [[4rpl:commands:ceil]] \\ [[4rpl:commands:cos]] \\ [[4rpl:commands:floor]] \\ [[4rpl:commands:ln]] \\ [[4rpl:commands:log10]] \\ [[4rpl:commands:log]] \\ [[4rpl:commands:max]] \\ [[4rpl:commands:min]] \\ [[4rpl:commands:neg]] \\ [[4rpl:commands:round]] \\ [[4rpl:commands:sign0]] \\ [[4rpl:commands:sign]] \\ [[4rpl:commands:sin]] \\ [[4rpl:commands:sqrt]] \\ [[4rpl:commands:tan]] \\ ==== Math Utility ==== [[4rpl:commands:BallisticArcLateral]] \\ [[4rpl:commands:BallisticArcPos]] \\ [[4rpl:commands:clamp01]] \\ [[4rpl:commands:clamp]] \\ [[4rpl:commands:DistanceCell]] \\ [[4rpl:commands:DistancePointLine]] \\ [[4rpl:commands:Distance]] \\ [[4rpl:commands:FC]] \\ [[4rpl:commands:MoveTowards]] \\ [[4rpl:commands:RandFloat]] \\ [[4rpl:commands:RandInt]] \\ [[4rpl:commands:RotateTowardsCell]] \\ [[4rpl:commands:RotateTowards]] \\ [[4rpl:commands:ShortestAngle]] \\ [[4rpl:commands:SignalGenerator]] \\ [[4rpl:commands:UFC]] \\ [[4rpl:commands:VectorAngleCell]] \\ [[4rpl:commands:VectorAngle]] \\ ==== Data ==== [[4rpl:commands:asfloat]] \\ [[4rpl:commands:asint]] \\ [[4rpl:commands:asstring]] \\ [[4rpl:commands:IsNull]] \\ [[4rpl:commands:NULL]] \\ Type [[4rpl:commands:GetType|Get ]]\\ ==== Timers ==== Timer0 [[4rpl:commands:GetTimer0|Get]] | [[4rpl:commands:SetTimer0|Set]] \\ Timer1 [[4rpl:commands:GetTimer1|Get]] | [[4rpl:commands:SetTimer1|Set]] \\ Timer2 [[4rpl:commands:GetTimer2|Get]] | [[4rpl:commands:SetTimer2|Set]] \\ Timer3 [[4rpl:commands:GetTimer3|Get]] | [[4rpl:commands:SetTimer3|Set]] \\ TimerObeyPause0 [[4rpl:commands:SetTimerObeyPause0|Set]] \\ TimerObeyPause1 [[4rpl:commands:SetTimerObeyPause1|Set]] \\ TimerObeyPause2 [[4rpl:commands:SetTimerObeyPause2|Set]] \\ TimerObeyPause3 [[4rpl:commands:SetTimerObeyPause3|Set]] \\ ==== Editing ==== [[4rpl:commands:DestroyTerrainRangeIndicator]] \\ [[4rpl:commands:EditAddUndo]] \\ [[4rpl:commands:EditRedo]] \\ [[4rpl:commands:EditRestoreUndo]] \\ [[4rpl:commands:ShowTerrainRangeIndicator]] \\ ---- ==== Game ==== ADALogOpen [[4rpl:commands:GetADALogOpen|Get]] | [[4rpl:commands:SetADALogOpen|Set]] \\ [[4rpl:commands:ApplyToDamageMap]]\\ [[4rpl:commands:BounceFadeBlack]]\\ [[4rpl:commands:Cancel]]\\ CanMoveUnits [[4rpl:commands:GetCanMoveUnits|Get]] | [[4rpl:commands:SetCanMoveUnits|Set]] \\ [[4rpl:commands:CloseGameMessage]]\\ CModEditMenuName [[4rpl:commands:SetCModEditMenuName|Set]] \\ CModPlayerMenuName [[4rpl:commands:SetCModPlayerMenuName|Set]] \\ CreeperGraphAvailable [[4rpl:commands:SetCreeperGraphAvailable|Set]] \\ [[4rpl:commands:DamageMesh]]\\ DepartButtonAvailable [[4rpl:commands:SetDepartButtonAvailable|Set]] \\ EcoCounts [[4rpl:commands:GetEcoCounts|Get]] \\ EditMode [[4rpl:commands:GetEditMode|Get]] \\ EnergyBonus [[4rpl:commands:GetEnergyBonus|Get]] \\ EnergyEco [[4rpl:commands:GetEnergyEco|Get]] \\ EnergyGeneration [[4rpl:commands:GetEnergyGeneration|Get]] \\ EnergyStore [[4rpl:commands:GetEnergyStore|Get]] \\ EnergyUse [[4rpl:commands:GetEnergyUse|Get]] \\ [[4rpl:commands:ElapsedTime]]\\ FieldCell [[4rpl:commands:GetFieldCell|Get]] | [[4rpl:commands:SetFieldCell|Set]] \\ FieldRect [[4rpl:commands:SetFieldRect|Set]] \\ FinalDialogOpen [[4rpl:commands:GetFinalDialogOpen|Get]] \\ [[4rpl:commands:FindUnitEnemy]]\\ GameFrameCount [[4rpl:commands:GetGameFrameCount|Get]] \\ GameMessageText [[4rpl:commands:SetGameMessageText|Set]] \\ GameTickCount [[4rpl:commands:GetGameTickCount|Get]] \\ GameUpdateCount [[4rpl:commands:GetGameUpdateCount|Get]] \\ [[4rpl:commands:GenerateEnergy]] \\ [[4rpl:commands:GetBuildUnit]] \\ [[4rpl:commands:InvocationCount]] \\ [[4rpl:commands:IsADAMessageRead]]\\ [[4rpl:commands:IsADAMessageShowing]]\\ [[4rpl:commands:IsBuildUnitSelected]]\\ [[4rpl:commands:IsGameMessageShowing]] \\ [[4rpl:commands:IsV2InMap]]\\ [[4rpl:commands:IsV3InMap]]\\ LastExecutionCount [[4rpl:commands:GetLastExecutionCount|Get]] \\ MapSize [[4rpl:commands:GetMapSize|Get]] \\ MeshHealth [[4rpl:commands:GetMeshHealth|Get]] | [[4rpl:commands:SetMeshHealth|Set]] \\ NearestAirSac [[4rpl:commands:GetNearestAirSac|Get]] \\ NearestSniperTarget [[4rpl:commands:GetNearestSniperTarget|Get]] \\ NearestSpore [[4rpl:commands:GetNearestSpore|Get]] \\ OpenBuildTab [[4rpl:commands:GetOpenBuildTab|Get]] \\ OrbitalCount [[4rpl:commands:GetOrbitalCount|Get]] | [[4rpl:commands:SetOrbitalCount|Set]] \\ Pause [[4rpl:commands:GetPause|Get]] | [[4rpl:commands:SetPause|Set]] \\ RandMapCell [[4rpl:commands:GetRandMapCell|Get]] \\ [[4rpl:commands:RefreshUnitLosCache]]\\ [[4rpl:commands:RemoveUnitDamageMap]]\\ SelectedUnits [[4rpl:commands:GetSelectedUnits|Get]] \\ [[4rpl:commands:ShowADAMessage]]\\ [[4rpl:commands:ShowADAMessageAtCell]]\\ [[4rpl:commands:ShowADAMessageAtUnit]]\\ [[4rpl:commands:ShowGameMessage]]\\ [[4rpl:commands:ShowUIIndicator]]\\ SoylentCount [[4rpl:commands:SetSoylentCount|Set]]\\ SoylentDelay [[4rpl:commands:SetSoylentDelay|Set]]\\ SoylentMode [[4rpl:commands:GetSoylentMode|Get]] | [[4rpl:commands:SetSoylentMode|Set]]\\ [[4rpl:commands:StopConsole]]\\ [[4rpl:commands:SuppressTotemActivation]]\\ TerraformActiveCell [[4rpl:commands:SetTerraformActiveCell|Set]] \\ TerraformDigSite [[4rpl:commands:GetTerraformDigSite|Get]] \\ TerraformMarker [[4rpl:commands:GetTerraformMarker|Get]] | [[4rpl:commands:SetTerraformMarker|Set]] \\ TerraformMenuOpen [[4rpl:commands:GetTerraformMenuOpen|Get]] \\ TimeString [[4rpl:commands:GetTimeString|Get]] \\ UnderCreeperEffectEnabled [[4rpl:commands:GetUnderCreeperEffectEnabled|Get]] | [[4rpl:commands:SetUnderCreeperEffectEnabled|Set]] \\ UnitsSelectable [[4rpl:commands:SetUnitsSelectable|Set]] \\ ==== Unit ==== //Note//[(core>Rift Lab, ERN Portal, and Factory are in [[4RPL:start#core_units|Core Units]])] \\ AllLegalUnitCells [[4rpl:commands:SetAllLegalUnitCells|Set]]\\ CellOccupiedCount [[4rpl:commands:GetCellOccupiedCount|Get]] | [[4rpl:commands:SetCellOccupiedCount|Set]]\\ [[4rpl:commands:ClearUnitStun]] \\ [[4rpl:commands:ConstructUnit]] \\ [[4rpl:commands:CreateUnit]] \\ [[4rpl:commands:CreateUnitOnTerrain]] \\ [[4rpl:commands:DamageUnit]] \\ [[4rpl:commands:DeployUnitShield]] \\ [[4rpl:commands:DestroyUnit]] \\ LegalUnitCells [[4rpl:commands:SetLegalUnitCells|Set]]\\ MinerMode [[4rpl:commands:GetMinerMode|Get]]\\ [[4rpl:commands:MoveTowardsAndAvoid]] \\ [[4rpl:commands:MoveTowardsCellAndAvoid]] \\ NearestSpecialTarget [[4rpl:commands:NearestSpecialTarget]|Get]] \\ [[4rpl:commands:RotateUnit]] \\ [[4rpl:commands:RotateUnitTowards]] \\ [[4rpl:commands:RotateUnitTowardsCell]] \\ Script1Var [[4rpl:commands:GetScript1Var|Get]] | [[4rpl:commands:SetScript1Var|Set]] \\ ScriptVar [[4rpl:commands:GetScriptVar|Get]] | [[4rpl:commands:SetScriptVar|Set]] \\ SpecialTargets [[4rpl:commands:SpecialTargets]|Get]] \\ [[4rpl:commands:StunUnit]] \\ [[4rpl:commands:StunUnitsInRange]] \\ TotemActivated [[4rpl:commands:GetTotemActivated|Get]] | [[4rpl:commands:SetTotemActivated|Set]] \\ UnitAmmoWare [[4rpl:commands:GetUnitAmmoWare|Get]] | [[4rpl:commands:SetUnitAmmoWare|Set]] \\ UnitBuildLimit [[4rpl:commands:GetUnitBuildLimit|Get]] | [[4rpl:commands:SetUnitBuildLimit|Set]] \\ UnitBuildWare [[4rpl:commands:GetUnitBuildWare|Get]] | [[4rpl:commands:SetUnitBuildWare|Set]] \\ UnitCanBuild [[4rpl:commands:GetUnitCanBuild|Get]] | [[4rpl:commands:SetUnitCanBuild|Set]] \\ UnitCell [[4rpl:commands:GetUnitCell|Get]] | [[4rpl:commands:SetUnitCell|Set]] \\ UnitConnectedToRiftLab [[4rpl:commands:GetUnitConnectedToRiftLab|Get]]\\ UnitConstructing [[4rpl:commands:GetUnitConstructing|Get]]\\ UnitConstructingData [[4rpl:commands:GetUnitConstructingData|Get]]\\ UnitCount [[4rpl:commands:GetUnitCount|Get]]\\ UnitDebugText [[4rpl:commands:SetUnitDebugText|Set]]\\ UnitERNSimulated [[4rpl:commands:GetUnitERNSimulated|Get]] |[[4rpl:commands:SetUnitERNSimulated|Set]]\\ UnitForward [[4rpl:commands:GetUnitForward|Get]] | [[4rpl:commands:SetUnitForward|Set]] \\ UnitInCreeper [[4rpl:commands:GetUnitInCreeper|Get]] \\ UnitMiniMapImage [[4rpl:commands:SetUnitMiniMapImage|Set]]\\ UnitMiniMapImageColor [[4rpl:commands:SetUnitMiniMapImageColor|Set]]\\ UnitMiniMapText [[4rpl:commands:SetUnitMiniMapText|Set]]\\ UnitMiniMapTimeToEvent [[4rpl:commands:SetUnitMiniMapTimeToEvent|Set]]\\ UnitMoveCell [[4rpl:commands:GetUnitMoveCell|Get]] | [[4rpl:commands:SetUnitMoveCell|Set]] \\ UnitOrientation [[4rpl:commands:GetUnitOrientation|Get]] | [[4rpl:commands:SetUnitOrientation|Set]] \\ UnitOutlineColor [[4rpl:commands:SetUnitOutlineColor|Set]]\\ UnitOutlineEnabled [[4rpl:commands:SetUnitOutlineEnabled|Set]]\\ UnitOutlineMode [[4rpl:commands:SetUnitOutlineMode|Set]]\\ UnitOutlineWidth [[4rpl:commands:SetUnitOutlineWidth|Set]]\\ UnitPopupEnabled [[4rpl:commands:SetUnitPopupEnabled|Set]]\\ UnitPopupText0 [[4rpl:commands:SetUnitPopupText0|Set]]\\ UnitPopupText1 [[4rpl:commands:SetUnitPopupText1|Set]]\\ UnitPosition [[4rpl:commands:GetUnitPosition|Get]] | [[4rpl:commands:SetUnitPosition|Set]] \\ UnitRotation [[4rpl:commands:GetUnitRotation|Get]] | [[4rpl:commands:SetUnitRotation|Set]] \\ UnitsByType [[4rpl:commands:GetUnitsByType|Get]]\\ UnitSelectable [[4rpl:commands:GetUnitSelectable|Get]] | [[4rpl:commands:SetUnitSelectable|Set]] \\ UnitSelected [[4rpl:commands:GetUnitSelected|Get]] | [[4rpl:commands:SetUnitSelected|Set]] \\ UnitShieldRange [[4rpl:commands:GetUnitShieldRange|Get]] | [[4rpl:commands:SetUnitShieldRange|Set]] \\ UnitShieldVisible [[4rpl:commands:SetUnitShieldVisible|Set]]\\ Units [[4rpl:commands:GetUnits|Get]]\\ UnitsInRange [[4rpl:commands:GetUnitsInRange|Get]]\\ UnitSettings [[4rpl:commands:GetUnitSettings|Get]] | [[4rpl:commands:SetUnitSettings|Set]] \\ UnitSpecifiedTarget [[4rpl:commands:GetUnitSpecifiedTarget|Get]] | [[4rpl:commands:SetUnitSpecifiedTarget|Set]] | [[4rpl:commands:ClearUnitSpecifiedTarget|Clear]] \\ UnitSpecifiedTargetOccupiesMap [[4rpl:commands:SetUnitSpecifiedTargetOccupiesMap|Set]]\\ UnitSpecifiedTargetPathHeight [[4rpl:commands:SetUnitSpecifiedTargetPathHeight|Set]]\\ UnitSpecifiedTargetPathSourceOffset [[4rpl:commands:SetUnitSpecifiedTargetPathSourceOffset|Set]]\\ UnitSpecifiedTargetShowPath [[4rpl:commands:SetUnitSpecifiedTargetShowPath|Set]]\\ UnitSuppressedMovement [[4rpl:commands:GetUnitSuppressedMovement|Get]] | [[4rpl:commands:SetUnitSuppressedMovement|Set]] \\ UnitType [[4rpl:commands:GetUnitType|Get]] \\ UnitTrueGuid [[4rpl:commands:GetUnitTrueGuid|Get]] \\ UnitUIOptions [[4rpl:commands:GetUnitUIOptions|Get]] | [[4rpl:commands:SetUnitUIOptions|Set]] \\ UnitUIState [[4rpl:commands:GetUnitUIState|Get]] | [[4rpl:commands:SetUnitUIState|Set]] \\ UnitUIText [[4rpl:commands:GetUnitUIText|Get]] | [[4rpl:commands:SetUnitUIText|Set]] \\ [[4rpl:commands:UseLegalUnitCells]] \\ WallCharged [[4rpl:commands:SetWallCharged|Set]]\\ ==== Unit Attributes ==== [[4rpl:commands:AddAsWareHolder]] \\ [[4rpl:commands:RemoveAsWareHolder]] \\ UnitAmmo [[4rpl:commands:GetUnitAmmo|Get]] | [[4rpl:commands:SetUnitAmmo|Set]] \\ UnitAnticreeperDamages [[4rpl:commands:GetUnitAnticreeperDamages|Get]] | [[4rpl:commands:SetUnitAnticreeperDamages|Set]] \\ UnitArmed [[4rpl:commands:GetUnitArmed|Get]] | [[4rpl:commands:SetUnitArmed|Set]] \\ UnitCanDestroy [[4rpl:commands:GetUnitCanDestroy|Get]] | [[4rpl:commands:SetUnitCanDestroy|Set]] \\ UnitCanMove [[4rpl:commands:GetUnitCanMove|Get]] | [[4rpl:commands:SetUnitCanMove|Set]] \\ UnitCanStun [[4rpl:commands:GetUnitCanStun|Get]] | [[4rpl:commands:SetUnitCanStun|Set]] \\ UnitConnectable [[4rpl:commands:GetUnitConnectable|Get]] | [[4rpl:commands:SetUnitConnectable|Set]] \\ UnitCreeperDamages [[4rpl:commands:GetUnitCreeperDamages|Get]] | [[4rpl:commands:SetUnitCreeperDamages|Set]] \\ UnitDamagedByAC [[4rpl:commands:GetUnitDamagedByAC|Get]] | [[4rpl:commands:SetUnitDamagedByAC|Set]] \\ UnitDamagedByCreeper [[4rpl:commands:GetUnitDamagedByCreeper|Get]] | [[4rpl:commands:SetUnitDamagedByCreeper|Set]] \\ UnitDestroyed [[4rpl:commands:GetUnitDestroyed|Get]] \\ UnitDestroyUnevenLand [[4rpl:commands:GetUnitDestroyUnevenLand|Get]] | [[4rpl:commands:SetUnitDestroyUnevenLand|Set]] \\ UnitEnabled [[4rpl:commands:GetUnitEnabled|Get]] | [[4rpl:commands:SetUnitEnabled|Set]] \\ UnitERNState [[4rpl:commands:GetUnitERNState|Get]] \\ UnitFireOffset [[4rpl:commands:GetUnitFireOffset|Get]] | [[4rpl:commands:SetUnitFireOffset|Set]] \\ UnitFootprintResistsCreeperHeight [[4rpl:commands:GetUnitFootprintResistsCreeperHeight|Get]] | [[4rpl:commands:SetUnitFootprintResistsCreeperHeight|Set]] \\ UnitGrowsMesh [[4rpl:commands:GetUnitGrowsMesh|Get]] | [[4rpl:commands:SetUnitGrowsMesh|Set]] \\ UnitHealRate [[4rpl:commands:GetUnitHealRate|Get]] | [[4rpl:commands:SetUnitHealRate|Set]] \\ UnitHealth [[4rpl:commands:GetUnitHealth|Get]] | [[4rpl:commands:SetUnitHealth|Set]] \\ UnitLOSEnabled [[4rpl:commands:getunitlosenabled|Get]] | [[4rpl:commands:SetUnitLosEnabled|Set]] \\ UnitMaxAmmo [[4rpl:commands:GetUnitMaxAmmo|Get]] | [[4rpl:commands:SetUnitMaxAmmo|Set]] \\ UnitMaxHealth [[4rpl:commands:GetUnitMaxHealth|Get]] | [[4rpl:commands:SetUnitMaxHealth|Set]] \\ UnitOccupiesLand [[4rpl:commands:GetUnitOccupiesLand|Get]] | [[4rpl:commands:SetUnitOccupiesLand|Set]] \\ UnitOfficialName [[4rpl:commands:GetUnitOfficialName|Get]] \\ UnitPacketRequestRate [[4rpl:commands:GetUnitPacketRequestRate|Get]] | [[4rpl:commands:SetUnitPacketRequestRate|Set]] \\ UnitModRanges [[4rpl:commands:SetUnitModRanges|Set]] \\ UnitRange [[4rpl:commands:GetUnitRange|Get]] | [[4rpl:commands:SetUnitRange|Set]] \\ UnitRangeWithMods [[4rpl:commands:GetUnitRangeWithMods|Get]] \\ UnitRequestPackets [[4rpl:commands:GetUnitRequestPackets|Get]] | [[4rpl:commands:SetUnitRequestPackets|Set]] \\ UnitSpecialTarget [[4rpl:commands:GetUnitSpecialTarget|Get]] | [[4rpl:commands:SetUnitSpecialTarget|Set]] \\ UnitStunCount [[4rpl:commands:GetUnitStunCount|Get]] | [[4rpl:commands:SetUnitStunCount|Set]] \\ UnitSupplied [[4rpl:commands:GetUnitSupplied|Get]] | [[4rpl:commands:SetUnitSupplied|Set]] \\ UnitSuppressCount [[4rpl:commands:GetUnitSuppressCount|Get]] | [[4rpl:commands:SetUnitSuppressCount|Set]] \\ UnitTargetOffset [[4rpl:commands:GetUnitTargetOffset|Get]] | [[4rpl:commands:SetUnitTargetOffset|Set]] \\ UnitUpdateCount [[4rpl:commands:GetUnitUpdateCount|Get]] \\ ---- ==== Unit Objects ==== [[4rpl:commands:CreateTrail]] \\ [[4rpl:commands:DestroyTrail]] \\ ObjActive [[4rpl:commands:GetObjActive|Get]] | [[4rpl:commands:SetObjActive|Set]] \\ ObjColor [[4rpl:commands:GetObjColor|Get]] | [[4rpl:commands:SetObjColor|Set]] \\ ObjFacingAngle [[4rpl:commands:GetObjFacingAngle|Get]] \\ ObjFacingAngleCell [[4rpl:commands:GetObjFacingAngleCell|Get]] \\ ObjForward [[4rpl:commands:GetObjForward|Get]] | [[4rpl:commands:SetObjForward|Set]] \\ ObjLightConeVisible [[4rpl:commands:SetObjLightConeVisible|Set]] \\ ObjPosition [[4rpl:commands:GetObjPosition|Get]] | [[4rpl:commands:SetObjPosition|Set]] \\ ObjRotation [[4rpl:commands:GetObjRotation|Get]] | [[4rpl:commands:SetObjRotation|Set]] \\ ObjScale [[4rpl:commands:GetObjScale|Get]] | [[4rpl:commands:SetObjScale|Set]] \\ ObjText [[4rpl:commands:SetObjText|Set]] \\ ObjTextBillboard [[4rpl:commands:SetObjTextBillboard|Set]] \\ ObjTextColor [[4rpl:commands:SetObjTextColor|Set]] \\ ObjTextFontSize [[4rpl:commands:SetObjTextFontSize|Set]] \\ [[4rpl:commands:RotateObj]] \\ [[4rpl:commands:RotateObjTowards]] \\ [[4rpl:commands:RotateObjTowardsCell]] \\ ==== Beams ==== [[4rpl:commands:AttachBeam]] \\ BeamBrightness [[4rpl:commands:SetBeamBrightness|Set]] \\ BeamColor [[4rpl:commands:SetBeamColor|Set]] \\ BeamEnd [[4rpl:commands:SetBeamEnd|Set]] \\ BeamForceLocalEnd [[4rpl:commands:SetBeamForceLocalEnd|Set]] \\ BeamStart [[4rpl:commands:SetBeamStart|Set]] \\ BeamVisible [[4rpl:commands:SetBeamVisible|Set]] \\ BeamWidth [[4rpl:commands:SetBeamWidth|Set]] \\ [[4rpl:commands:CreateBeam]] \\ [[4rpl:commands:DestroyAllAttachedBeams]] \\ [[4rpl:commands:DestroyAllBeams]] \\ [[4rpl:commands:DestroyBeam]] \\ [[4rpl:commands:IsBeam]] \\ [[4rpl:commands:UnattachBeam]] \\ ==== IO ==== CameraMode [[4rpl:commands:GetCameraMode|Get]] \\ CameraPosition [[4rpl:commands:GetCameraPosition|Get]] | [[4rpl:commands:SetCameraPosition|Set]] \\ CameraRotation [[4rpl:commands:GetCameraRotation|Get]] | [[4rpl:commands:SetCameraRotation|Set]] \\ CameraTopDown [[4rpl:commands:GetCameraTopDown|Get]] | [[4rpl:commands:SetCameraTopDown|Set]] \\ DefaultCameraPosition [[4rpl:commands:GetDefaultCameraPosition|Get]] \\ Key [[4rpl:commands:GetKey|Get]] \\ KeyDown [[4rpl:commands:GetKeyDown|Get]] \\ MapPanEnabled [[4rpl:commands:SetMapPanEnabled|Set]] \\ MappedKey [[4rpl:commands:GetMappedKey|Get]] \\ MappedKeyDown [[4rpl:commands:GetMappedKeyDown|Get]] \\ MappedKeyStrings [[4rpl:commands:GetMappedKeyStrings|Get]] \\ MapRotateEnabled [[4rpl:commands:SetMapRotateEnabled|Set]] \\ MapZoomEnabled [[4rpl:commands:SetMapZoomEnabled|Set]] \\ MouseButton [[4rpl:commands:GetMouseButton|Get]] \\ MouseButtonDown [[4rpl:commands:GetMouseButtonDown|Get]] \\ MouseButtonUp [[4rpl:commands:GetMouseButtonUp|Get]] \\ MouseDelta [[4rpl:commands:GetMouseDelta|Get]] \\ MouseScrollDelta [[4rpl:commands:GetMouseScrollDelta|Get]] \\ PointerTerrainCoords [[4rpl:commands:GetPointerTerrainCoords|Get]] \\ [[4rpl:commands:ResetCamera]] \\ RPLCam [[4rpl:commands:SetRPLCam|Set]] \\ RPLCamCursorLocked [[4rpl:commands:SetRPLCamCursorLocked|Set]] \\ RPLCamForward [[4rpl:commands:GetRPLCamForward|Get]] | [[4rpl:commands:SetRPLCamForward|Set]] \\ RPLCamRight [[4rpl:commands:GetRPLCamRight|Get]] | [[4rpl:commands:SetRPLCamRight|Set]] \\ RPLCamUp [[4rpl:commands:GetRPLCamUp|Get]] | [[4rpl:commands:SetRPLCamUp|Set]] \\ [[4rpl:commands:RPLCamCopyPosAndRot]] \\ RPLCamPosition [[4rpl:commands:GetRPLCamPosition|Get]] | [[4rpl:commands:SetRPLCamPosition|Set]] \\ RPLCamRotation [[4rpl:commands:GetRPLCamRotation|Get]] | [[4rpl:commands:SetRPLCamRotation|Set]] \\ [[4rpl:commands:RPLCamTween]] \\ [[4rpl:commands:RPLCamTweenLookAt]]\\ ==== Theme ==== [[4rpl:commands:ApplyTheme]] \\ ThemeCliffLight [[4rpl:commands:GetThemeCliffLight|Get]] | [[4rpl:commands:SetThemeCliffLight|Set]] \\ ThemeCliffLightBoost [[4rpl:commands:GetThemeCliffLightBoost|Get]] | [[4rpl:commands:SetThemeCliffLightBoost|Set]] \\ ThemeCliffNormal [[4rpl:commands:GetThemeCliffNormal|Get]] | [[4rpl:commands:SetThemeCliffNormal|Set]] \\ ThemeCliffNormalAmt [[4rpl:commands:GetThemeCliffNormalAmt|Get]] | [[4rpl:commands:SetThemeCliffNormalAmt|Set]] \\ ThemeCliffNormalScale [[4rpl:commands:GetThemeCliffNormalScale|Get]] | [[4rpl:commands:SetThemeCliffNormalScale|Set]] \\ ThemeCliffScale [[4rpl:commands:GetThemeCliffScale|Get]] | [[4rpl:commands:SetThemeCliffScale|Set]] \\ ThemeCliffTexture [[4rpl:commands:GetThemeCliffTexture|Get]] | [[4rpl:commands:SetThemeCliffTexture|Set]] \\ ThemeNormal [[4rpl:commands:GetThemeNormal|Get]] | [[4rpl:commands:SetThemeNormal|Set]] \\ ThemeNormalAmt [[4rpl:commands:GetThemeNormalAmt|Get]] | [[4rpl:commands:SetThemeNormalAmt|Set]] \\ ThemeNormalScale [[4rpl:commands:GetThemeNormalScale|Get]] | [[4rpl:commands:SetThemeNormalScale|Set]] \\ ThemeOverlayApplyToCliffs [[4rpl:commands:SetThemeOverlayApplyToCliffs|Set]] \\ ThemeOverlay [[4rpl:commands:ClearThemeOverlay|Clear]] | [[4rpl:commands:CreateThemeOverlay|Create]] | [[4rpl:commands:DestroyThemeOverlay|Destroy]]\\ ThemeOverlayColor [[4rpl:commands:SetThemeOverlayColor|Set]] \\ ThemeOverlayEnabled [[4rpl:commands:SetThemeOverlayEnabled|Set]] \\ ThemeOverlayOffset [[4rpl:commands:SetThemeOverlayOffset|Set]] \\ ThemeOverlayRectPixels [[4rpl:commands:SetThemeOverlayRectPixels|Set]] \\ ThemeOverlayPixels [[4rpl:commands:SetThemeOverlayPixels|Set]] \\ ThemeOverlayPointFilter [[4rpl:commands:SetThemeOverlayPointFilter|Set]] \\ ThemeOverlayScale [[4rpl:commands:SetThemeOverlayScale|Set]] \\ ThemeTexture [[4rpl:commands:GetThemeTexture|Get]] | [[4rpl:commands:SetThemeTexture|Set]] \\ ThemeTextureDeTile [[4rpl:commands:GetThemeTextureDeTile|Get]] | [[4rpl:commands:SetThemeTextureDeTile|Set]] \\ ThemeTextureLight [[4rpl:commands:GetThemeTextureLight|Get]] | [[4rpl:commands:SetThemeTextureLight|Set]] \\ ThemeTextureLightBoost [[4rpl:commands:GetThemeTextureLightBoost|Get]] | [[4rpl:commands:SetThemeTextureLightBoost|Set]] \\ ThemeTextureScale [[4rpl:commands:GetThemeTextureScale|Get]] | [[4rpl:commands:SetThemeTextureScale|Set]] \\ ---- ==== Strings ==== [[4rpl:commands:Concat]] \\ [[4rpl:commands:Concat3]] \\ [[4rpl:commands:Concat4]] \\ [[4rpl:commands:EndsWith]] \\ [[4rpl:commands:RemoveWhiteSpace]] \\ [[4rpl:commands:Split]] \\ [[4rpl:commands:StartsWith]] \\ [[4rpl:commands:StringLength]] \\ [[4rpl:commands:StringReplace]] \\ [[4rpl:commands:StringToList]] \\ [[4rpl:commands:Substring]] \\ [[4rpl:commands:ToLower]] \\ [[4rpl:commands:ToUpper]] \\ ==== Sound ==== [[4rpl:commands:PlaySoundAtPosition]] \\ [[4rpl:commands:PlaySoundLoop]] \\ [[4rpl:commands:PlaySound]] \\ [[4rpl:commands:StopSoundLoop]] \\ ==== Raster ==== [[4rpl:commands:BlitFadeRaster]] \\ [[4rpl:commands:BlitRaster]] \\ [[4rpl:commands:ClearRaster]] \\ Raster [[4rpl:commands:SetRaster|Set ]]\\ RasterC [[4rpl:commands:SetRasterC|Set ]]\\ [[4rpl:commands:RasterColor]] \\ RasterSize [[4rpl:commands:SetRasterSize|Set ]]\\ [[4rpl:commands:ShowRaster]] \\ ==== Eggs/Orbs ==== [[4rpl:commands:CreateEgg]] \\ [[4rpl:commands:CreateOrb]] \\ EggOrbData [[4rpl:commands:SetEggOrbData|Set ]]\\ ==== Terrain ==== [[4rpl:commands:BounceEdgeCollision]] \\ [[4rpl:commands:BounceTerrainCollision]] \\ ExactTerrain [[4rpl:commands:GetExactTerrain|Get]] \\ ExactTerrainAndNormal [[4rpl:commands:GetExactTerrainAndNormal|Get]] \\ ExactTerrainWithShield [[4rpl:commands:GetExactTerrainWithShield|Get]] \\ [[4rpl:commands:FloodFillTerrain]] \\ Terrain [[4rpl:commands:GetTerrain|Get]] | [[4rpl:commands:SetTerrain|Set]] \\ TerrainInRange [[4rpl:commands:SetTerrainInRange|Set]] \\ TerrainLine [[4rpl:commands:SetTerrainLine|Set]] \\ TerrainLOS [[4rpl:commands:GetTerrainLOS|Get]] \\ TerrainOverride [[4rpl:commands:GetTerrainOverride|Get]] | [[4rpl:commands:SetTerrainOverride|Set]] \\ TerrainSpecial [[4rpl:commands:GetTerrainSpecial|Get]] | [[4rpl:commands:SetTerrainSpecial|Set]] \\ TerrainVector [[4rpl:commands:GetTerrainVector|Get]] \\ VoidHeight [[4rpl:commands:GetVoidHeight|Get]] | [[4rpl:commands:SetVoidHeight|Set]] \\ ---- ==== Creeper ==== [[4rpl:commands:AddCreeperWithCap]] \\ [[4rpl:commands:AddCreeperWithCapInRange]] \\ [[4rpl:commands:ClipCreeperLine]] \\ [[4rpl:commands:ConvertACToCreeper]] \\ [[4rpl:commands:ConvertCreeperToAC]] \\ Creeper [[4rpl:commands:addcreeper|Add]] | [[4rpl:commands:GetCreeper|Get]] | [[4rpl:commands:SetCreeper|Set]] \\ CreeperCoverage [[4rpl:commands:GetCreeperCoverage|Get]] \\ CreeperCutoff [[4rpl:commands:GetCreeperCutoff|Get]] | [[4rpl:commands:SetCreeperCutoff|Set]] \\ CreeperInRange [[4rpl:commands:AddCreeperInRange|Add]] | [[4rpl:commands:GetCreeperInRange|Get]] | [[4rpl:commands:SetCreeperInRange|Set]] \\ CreeperWithDamageMap [[4rpl:commands:GetCreeperWithDamageMap|Get]] \\ Crimson [[4rpl:commands:GetCrimson|Get]] | [[4rpl:commands:SetCrimson|Set]] \\ [[4rpl:commands:DamageCreeper]] \\ ExactCreeperHeight [[4rpl:commands:GetExactCreeperHeight|Get]] \\ Flow [[4rpl:commands:GetFlow|Get]] | [[4rpl:commands:SetFlow|Set]] \\ [[4rpl:commands:IsCreeperCutoff]] \\ MaxACCell [[4rpl:commands:GetMaxACCell|Get]] \\ MaxCreeperCell [[4rpl:commands:GetMaxCreeperCell|Get]] \\ MaxCreeperCellWithDamage [[4rpl:commands:GetMaxCreeperCellWithDamage|Get]] \\ MinACCell [[4rpl:commands:GetMinACCell|Get]] \\ MinCreeperCell [[4rpl:commands:GetMinCreeperCell|Get]] \\ MinCreeperCellWithDamage [[4rpl:commands:GetMinCreeperCellWithDamage|Get]] \\ TotalAC [[4rpl:commands:GetTotalAC|Get]] \\ TotalCreeper [[4rpl:commands:GetTotalCreeper|Get]] \\ ==== Mission ==== [[4rpl:commands:AcquireMissionObjective]] \\ CustomObjectiveText [[4rpl:commands:SetCustomObjectiveText|Set]] \\ [[4rpl:commands:EndMission]] \\ [[4rpl:commands:IsMissionComplete]] \\ MissionObjectiveEnabled [[4rpl:commands:GetMissionObjectiveEnabled|Get]] | [[4rpl:commands:SetMissionObjectiveEnabled|Set]] \\ MissionObjectiveRequired [[4rpl:commands:GetMissionObjectiveRequired|Get]] | [[4rpl:commands:SetMissionObjectiveRequired|Set]] \\ MissionObjectiveState [[4rpl:commands:GetMissionObjectiveState|Get]] \\ MissionScanComplete [[4rpl:commands:GetMissionScanComplete|Get]] \\ ==== Decals ==== DecalVisible [[4rpl:commands:GetDecalVisible|Get]] | [[4rpl:commands:SetDecalVisible|Set]] \\ DecalColor [[4rpl:commands:GetDecalColor|Get]] | [[4rpl:commands:SetDecalColor|Set]] \\ DecalSize [[4rpl:commands:GetDecalSize|Get]] | [[4rpl:commands:SetDecalSize|Set]] \\ DecalPosition [[4rpl:commands:GetDecalPosition|Get]] | [[4rpl:commands:SetDecalPosition|Set]] \\ ==== Stack ==== [[4rpl:commands:dup]] \\ [[4rpl:commands:dup2]] \\ [[4rpl:commands:swap]] \\ [[4rpl:commands:pop]] \\ [[4rpl:commands:ClearStack]] \\ [[4rpl:commands:StackSize]] \\ ---- ==== MVerse ==== MVerseCreatesUnitGhost [[4rpl:commands:SetMVerseCreatesUnitGhost|Set]] \\ MVersePlayers [[4rpl:commands:GetMVersePlayers|Get]] \\ MVersePlayerNum [[4rpl:commands:GetMVersePlayerNum|Get]] \\ MVerseSendCreeperChanges [[4rpl:commands:SetMVerseSendCreeperChanges|Set]] \\ [[4rpl:commands:SendMVerseMsg]] \\ ==== Effects ==== [[4rpl:commands:CreateEffect]] \\ [[4rpl:commands:CreateMist]] \\ [[4rpl:commands:CreateMissile]] \\ [[4rpl:commands:CreateSniperShot]] \\ ==== Core Units ==== ERNPortal [[4rpl:commands:GetERNPortal|Get]] \\ ERNPortalEfficiency [[4rpl:commands:GetERNPortalEfficiency|Get]] \\ Factory [[4rpl:commands:GetFactory|Get]] \\ FactoryWares [[4rpl:commands:GetFactoryWares|Get]] | [[4rpl:commands:SetFactoryWares|Set]] \\ RiftLab [[4rpl:commands:GetRiftLab|Get]]\\ ==== Messaging ==== [[4rpl:commands:DeregisterforMsg]] \\ [[4rpl:commands:DeregisterScript]] \\ MSGButton [[4rpl:commands:SetMSGButton|Set]] \\ [[4rpl:commands:RegisterforMsg]]\\ [[4rpl:commands:RegisterScript]] \\ RegisteredScriptVar [[4rpl:commands:GetRegisteredScriptVar|Get]] | [[4rpl:commands:SetRegisteredScriptVar|Set]] \\ [[4rpl:commands:SendMsg]] \\