Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
I am try to see if there is a way to get the spell level (tagvalue[sLevel.?]) from a custom scroll. And I am not sure where to even start looking for it. Any ideas?
|
#1 |
Senior Member
Join Date: Jun 2008
Location: Jersey City
Posts: 326
|
I'm not sure of what your problem is. If you make a custom scroll, you set the spell level for each spell on it or accept the default.
|
#2 |
Senior Member
Join Date: May 2015
Posts: 830
|
I used this for iterating over wands.
Code:
foreach pick in hero where "thingid.sCustomWnd" eachpick.gizmo.findchild[BaseSpell].setfocus |
#3 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Cool, I think that will work. Thank you!
The issue is kind of crazy, but basically it's an item that can hold custom scrolls, but with a max number based on the spell's level. I looked through the fields and tags and I didn't see anything based on the spells level. There is a caster level, but not the spell itself. Again, Thank you! The above might be what I need. |
#4 |
Senior Member
Join Date: May 2007
Location: Durham, NC
Posts: 1,747
|
Just an FYI, this is what i used and it worked -
foreach pick in hero where "thingid.sCustomApp" perform eachpick.gizmo.findchild[BaseSpell].setfocus hero.childfound[sCustomApp].field[trkMax].value += focus.tagvalue[sLevel.?] nexteach |
#5 |
|
|