Junior Member
Join Date: Sep 2014
Location: USA
Posts: 11
|
I'm trying to add an adjustment that lets you select a slot and add more copies of it. My adjustment uses the custom menu expression ExtraSlot.Eqp? to get a list of all extra slot tags. I copied some code from the Weapon Focus feat and tried this:
Code:
doneif (tagis[Helper.FtDisable] <> 0) doneif (field[pChosen].ischosen = 0) var x as number var slot as string call fTargetId for x = 1 to field[pAdjust].value perform field[pChosen].chosen.setfocus perform hero.assignstr["ExtraSlot." & slot] next |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,217
|
Code:
doneif (field[pChosen].ischosen = 0) perform field[pChosen].chosen.pulltags[ExtraSlot.?] var i as number for i = 1 to field[pAdjust].value perform hero.pushtags[ExtraSlot.?] next |
#2 |
|
|