• 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

Hero has Template?

TCArknight

Well-known member
Howdy!

I've got a template defined as tmBLLvl1. I've got another Racial Special which requires the character to have tmBLLvl1 before it activates and gives the bonus.

However, when I try to do this:
Code:
        @valid = 1
        if (hero.tagis[Classes.tmBLLvl1] <> 0 ) then
          @valid = 0
          endif

I get that there's a Syntax Error fortag 'Classes.tmBLLvl1' not defined.

What am I missing?

Thanks!
TC
 
I believe you want:
Code:
        @valid = 1
        if (hero.tagis[Template.tmBLLvl1] <> 0 ) then
          @valid = 0
          endif

(A good way to check this sort of stuff is to go to the Develop menu and select Floating Info Window -> Hero Tags. Then look for the TagID you're trying to reference in the rightmost column. If it's a tag on a pick you can use Floating Info Window -> Show Selection Tags, then find the item(s) you want to examine and check them off).
 
Last edited:
Thanks!

That got me past the error, but it doesn't seem to be keeping the bonus from applying.

I've attached my user file, in case anyone wants to see. It's the Bloodline - Major (Red Dragon) with the bonuses that aren't being blocked (specifically the +1 Strength) when the 3rd level is added without taking the Level 1 template.

TC
 

Attachments

I believe you want:
Code:
        @valid = 1
        if (hero.tagis[Template.tmBLLvl1] <> 0 ) then
          @valid = 0
          endif

Sorry, missed the forest for the trees kinda thing. Your original language translates to:
Line 1: Set state to VALID
Line 2: If this hero DOES NOT NOT HAVE THE TEMPLATE (IE, if they do have it) then set the state to INVALID.

It sounds like you want the opposite to be the case. Try this:
Code:
  @valid = 0
~ Check for presence of Bloodline template
  validif (hero.tagis[Template.tmBLLvl1] <> 0)
 
The @valid = 0 at the beginning isn't even needed - all prereqs start with @valid = 0.

You can even put:

Code:
tagis[Template.tmBLLvl1] <> 0

In an expr-req (the hero. is the default in a pre-req/expr-req).
 
Ok, thanks to all the help, I got this working. :)

Since the +1 Strength will be common across multiple bloodlines, I put this at First/1000 on the condition for the Racial Special

Code:
(count:Classes.? - count:Classes.Race - count:Classes.Template >= 3) & (count:Template.tmBLLvl1 <> 0)
 
Can't this racial special only be bootstrapped by those templates? Why use a condition? Why can't the fact that it's only bootstrapped by those templates control whether it's present or not?
 
Hmmm... good point... am I missing something?

This is the +1 Strength:
<thing id="raBLStrBon" name="+1 Strength" compset="RaceSpec">
<tag group="Helper" tag="ShowSpec"/>
<eval phase="Final" priority="1000">hero.child[aSTR].field[aFinalVal].value += 1</eval>
</thing>

and this is the bootstrap:
<bootstrap thing="raBLStrBon">
<containerreq phase="First" priority="1000"><![CDATA[(count:Classes.? - count:Classes.Race - count:Classes.Template >= 3) & (count:Template.tmBLLvl1 <> 0)]]></containerreq>
</bootstrap>

I've got the check on the bootstrap. Do I have something backward? :)
 
Back up. What adds this ability? Under what conditions is this ability active? (Give me the text from the thing you're adding)

Oh, and for a STR mod to affect anything else, add it before the Attributes phase - a change in the Final phase will only affect the reported value, not weapon damage, STR skills, etc.

Pre=Attributes/10000:
hero.child[aSTR].field[Bonus].value += 1
 
Thanks for that. :)

