Question on Feat
So I am creating some new feats.
I plugged in this code to allow the feat to provide proficieny in Investigation, or double proficiency if already proficient. Interesting thing that happens is when i select the feat it applies double proficiency just fine, but the Investigation with double proficieny now appears twice both in the program and the print out. Why is that?? Code:
doneif (tagis[Helper.ShowSpec] = 0) |
It likely has to deal with timing, would have to see all the scripts being applied on the hero to be sure.
Have you looked at the UA article Feats for Skills code? The feat Acrobat has some code in there that does exactly what you want for Acrobatics, but doesn't leave a second copy on the sheet. Should be easily modified for whatever skill you want. The code runs Post-Level at 15500, which is after Helper.Proficient tags are assigned on most abilities (around 10000) but before the proficiency & double proficiency tags are pushed (around 16000 if I remember). Code:
doneif (tagis[Helper.ShowSpec] = 0) |
Quote:
The above could be done with almost no CPU usage by using a FOCUS instead. Code:
doneif (tagis[Helper.ShowSpec] = 0) Procedure Logic: Code:
<procedure id="5CSkProfDo" context="pick"><![CDATA[ Code:
doneif (tagis[Helper.ShowSpec] = 0) |
ShadowChemosh,
I'm trying your procedure code out and getting a generic error on the line: "Invalid ID specified for component" on the line Code:
hero.findchild["BaseSkill",v_SkillID].setfocus Code:
hero.childfound[skAcrobat].setfocus Something with 5e maybe doesn't like focusing on skills? |
Quote:
This: Code:
hero.findchild["BaseSkill",v_SkillID].setfocus Code:
Similiar this: Code:
hero.childfound[skAcrobat].setfocus Code:
perform hero.childfound[skAcrobat].setfocus |
Quote:
Also, some clarification for Freewolf on timing on running double proficiency: At Post-Levels 15000, the script "Assign Helper.Proficient based on ProfSkill tags on Hero" kicks off, which translates the ProfSkill tags over to a proficiency. At Post-Levels 20000, the scrip "Calc skProfBon" looks at the Helper.Proficient and the proficiency bonus of the hero to calc out the final proficiency modifier. So technically, assigning the Helper.ProfDouble tag has to happen after you know that the Helper.Proficient is or is not present at post-levels 15000 and before the proficiency is calculated at 20000. |
I want to thank all three of you for this. Adding that procedure to my notes!
|
Thanks for the help gents.
Been out of pocket last week with trying to pack up and move. I do not understand the whole Procedure aspect yet. I did copy the code from the UA Feats originally. I tried the FOCUS code you offered Shadow, but investigation still shows up twice, however this time only one has the double proficiency to it. I have tried the post-levels at 15500 and 17000 with the same result. http://i.imgur.com/Hip1zJS.png I am attaching an image of what I have. |
All times are GMT -8. The time now is 10:36 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.