• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Modified Favored Enemy

AndrewD2

Well-known member
I'm working on the Demon Hunter class which has a favored enemy ability that is a little different than the normal favored enemy. It seems every time you pick a new one you get the full benefits as there is no wording to suggest that you increase one of your favored enemies as you go.

Know the Enemy (Ex): A demon hunter dedicates her life to the defeat and destruction of infernal creatures. These are the enemies she bothdetests and grimly respects above all other. She uses that knowledge to her advantage. Upon first gaining this ability, a demon
hunter may select a creature type from the Demon Hunter Favored Enemies table. The demon hunter gains a +1 bonus for every 2 levels of demon hunter she has on Bluff, Knowledge, Perception, Sense Motive, and Survival checks when using these skills against the favored enemy. Likewise, she gains the same bonus on weapon damage rolls against them.

At 2nd level and every four levels thereafter (6th, 10th, 14th, and 18th levels), the demon hunter may select an additional favored enemy from the table.

And it has a smaller list of favored enemies.
Demon Hunter Favored Enemies
• Aberration
• Fey
• Humanoid (goblinoid)
• Outsider
• Incorporeal creature
• Undead

I'm not really sure where to go with this. I guess it could just be a custom ability but I'm not sure about the expression to select the favored enemies. Any ideas are appreciated.
 
You can set the allowed favored enemies on the class helper, by setting the cFav1Expr field. Like most of the class expression fields, it is set VERY late in Final, at 9999999. So you can just append the unique IDs to it after that.

Final 99999999
Code:
hero.childfound[cHelpXXX].field[cFav1Expr].text &= " & (Ability.feAberr | Ability.YYYY | Ability.ZZZ)"

XXX = the 3 letter abbreviation for your class
YYY and ZZZ represent the other favored enemies you want to allow.

Then you'd probably want to set the number of advancements (which is tracked by the resource "resEnemUpg") to a lower number, to eliminate the ones from this class. Be careful not to eliminate upgrades the user might be entitled to through other classes. This means you'll likely have to cycle through the number of favored enemies allowed in the class helper's "cFav1Tot" array, and subtract 1 less than the total found there from resEnemUpg.

Then you'll want to foreach through all the favored enemies which are added through your class, and add a value to them which brings them to the total for your level (as calculated in the class ability, +1 at 2nd, +2 at 6th, and so on).
 
Is there a way to add new favored enemy groups since Incorporeal Creature isn't an option and outsider doesn't appear to be split into it's alignments?
 
I believe so, but since the tab doesn't exist in the editor, you'd have to make it through the raw text file.
 
To do that, you can open the user file in notepad or something similar, and then use this as a template, changing as necessary:

Code:
  <thing
    id="feAberr"
    name="Favored Enemy (Aberrations)"
    compset="CustUser"
    uniqueness="unique"
    description="At 1st level, a ranger selects a creature type from the ranger favored enemies table. He gains a +2 bonus on Bluff, Knowledge, Perception, Sense Motive, and Survival checks against creatures of his selected type. Likewise, he gets a +2 bonus on weapon attack and damage rolls against them. A ranger may make Knowledge skill checks untrained when attempting to identify these creatures.{br}{br}At 5th level and every five levels thereafter (10th, 15th, and 20th level), the ranger may select an additional favored enemy. In addition, at each such interval, the bonus against any one favored enemy (including the one just selected, if so desired) increases by +2.{br}{br}If the ranger chooses humanoids or outsiders as a favored enemy, he must also choose an associated subtype, as indicated on the table below. (Note that there are other types of humanoid to choose from&#151;those called out specifically on the table below are merely the most common.) If a specific creature falls into more than one category of favored enemy, the ranger's bonuses do not stack; he simply uses whichever bonus is higher.">
    <fieldval field="shortname" value="Aberrations"/>
    <fieldval field="abUser" value="2"/>
    <fieldval field="abUserMin" value="2"/>
    <tag group="AbilType" tag="Extra"/>
    <link linkage="selections" thing="resEnemSel"/>
    <link linkage="upgrades" thing="resEnemUpg"/>
    <eval index="1" phase="PostAttr" priority="200000">
      <before name="Calc resLeft"/><![CDATA[
      doneif (tagis[Helper.ShowSpec] = 0)

      var favbonus as number
      favbonus = field[abValue].value
      call FavEnemy
      ]]></eval>
    </thing>
 
does anyone know if they are going to add a new tab in the editor that allows for favored enemy/favored terrain editing.

Note: I'm making horizon walker and this would be exceptionally helpful when making custom terrains.
 
Back
Top