View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old January 15th, 2014, 05:18 AM
Quote:
Originally Posted by TobyFox2002 View Post
The question I have is,
First: Is it even possible to have the choice of feats listed in the drop down menu change BASED on what race you have selected.
Yes. You can modify the custom expression with a script, and can use if statements that search for race. For example:

Code:
if (race1 <> 0) then
 field[usrCandid1].text = "thingid.f001|thingid.f002"
elseif (race2 <> 0) then
 field[usrCandid1].text = "thingid.f002|thingid.f003"
endif
An example of this is found in the Dungeonscape file for the various custom abilities named "Arcane Dilletante (spell level)". Note that usrCandid1 is the name of the field for Custom Abilities. It's probably different for class specials. If you need to find out what it is, right-click on the class special in your portfolio, and select "Show Debug Fields", then look for the expression you entered.

Two: How does one connect the choice of feat with bootstrapping the feat to the character.[/QUOTE]

This is trickier. You can't bootstrap through a script, so the only way to really do this is to bootstrap all of the feats with a conditional. This probably isn't optimal if you have a lot of feats involved. If it's only a few, then it could make sense. My suggestion in this case would be to use the selection to modify the field[Value], and then use that field as your bootstrap condition...unless you are already using that field for something else.
Sendric is offline   #32 Reply With Quote