Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
I've been working on adding the Initiate feats from FR, and I've hit a snag.
Initiate of Shar adds Bluff and Hide as class skills, the same way the Trickery Domain does. It works like a charm for clerics, but when I try to assign the feat to a ranger character I get errors — since the linkage[table] tag is for clerics. I imagine there may also be issues with multi-class characters, since hero.assign[kxxxx] would add the skills to all of my classes instead of just the divine spellcasting class the feat is meant to affect. So, I guess, first I need a selector, then I need a way to assign the skills as class skills only for the class I select. The problem: I don't know how to do that. |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
When creating a feat, there is a section for 'Item Selection'. You can choose "Classes" for 'Select From...' and "Picks on Hero" for 'Restrict To...'. That will get you the chooser. Then you should be able to change the linkage to pick from the chosen item (usually something like usrChosen1) instead of clerics.
Last edited by Sendric; September 19th, 2012 at 05:07 AM. |
#2 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Great, so the script will look something like:
~add our class skills to selected class perform linkage[usrChosen1].assign[kBluff] perform linkage[usrChosen1].assign[kHide] That look right? Also, how can I find out for sure what HL calls my selected class? |
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
In theory, I think it would look like that, yes. When you have the feat selected in your portfolio, right-click on it, and select "Show Debug Fields for [feat name]". Then you can look for the field name that shows the class you selected.
|
#4 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Great, thanks.
|
#5 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
I've been wrestling with this for a while. I can't find the field that is supposed to be my selected item.
I set up the selector in the editor as described above, then I selected the feat and looked at the debug fields. The problem is, none of the fields show the selection I make, with the exception of xName and short name. Those can't be the right fields. Is there another script I need to use to set up the selection as a field? |
#6 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
Code:
perform field[fChosen].chosen.assign[ClassSkill.kBluff] perform field[fChosen].chosen.assign[ClassSkill.kHide] |
|
#7 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
Code:
perform field[fChosen].chosen.assign[ClassSkill.kBluff] perform field[fChosen].chosen.assign[ClassSkill.kHide] I had all of that except ".chosen." between the field call and the assignment. I guess that's why I was getting an "fChosen is undefined" message. I just need to get a better handle on this language. Thanks for the help. |
#8 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
|
|
#9 |
Member
Join Date: Apr 2012
Location: Washington, D.C.
Posts: 76
|
No joke, that's the boat I'm in.
This makes sense though. what I had: perform linkage[fChosen].assign[kBluff] was (I think) saying "Select a cereal, pour milk." what you have: perform field[fChosen].chosen.assign[ClassSkill.kBluff] is (I think) saying "Select a cereal, what is it?, pour milk on that cereal you selected" crazy robot language. |
#10 |
|
|