Hi all,
I've got a situation where I'm trying to compare a hero's equipment against the skills they have. For this it seems to be useful to be able to nest foreach statements but I can't tell if it's possible since the "foreach pick" statement gives you an "eachpick" context. What I would like to do is something like this pseudocode:
foreach pick in hero where Equipment
~if equipment matches some parameter
foreach pick in hero where Knowledge
~does user have knowledge for equipment, if so do something
nexteach
nexteach
Any ideas? Thanks
I've got a situation where I'm trying to compare a hero's equipment against the skills they have. For this it seems to be useful to be able to nest foreach statements but I can't tell if it's possible since the "foreach pick" statement gives you an "eachpick" context. What I would like to do is something like this pseudocode:
foreach pick in hero where Equipment
~if equipment matches some parameter
foreach pick in hero where Knowledge
~does user have knowledge for equipment, if so do something
nexteach
nexteach
Any ideas? Thanks
