|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Thu Jun 24, 2010 11:41 pm
Reading one string list to another |
Here is what I want to do. I have a stringlist with all my enemies (@EnemyList) on it. I have a stringlist with people I saw in my room (@PeopleHere). I want to compare @PeopleHere to @EnemyList and any names that match will be added to a third string list called @Targets. Is that doable?
|
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Fri Jun 25, 2010 1:14 am |
#forall @PeopleHere {#if (%ismember(%i,@EnemyList)) {#additem EnemyHere %i}}
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Rolly Wanderer
Joined: 16 Oct 2006 Posts: 62
|
Posted: Sat Jun 26, 2010 2:21 am |
Thanks it was easier than I thought it would be.
|
|
|
|
|
|