angryuser
Active Member
Hi all,
I'd appreciate a bit of help. What I am trying to achieve is to get randomized list of Asteroids.
Lets say we get 27 asteroid entities and I need the ${iterator:next} to go through all 27 of them BUT in random order. Can't have it skip one or jump to either one twice.
What I have so far for the asteroid entity filter is this:
I was only able to find this http://www.lavishsoft.com/wiki/index.php/ObjectType:iterator
Sadly me being a newbie I wasn't able to figure out how to use the RandomAccess (or whether it would even do what I expect to) without some examples/snippets.
I'd appreciate a bit of help. What I am trying to achieve is to get randomized list of Asteroids.
Lets say we get 27 asteroid entities and I need the ${iterator:next} to go through all 27 of them BUT in random order. Can't have it skip one or jump to either one twice.
What I have so far for the asteroid entity filter is this:
Code:
function main()
{
variable index:entity Asteroids
variable iterator AsteroidsIterator
variable string RoidQuery
EVE:QueryEntities[Asteroids]
RoidQuery:Set[${LavishScript.CreateQuery["CategoryID != 25"]}]
Asteroids:RemoveByQuery[${RoidQuery}]
LavishScript:FreeQuery[${RoidQuery}]
Asteroids:GetIterator[AsteroidsIterator]
if ${AsteroidsIterator:First(exists)}
do
{
echo <${Time}> (ID ${AsteroidsIterator.Value.ID}) - ${AsteroidsIterator.Value.Name} - ${AsteroidsIterator.Value.CategoryID}"
}
while ${AsteroidsIterator:Next(exists)}
}
Sadly me being a newbie I wasn't able to figure out how to use the RandomAccess (or whether it would even do what I expect to) without some examples/snippets.