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 revision Previous revision
crpl:docs:getcoreswithvar [2020/05/29 09:22]
Sanian [GetCoresWithVar]
crpl:docs:getcoreswithvar [2020/05/30 20:13]
Sanian Fixed notation to be consistent with GetUnitsInRange and other GetUnit functions
Line 4: Line 4:
  
 ^Arguments^Result^Notation^ ^Arguments^Result^Notation^
-| VariableName,​ Value | List of unit uids, amount of units |''​ 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 units by name, or other value. ​Returns a list of relevant UIDs followed by the number of UIDswith the number ​being on top of the stack.+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 nwhere 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. Note that a single core can have multiple scripts assigning VariableName to different values, any of which can be used to find the core.
crpl/docs/getcoreswithvar.txt ยท Last modified: 2020/05/30 20:13 by Sanian