|
Junior Member
Join Date: Nov 2009
Posts: 21
|
Hello folks
I am working on making a fighter Archtype to be used with the cleric, sorcerer and Rogue base classes. The best i have figured out so far is to get weapon training to show up in the primary ability group. i.e. I made a 5th lvl cleric and chose my Fighter archtype. I was able to figure out how to make the weapon training appear in the Domains list....this is of course messy and even though i get it to work the bonuses for the weapon training are not correct. I had created a 5th level fighter as well so i could make sure they match, and the weapon training bonus should be +1 but my archtype is giving +2 for some reason. So even though i got this far, it is utterly messy. What i would really like to know is it possible to get the weapon training from a fighter to show up in the secondary, tertiary or quad ability list? I can only make it appear in the primary. Is there anyone who can give me some help on this? BTW i am not overly familiar with the coding here, so any instructions would be GREATLY appreciated Thank you very much Kridak |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Can you think of any other archetypes that grant a class weapon training like a fighter?
(answer: the Magus's Myrmidarch archetype from Ultimate Combat) Have you tried making a copy of that archetype, to see how it accomplishes things? |
#2 |
Junior Member
Join Date: Nov 2009
Posts: 21
|
Damn i did not know another archtype had that ability...thanks Mathias.
|
#3 |
Junior Member
Join Date: Nov 2009
Posts: 21
|
Ok i can make the weapon ability show up in the 2nd ability section.
My problem is the actual bonuses are out of whack. At 20th level it is showing.... 1st weapon - +6 hit and dmg (should be +4) 2nd weapon - +4 hit and dmg (should be +3) 3rd weapon - +2 hit and dmg (this is correct) 4th weappon - +1 hit and dmg (this is correct) This is the code i used to get the bonuses...it is from the Myrmidarch archtype. What did i do wrong? ~ Build up a tag expression to identify all weapon training abilities for this class var expr as string expr = "wFtrGroup.? & CustTaken." & linkage[varies].idstring ~ First, make sure we have any weapon training abilities for this class. If we don't, there's nothing to do here. doneif (hero.haschild[BaseCustSp,expr] = 0) ~ Debug "Weapon training is being calculated for " & field[name].text ~ The best bonus available to all weapon training abilities is 1 at 5th level, +1 per 4 levels after that. If we don't have a bonus, we're done. var bonus as number bonus = linkage[varies].field[cGiveSp2nd].value var tagbonus as number doneif (bonus = 0) ~ Go through all of our weapon training abilities in ascending order, giving a decreasing bonus to each. foreach pick in hero from BaseCustSp where expr ~ Set the bonus for this ability eachpick.field[abValue].value += bonus + 1 - (eachpick.field[xIndex].value) tagbonus = eachpick.field[abValue].value ~ Forward the weapon group tag we're assigned to the class a number of times equal to the bonus we're receiving if (eachpick.field[abValue].value >= 1) then var i as number var wepexpr as string var bonustag as string wepexpr = eachpick.tagids[wFtrGroup.?," | "] bonustag = eachpick.tagids[TrainBonus.?, ""] foreach pick in hero from BaseWep where wepexpr for i = 1 to tagbonus perform eachpick.assignstr[bonustag] next nexteach endif nexteach |
#4 |
Junior Member
Join Date: Nov 2009
Posts: 21
|
any ideas?
Last edited by kridak; August 18th, 2011 at 08:20 AM. |
#5 |
|
|