Junior Member
Join Date: Jan 2012
Posts: 7
|
Hi, I am trying to get the Yamabushi Tengu proficient with all weapons and include their +1. I searched this board and found a solution for getting it to have a +1 to swords and monk weapons. I am just having a hard time creating a script that will give weapon proficiency to all swords and monk weapons.
The reason I want to use a script instead of just check each weapon manually, is because if a new monk or sword is added, then I want the Yamabushi Tengu to automatically include it. Here is what I have. I followed the Tengu's eval script as a model. Code:
~ Make proficient with all blades and monk weapons foreach thing in BaseWep where "wSpecial.Monk | wFtrGroup.BladeHeavy | wFtrGroup.BladeLight" perform eachthing.pulltags[WepProf.?] nexteach Also, is there a place that can give me a good startup on learning how to code data files? Thank you for your help |
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Hope that helps. Hero Lab Resources: Pathfinder - d20pfsrd and Pathfinder Pack Setup 3.5 D&D (d20) - Community Server Setup 5E D&D - Community Server Setup Hero Lab Help - Hero Lab FAQ, Editor Tutorials and Videos, Editor & Scripting Resources. Created by the community for the community - Realm Works kickstarter backer (Alpha Wolf) and Beta tester.- d20 HL package volunteer editor. |
|
#2 |
Junior Member
Join Date: Jan 2012
Posts: 7
|
Thank you ShadowChemosh. I will do research on how to do this stuff. I have been very impressed with Herolab and it's versatility. Way better than CodeMonkey's Etools. They didn't have a decent way to modify the stuff yourself.
If you find out how to make a person proficient with the weapon please let me know. I don't think this script works on the Tengu even because I used their script almost exactly. I just added "wSpecial.Monk | " to include all weapons with the monk special property. I am almost certain that is not the problem because it works on my first eval script where I give a bonus of 1 to every weapon in those two fighter categories and that monk special category. Thank you for your time, Terek |
#3 |
Junior Member
Join Date: Jan 2012
Posts: 7
|
I was reading on the wiki and I think I have figured it out. The problem is that I put this eval script on a racial ability and not on the race itself.
I looked up pulltags and found out that it is context sensitive and was adding that tag to the tags in the racial ability and not to the tags in the race. So the race was missing the WeapProf tags. This was a learning experience. I still feel it would be nice to be able to have a racial ability that would automatically include the weapon proficiencies but I couldn't find out how to dynamically do that. I found hero.assign[WepProf.x] but I couldn't figure out to dynamically put in the x pos the eachthing.idstring. If anyone could point that out to me I would appreciate it. Thanks, Terek |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Code:
perform root.pushtags[WepProf.?] Code:
perform forward[WepProf.?] (technically, it's shorthand for container.pushtags, but unless you're working with an item power, the container of everything in the Pathfinder files is the hero). |
#5 |
Junior Member
Join Date: Jan 2012
Posts: 7
|
Mathias,
Thank you very much for those samples and that explanation on how each method works. The explanations are necessary to help me understand so I can do more on my own. Now I am trying to understand the context of the tag you are using in pushtags, pulltags and forward. When you do a foreach does it change the context so when you reference the tag in a push or forward or pulltags it is grabbing them out of the thing or pick referenced in this iteration of the foreach loop? Thanks for your time and I really appreciate it. Terek |
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
While you're within a foreach, you can add
eachpick to the beginning of a reference to refer to the current pick the foreach has found, or you can leave the eachpick off, and you'll still be in the context of the item that's running the script. |
#7 |
|
|