Functions Documentation |
|
Name |
sysHasAttribute |
Syntax |
(sysHasAttribute [nodeID] attrib) -> True/Nil |
Argument List |
nodeID: the node ID of the star system
attrib: the attribute to look for in the system |
Returns |
boolean: true/nil depending upon success |
Category |
system
|
Description |
Used to look for criteria in star systems. |
Example |
taken from &ssHuaramarca;
; Pick a random system in Huari space to have a gateway to Huaramarca
(setq gateway
(random
(filter (sysGetNodes) theNode
(and (sysHasAttribute theNode 'ungoverned)
(geq (sysGetLevel theNode) 5))
)
)
)
|
Comment |
|