PDA

View Full Version : Help with Favored enemy


jkthomsen9
July 27th, 2010, 07:49 PM
I can not seam to find the correct script to require the class feature favored enemy as an entry requirement for a prestige class. I am not sure how the resorses resEnemSel and resEnemUpg work and did not see them in the tutorial. I wouls like a script that required either (aberrations, animals, dragons, or magical beasts) be selected but will settle for have any selected, with a better understanding of resorces.

Thanks in advance,
James

Mathias
July 27th, 2010, 08:01 PM
Specific requirements are easier than a general requirement in this case.

Create a ranger and add the aberrations, animals, dragons, and magical beasts enemies.

Now, in the Develop menu, make sure that "Enable data file debugging" is checked (it's the first item).

Go back to the Ranger panel, right click on each of those, and the bottom item will be "Copy unique Id (feAbber) to clipboard" - copy the Id.

Now, switch to the editor, and add the following to an exprreq:


#hasability[feAbber] <> 0

(pasting feAbber into there).

Do the same for all the other types, adding each one to the total:


#hasability[feAbber] + #hasability[feAnimal] + ... <> 0


(HasAbility = 1 if the ability is present on the hero, 0 otherwise, so if one or more of those favored enemies is present, the total will not equal 0).

jkthomsen9
July 27th, 2010, 08:39 PM
Mathias You rock!! Thank you and the debuging tip is sure to come in hand.

James