I am trying to write a similar adjustment to the Equipment, Add Trackable but have it automaticlly apply to all scrolls.
I have it down to:
which will work if I set a fixed value for int(eachpick.field[usrSource1].value) but wont seem to work to grab the number of castings on a scroll. Anyone have any ideas for this?
I have it down to:
Code:
~ Set shorter live name
field[livename].text = "Equipment, Trackable"
~ If we're not enabled, get out now
doneif (field[pIsOn].value = 0)
foreach pick in hero where "gType.Scroll"
~ Add Gear Uses tag
perform eachpick.assign[Helper.UsesQty]
~ Add Weapon Tracker tag
perform eachpick.assign[User.Tracker]
~ Set tracker amount
eachpick.field[trkMax].value += int(eachpick.field[usrSource1].value)
nexteach
which will work if I set a fixed value for int(eachpick.field[usrSource1].value) but wont seem to work to grab the number of castings on a scroll. Anyone have any ideas for this?