User Tools

Site Tools


crpl:docs:getcoreswithvar

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
crpl:docs:getcoreswithvar [2013/01/14 14:47] virgilwcrpl:docs:getcoreswithvar [2021/02/05 11:43] (current) – Rmoved discussion tag Karsten75
Line 1: Line 1:
  
 +<- [[crpl:crplreference| CRPL reference]] <- [[crpl:crplreference#unit_commands|Unit Commands]]
 =====  GetCoresWithVar  ===== =====  GetCoresWithVar  =====
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-ScriptName and Value | List of unit uids |'' s1 d1 -- [l1 l2...]i1''|+VariableName, Value | List of unit uids, amount of units |'' s1 d1 -- l1 l2...ln n''|
  
  
 === Description === === 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 unit'by name, or other value.+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. The function pushes the n UID's onto the stack followed by the integer n, where n is the number of units.  
 + 
 +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 === === Examples ===
Line 20: Line 23:
  
 </code>  </code> 
- 
crpl/docs/getcoreswithvar.1358192821.txt.gz · Last modified: 2014/10/01 15:02 (external edit)