User Tools

Site Tools


crpl:docs:getcoreswithvar

This is an old revision of the document!


~~DISCUSSION~~ <- CRPL reference <- Unit Commands

GetCoresWithVar

ArgumentsResultNotation
VariableName and Value List of unit uids s1 d1 – [l1 l2…]i1

Description

Searches across all CRPLCore units looking for any that have a script that contains the specified variable with the specified value. Useful for finding units by name, or other value. Returns a list of relevant UIDs followed by the number of UIDs, with the number being on top of the stack.

Note that a single core can have multiple scripts assigning VariableName to different values, any of which can be used to find the core.

Examples

"UnitName" "Item1" GetCoresWithVar
0 do
   ->unit
   <-unit trace
loop 

crpl/docs/getcoreswithvar.1412190170.txt.gz · Last modified: 2014/10/01 15:02 by 127.0.0.1