• 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

Racial favored terrain

frumple

Well-known member
I have a race that gets an ability in favored terrain (like the ranger ability, but just a single bonus to AC). Is the list of favored terrains available to be selected from via. a racial special, or will I have to make a special menu for it?
 
It is not for a class. It is for a race. Specifically it is racial special that grants the race a +2 dodge AC in its favored terrain (chosen from the ranger list).

I have been trying to modify the scripts from the Boots of Favored Terrain to get what I need, but I am only part of the way there. I cannot get an additional text box to pop up for the user specified terrains (such as aligned planes).
 
In the racial special I am using the custom expression: component.BaseCustUs & Helper.Secondary

This generates the correct list of favored terrains.

For my script I have cribed the following form Boots of Favored terrain:

Code:
~ Post-levels 19000

doneif (field[usrChosen1].ischosen = 0)
      
      var sourcename as string

      if (field[usrChosen1].chosen.tagis[User.NeedDomain] <> 0) then
        perform assign[User.NeedDomain]
        perform assign[User.OptDomain]
        perform assign[User.NoAutoName]
        field[livename].text = field[name].text & " (" & lowercase(field[domDomain].text) & ")"
        field[shortname].text = field[livename].text
        sourcename = lowercase(field[domDomain].text)
      else
        field[livename].text = field[name].text & " (" & lowercase(field[usrChosen1].chosen.field[shortname].text) & ")"
        sourcename = lowercase(field[usrChosen1].chosen.field[shortname].text)
        endif

#situational[hero.child[ArmorClass],"+2 dodge AC in " & sourcename & " environment",field[name].text]

I think I am almost there. I cannot get the special to open up a new text field for the under to enter a specific terrain for those ranger terrains that need it (such as aligned planes).
 
Assign User.NeedDomain to the racial special if one of the aligned planes (or whichever others) is selected.
 
I thought I was doing that in the if statement

Code:
if (field[usrChosen1].chosen.tagis[User.NeedDomain] <> 0) then
  perform assign[User.NeedDomain]
  perform assign[User.OptDomain]
  perform assign[User.NoAutoName]

{more code}
 
Yeah, looks like that's the problem. Not really a bug, since I think this is the first time I've run across an ability that needed this function, but I'll get on it for next month's release. Sorry to make you wait, frumple.
 
I discovered another thing to improve while working on this frumple, it looks like previously you couldn't have more than one type of non-name thing per a racial special. That is, you could have a checkbox, an array menu, or a primary and secondary selector, but not a combination of those. So I had to adjust that as well, since you need a selector (to choose the terrain) and then a user text box for further notes.
 
Back
Top