According to the Book (UA was a 3.5 book that I'm trying to get done into PF. :) ) -

A bloodline level grants no increase in base attack bonus or
base save bonuses, no hit points or skill points, and no class
features. It counts as a normal class level (with no class skills)
for the purpose of determining maximum skill ranks. Levels of
bloodline never result in XP penalties for multiclass characters.
Include the character’s bloodline level when calculating any
character ability based on his class levels (such as caster level for
spellcasting characters, or save DCs for characters with special
abilities whose DCs are based on class level). The character
doesn’t gain any abilities, spells known, or spells per day from
the addition of his bloodline levels, though—only the calculations
of his level-based abilities are affected.
If a character has levels in two or more classes in addition to
his bloodline levels, each class gains the benefit of adding the
bloodline levels when calculating abilities.

For example, a 2nd-level sorcerer with a major bloodline takes
a bloodline level when earns enough XP to advance in level. He
is treated as a 3rd-level spellcaster for the purpose of spell durations,
caster level checks, and so forth. But he doesn’t gain a
3rd-level sorcerer’s spells per day or spells known.
Similarly, the stunning attacks of a 3rd-level monk with one
bloodline level have a save DC equal to 12 (10 + one-half class
level) plus her Wisdom modifi er, since the bloodline level is
treated as if it were a monk class level when calculating the save
DC. A 3rd-level monk/3rd-level sorcerer with two bloodline
levels would be treated as a 5th-level spellcaster and a 5th-level
monk for determining level-based abilities.

Table 1–2: Bloodline Levels
Bloodline —— Bloodline Strength ——
Level -- Major
1st 3rd
2nd 6th
3rd 12th
Red Dragon Bloodline Traits

Character
Level Major
1st — +2 on Bluff checks
2nd — Alertness
3rd — Strength +1
4th — Resistance to fire 5 (Ex)
5th — Red dragon affinity +2*
6th — +1 to natural armor
7th — +2 on Intimidate checks
8th — Resistance to fire 10 (Ex)
9th — Constitution +1
10th — Locate object 1/day (Sp)
11th — Red dragon affinity +4*
12th — +1 to natural armor
13th — +2 on Appraise checks
14th — Power Attack
15th — Charisma +1
16th — Breath weapon (Ex)
17th — Red dragon affinity +6*
18th — +1 to natural armor
19th — +2 on Jump checks
20th — Immunity to fire (Ex)
* You gain the indicated bonus on all Bluff, Diplomacy, Gather Information, Intimidate, and Perform checks made to interact with red dragons.

Each of the Racial Abilities I've done are bootstrapped to the Template. However, they only need to be active in the following cases:

for example: +1 Strength is gained if:
1) the character level must be 3 or higher
2) character must have taken the Bloodline Level template once. This adds one level to the character for purposes of DCs, etc but provide no other class skills, BAB, HP or such.

If the Bloodline Level template is taken at any time after the 3rd character level, the character gains any abilities he now qualifies for at that point. (if he's 5th level when he takes the Template, he now qualifies for the 3rd, 4th and 5th level abilities.) Does that make sense?

TC
 
Last edited:
So if you're 1st level, and you take the template, you'll get some powers then, but this strength power will only come into play once you get to 3rd level?

If you can take this template multiple times, but the strength modifier only comes into play once, then you can make the ability unique, and bootstrap it from every version of the template that grants it. In the script of the ability, you only apply the strength modifier if the character is 3rd level:

Code:
if (#totallevlecount[] - #levelcount[Race] - #levelcount[Template] >= 3) then
  hero.child[aSTR].field[Bonus].value += 1
  endif
 
So if you're 1st level, and you take the template, you'll get some powers then, but this strength power will only come into play once you get to 3rd level?

If you can take this template multiple times, but the strength modifier only comes into play once, then you can make the ability unique, and bootstrap it from every version of the template that grants it. In the script of the ability, you only apply the strength modifier if the character is 3rd level:

Code:
if (#totallevlecount[] - #levelcount[Race] - #levelcount[Template] >= 3) then
  hero.child[aSTR].field[Bonus].value += 1
  endif

Looks like we cross posted. I guess I was expanding on my post when you were posting this. :)

Yes, if you never take the Level Template, you will only get the 1st and 2nd level abilities. If you take it once you will be able to get the 1st through 5th level abilities, twice you can get the 1st through the 11th level abilities. It take taking it three times to be able to get the 12th through 20th level abilities (which means you'd be 23rd level to get all of the abilities...)

The +1 Strength can come at 3rd level for a Major Bloodline. but it could be at 6th level for the Intermediate Bloodline. Since Bloodline - Red Dragon (Major) and Bloodline - Red Dragon (Intermediate) are seperate templates that are exclusive, I was trying to put the condition on the bootstrap rather than the check in the script for the bonus if that makes sense?
 
Last edited:
Back
Top