Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
tagvalue[sLevel.?]
or tagmax[], tagmin[] (tagvalue will grab a random tag if there happened to be multiple tags with a value that fit the filter, but in this case, where there will never be more than one sLevel tag, it's faster for HL to execute than tagmax). Last edited by Mathias; May 18th, 2012 at 12:05 PM. |
#11 |
Spy
Join Date: Jan 2011
Location: Van Nuys, California
Posts: 1,220
|
Don't make a chooser for this. This is easier done as a choice of custom ability (much like the rogue gets the special ability option). So each of the extraordinary abilities should be bootstrapped to a custom ability of the same name (make sure only one shows in the specials). Then allow the Factorum set its custom abilities available field at the right level and those choices should be there. I'd look at the rogue's special abilities for guidance on this.
|
#12 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
if (field[usrChosen1].chosen.tagis[sLevel.0] <> 0) then SL = 0 elseif (field[usrChosen1].chosen.tagis[sLevel.1] <> 0) then SL = 1 endif |
|
#13 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
SL = field[usrChosen1].chosen.tagvalue[sLevel.?] |
|
#14 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Yea, I was thinking this is what I was going to end up having to do. Seems like a huge project, but maybe it won't be as bad as it seems. I've run out of time for the day, so I'll have to pick this back up next week. Thanks for your help, Kendall and Mathias. |
|
#15 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
For instance, if I wanted to pull the description text of the chosen spell. This is what I started with: Code:
field[CustDesc].text = field[usrChosen1].chosen.field[CustDesc].text |
|
#16 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Do you mean:
Code:
field[CustDesc].text = field[usrChosen1].chosen.field[descript].text |
#17 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Yes, I'm looking for the description. When I create a sorcerer and add a spell then right-click to look at fields, I see CustDesc is filled with the description text. I didn't see any other fields containing it, so that's what I went with. Your suggestion works. Thanks.
|
#18 |
|
|