Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Let's say your advantage cost is stored in the adCost field.
So, this should be close to what you want: Code:
if (hero.intersect[Start,Start] <> 0) then field[adCost].value -= 1 endif |
#21 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
In the tags.1st file, you can add this:
Code:
<group id="Start" dynamic="yes"> <value id="Samurai"/> </group> <tag group="Start" tag="Samurai"/> as do all the weapons that all samurai-type schools give. The forward you've already set up will forward the school's own Start tag and Start.Samurai. |
#22 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Okay so I have added the <identity group="Start"/> to the school so now I should make <tag group="Start" tag="scHida"/>
then I would make the intersect ref if (hero.intersect[Start,Start] <> 0)then perform assign[Helper.Start] endif But where do I place this script? I could not find a way on the wiki and I do not own the Pathfinder set so I can not look inside to find where it goes. I also looked in the D20 files but found nothing there that I could look at. |
#23 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Quote:
<!-- Attribute component Each attribute possessed by the actor derives from this component --> <component id="Attribute" name="Attribute" autocompset="no"> <!-- Attributes have a minimum trait value of 1 --> <eval index="1" phase="Initialize" priority="3000"><![CDATA[ field[trtMinimum].value = 1 ]]></eval> <!-- Each attribute point above one that is allocated by the user costs 4CP * the level, per level --> <eval index="2" phase="Traits" priority="10000"> <before name="Calc resLeft"/> <after name="Bound trtUser"/><![CDATA[ var traitlevel as number var traitcost as number var finalvalue as number traitlevel = field[trtUser].value traitcost = 4 finalvalue = traitcost / 2 * (traitlevel * traitlevel + traitlevel) hero.child[resCP].field[resSpent].value += finalvalue - 12 ]]></eval> </component> |
|
#24 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Quote:
I am not sure on some things about it I understand that the id="Start" ref back to the tag I added to my School but the value id="Samurai" I am not sure about, do I have to add a Samurai tag in with school then add that tag to each school that is a samurai? which would make sense b/c then I should add the tags courtier and shugenja as well. OR did I miss the boat and is Samurai suppose to lead to a different referance? By the way thank you for the help, sometimes I get so caught up in attempting to learn via these post that I forget to let you all know how much you have helped me w/ out all of you I would have given up a long time ago! |
|
#25 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Hey I was looking through this (tag.1st) and under the Equipment there is an id for starting equipment Lines 89 - 97 in my file but here they are:
<group id="Equipment"> <value id="Hand" name="Requires one or more hands"/> <!-- Identifies equipment that requires hands to use --> <value id="TwoHand" name="Requires two hands"/> <!-- Identifies equipment that is two-handed --> <value id="StartEquip" name="Gear starts out equipped"/> <!-- Identifies equipment that is equipped by default --> <value id="AutoEquip" name="Gear is auto-equipped"/> <!-- Identifies equipment that is automatically equipped (e.g. natural attacks) --> <value id="Natural" name="Natural weapon/armor/etc."/> <!-- Identifies equipment that is a natural form and exempt from various behaviors --> <value id="CustomGear" name="Custom Gear"/> <!-- Identifies a piece of gear that is user customizable --> </group> Can I use this somehow to make my starting equipment work for each school? or would this just add a blanket for every character. If it is just a Blanket you get this with your character then it would help for some items, such as Kimonos which (off the top of my brain) I think everyone starts with one and a set of sandles. Just wondering. |
#26 |
Senior Member
Join Date: Jul 2007
Location: Walbridge, Ohio
Posts: 767
|
Okay so I found that in bootstrap.1st I can add items to the character
<!-- Add kimono pick --> <bootstrap index="25" thing="eqKimono"/> <!-- Add sandal pick --> <bootstrap index="27" thing="eqSandals"/> Which saves time |
#27 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Quote:
|
|
#28 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
|
#29 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,214
|
Quote:
So, since you want them cheaper, where have you stored the original cost? |
|
#30 |
|
|