Redcap's Corner
Well-known member
I'm trying to pull tags from one of the bootstraps of a thing selected by the user and add them to the equivalent pick bootstrapped to my hero. I've been using the following code:
It isn't working, and I'm pretty sure the reason is that the class ability responsible doesn't have the wMain or Value tags as options. Is there a way to pull and push in a single statement, using the class ability as a conduit? I'm 99% sure this would work if wClaw had the code:
I could setup replacement things for all natural weapons with the above code, but that seems rife with potential for errors. The only other thing I can think to do is setup a hidden bootstrapped dummy natural weapon that just sucks up these tags and spits them onto the appropriate things, but that seems really clumsy.
Any ideas?
Code:
foreach bootstrap in field[usrChosen1].chosen where "thingid.wClaw"
perform eachthing.pulltags[wMain.?]
perform eachthing.pulltags[Value.?]
nexteach
foreach pick in hero from BaseNatWep where "thingid.wClaw"
perform eachpick.pushtags[wMain.?]
perform eachpick.pushtags[Value.?]
nexteach
It isn't working, and I'm pretty sure the reason is that the class ability responsible doesn't have the wMain or Value tags as options. Is there a way to pull and push in a single statement, using the class ability as a conduit? I'm 99% sure this would work if wClaw had the code:
Code:
foreach bootstrap in hero.child[cEnsEnsp].field[usrChosen1].chosen where "thingid.wClaw"
perform eachthing.pulltags[wMain.?]
perform eachthing.pulltags[Value.?]
nexteach
I could setup replacement things for all natural weapons with the above code, but that seems rife with potential for errors. The only other thing I can think to do is setup a hidden bootstrapped dummy natural weapon that just sucks up these tags and spits them onto the appropriate things, but that seems really clumsy.
Any ideas?