View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old February 20th, 2018, 04:16 PM
Quote:
Originally Posted by Illyahr View Post
How would I go about doing that? I got it to select a thing and a helper feat to select a class. The original pulls tags from the thing and forwards them to the helper, I just need the helper to assign the thing to the selected class

Otherwise I have to do a series of if/then lines
Something like this should work:

Code:
var drgnmark as string

drgnmark = field[fChosen].chosen.idstring
drgnmark = "thingid." & drgnmark

foreach pick in hero from BaseSpec where drgnmark
  perform each.assign[AllowCust.discs]
nexteach
That's off the top of my head, so you might have to play around with it some more. If you can't get it working, give me some more details of what exactly you are trying to do, and I can refine it or maybe come up with something that doesn't need a foreach loop.
Sendric is offline   #4 Reply With Quote