Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Right, I'm doing that, but in Shadowrun there is also a menu that selects which skill you're going to be picking from, that's what I'm trying to do now.
|
#31 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
What you're describing all sounds correct, so I'm not sure what's not working.
Code:
<portal id="skill" style="menuNormal"> <menu_things field="advSpecial" component="Skill" maxvisible="10" usepicks="hero"> <candidate><![CDATA[ !component.SkillGroup & !Hide.Skill & (!SkillHelp.NoSpecial | SkillHelp.UsingGroup) ]]></candidate> </menu_things> </portal> |
#32 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
Hmm it looks like what I've got
Code:
<!--Skill selector template --> <template id="advSkill" name="Skill Selector" compset="AdvDetails"> <!-- Skill chooser --> <portal id="menu" style="menuNormal" width="275"> <menu_things field="advSkill" component="AdvDetails" usepicks="hero"> <candidate><![CDATA[ component.Skill & Helper.CanExpert ]]></candidate> </menu_things> </portal> <position><![CDATA[ height = portal[menu].height width = 50 ~position portal portal[menu].left = 0 ]]></position> </template> |
#33 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Big difference I see - you've got component="AdvDetails", I've got component="Skill". So everything you're adding to this table must have "component.AdvDetails & component.Skill & Helper.CanExpert".
|
#34 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I did not realize that, now I just need to get it to limit the other list of what's available to the selected skill
|
#35 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
In Shadowrun, that script's in thing_advances.dat, in the script that's building the field that stores what's allowed to be selected for an advance - it looks up the skill that was selected and uses that to generate the proper restrictions.
|
#36 |
Thread Tools | |
Display Modes | |
|
|