• 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

Coding problem with Templar

Hi.
First of all I apologize for my poor english, but is not my native language.
Sorry.

Then:
i'm trying to code the Templar from "The Genius Guide" and i've found a problem:

one of her custom ability is the Scourge of The Unfaithful, kind of Favored Enemy.
It adds a MORALE bonus to attack, damage and some skill.

i've worked the code for the Custom and the Class Special:

Code:
<eval phase="UserPostLv" priority="10000"><![CDATA[~only run the rest for the first copy
doneif (tagis[Helper.FirstCopy] = 0)

~ If we're not shown, just get out now
doneif (tagis[Helper.ShowSpec] = 0)

~ Generate our new name
field[abValue].value = field[xCount].value*2

field[livename].text = field[thingname].text & " (+" & field[abValue].value & ")"

if (field[abilActive].value <> 0) then
    #applybonus[BonMorale, hero.child[Attack], field[abValue].value]
    hero.child[Damage].field[tDamBonus].value += field[abValue].value
    #applybonus[BonMorale, hero.child[skBluff], field[abValue].value]
    #applybonus[BonMorale, hero.child[skIntim], field[abValue].value]
    #applybonus[BonMorale, hero.child[skPercep], field[abValue].value]
    #applybonus[BonMorale, hero.child[skSenseMot], field[abValue].value]
endif]]></eval>

the problems are:

1. The Attack value don't change, but the skills change.
2. The Damage pick have the General Modifier?


One of the Optional Feats (Master of Order) let you choose one of your Orders (Class custom, reflecting the Clerical Domain) and give you the 1st level special power of the C. Domain of the same name.
How can I represent this?

and how i can represent the fact that templar level and clerical level are the same for multiclass purpose?

Thanks to all for any kind of answer.
Grazie.
 
I am pretty sure your timing is way late. Try Pre-Levels 10,000.

Also just something I have found is that using the (Users) phases always seem to cause me issues so I never use those.

Also the best place to find script examples I have found is in the "Adjustment" tab. Between the spells and the adjustments you can find some 75% of the scripts already done for you with the correct timing.
 
Changed to pre-level, saved, tested and tried to work it on the character: at this point even the skill doesn't get the bonus :(
 
User-Post-Levels/10000 is too late for the attack modifer - attack's changable window is smaller than it ought to be. By then, the modifiers have already been propagated to all the other attack fields, and to the weapons, so HL is done with that field, and doesn't look back to see if it's changed later. Apply that part before Post-Levels/10000 (and since this is a class special, apply it after Post-Levels/1000) (it looks like you can simply move the whole script to Post-Levels/5000 and everything will be fine).

No, I'm sorry to say that specific modifiers for damage are not available yet.

(The problem is when the attack and damage picks get combined on a weapon - currently, all the specific fields on the attack are copied into the matching field on the weapon, but those fields haven't been duplicated and renamed to provide a separate set of damage fields).

All of the powers that a cleric domain adds are class specials. So, when you create the custom abilities to represent the orders a templar can choose from, you can tell that custom ability that it offers the same class special that's already been created for the corresponding cleric domain.

You'll need to be more specific about what multiclass purposes the cleric level might be used for before I can tell you how to modify those to allow templar, too.
 
Oppss didn't notice you where using xCount which is only available in Post-Level or later.

So go with Post-Levels 5000. Just tested using your script and it works for skills, attacks, and damage.
 
User-Post-Levels/10000 is too late for the attack modifer - attack's changable window is smaller than it ought to be. By then, the modifiers have already been propagated to all the other attack fields, and to the weapons, so HL is done with that field, and doesn't look back to see if it's changed later. Apply that part before Post-Levels/10000 (and since this is a class special, apply it after Post-Levels/1000) (it looks like you can simply move the whole script to Post-Levels/5000 and everything will be fine).

Work.
Thanks.



All of the powers that a cleric domain adds are class specials. So, when you create the custom abilities to represent the orders a templar can choose from, you can tell that custom ability that it offers the same class special that's already been created for the corresponding cleric domain.

ok, but it's only avaiable if character have the correspondig feat.
Ex: Order of Air as Custom at lvl 1.
I choose the Feat: Master of Order (Air)
Then, the Air Domain 1st level ability (Lightning Arc) become avaiable.

How can i code the pre-req without rewrote the Whole Lightning Arc?

You'll need to be more specific about what multiclass purposes the cleric level might be used for before I can tell you how to modify those to allow templar, too.

"A multiclass cleric/templar who has an
exact match between a domain and a temple
calling combines his levels in the classes when
determining what powers he receives from
both the calling and the domain (though not
when determining spells available from the
domain)."
 
ok, but it's only avaiable if character have the correspondig feat.
Ex: Order of Air as Custom at lvl 1.
I choose the Feat: Master of Order (Air)
Then, the Air Domain 1st level ability (Lightning Arc) become avaiable.

How can i code the pre-req without rewrote the Whole Lightning Arc?

My apologies, I missed the part about the feat when reading your question. There are some timing problems that make this difficult to implement.

The best solution I can come up with right now is to duplicate each of the orders - one copy is as presented for the class, the second adds the class ability, and adds a requirement that the character has selected that feat. So, if the character has the feat, they'll select the copy that also grants the class special, and they'll select the other copy if they don't have the feat.

"A multiclass cleric/templar who has an
exact match between a domain and a temple
calling combines his levels in the classes when
determining what powers he receives from
both the calling and the domain (though not
when determining spells available from the
domain)."

This is similar to the "Savage Seer" ability of the Rage Prophet class. I'd recommend studying the scripts on that ability.
 
My apologies, I missed the part about the feat when reading your question. There are some timing problems that make this difficult to implement.

The best solution I can come up with right now is to duplicate each of the orders - one copy is as presented for the class, the second adds the class ability, and adds a requirement that the character has selected that feat. So, if the character has the feat, they'll select the copy that also grants the class special, and they'll select the other copy if they don't have the feat.



This is similar to the "Savage Seer" ability of the Rage Prophet class. I'd recommend studying the scripts on that ability.


The eval script #2 worked perfectly:

this script is under the Temple Order: Air (custom special), equivalent of the Air Domain.

phase: first, pri: 497
Code:
~prova per la trasparenza ordini/domini
~if we have an animal companion granted by the Bonded Mount ability, add our level to it

~se non siamo attivi, fuori
doneif (tagis[Helper.ShowSpec] = 0)

if (hero.childlives[cdAir] <> 0) then
    hero.childfound[cdAir].field[xExtraLev].value += #levelcount[Templar]
    field[xExtraLev].value += #levelcount[Cleric]
endif
 
Back
Top