Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - D&D 5th Edition SRD

Notices

Reply
 
Thread Tools Display Modes
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old May 8th, 2017, 08:14 PM
ShadowChemosh:

Could you please take a look at this script and maybe tell me where I am going wrong.

Phase: Post-level, Priority: 10000
Timing: (Before script) Calc skProfBon

Quote:

doneif (tagis[Helper.ShowSpec] = 0)

doneif (tagis[Helper.Disable] <> 0)

if (hero.child[skAcrobat].tagis[Helper.Proficient] = 0) then
perform hero.child[skAcrobat].assign[Helper.Proficient]
else
perform hero.child[skAcrobat].assign[Helper.ProfDouble]
endif
This script is supposed to check to see if the hero has Proficiency with Acrobatics, if he doesn't it should grant the hero that Proficiency. If he does then grant Double Proficiency.

They changed how this is done. I've looked at how Expertise is handled by the Rogue and bard. As far as I can see this script should work . . . but it doesn't <cry>

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 9th, 2017, 10:38 AM
I don't see anything wrong from just the point of view of the script.

My advice would be to start with Debug lines to see what is really going on:
Code:
doneif (tagis[Helper.ShowSpec] = 0)
debug "ShowSpec"
doneif (tagis[Helper.Disable] <> 0)
debug "Disable"

debug "Helper.Proficient " & hero.child[skAcrobat].tagis[Helper.Proficient]

if (hero.child[skAcrobat].tagis[Helper.Proficient] = 0) then
perform hero.child[skAcrobat].assign[Helper.Proficient]
debug "assigned Proficient"
else
perform hero.child[skAcrobat].assign[Helper.ProfDouble]
debug "assigned ProfDouble"
endif
My guess would be that Helper.Proficient tag is not yet on the skAcrobat skill at Post-Level/10000

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.
ShadowChemosh is offline   #2 Reply With Quote
Logoman
Junior Member
 
Join Date: Jan 2017
Posts: 13

Old May 11th, 2017, 05:59 PM
Here is how I have made it work with some of the custom feat I have worked on. This feat is also adding an attribute to the feat as well, so I included it.

I am doing it Post-Attributes at 10000
Code:
~ If we're not shown, just get out now
      doneif (tagis[Helper.ShowSpec] <> 1)
      ~ if we've been disabled, get out now
      doneif (tagis[Helper.Disable] <> 0)

      ~ Add 1 to Dexterity score
      hero.child[aDEX].field[aStartMod].value += 1

if (hero.tagis[ProfSkill.skAcrobat] <> 0) then
       perform hero.assign[ProfDouble.skAcrobat]
else
       perform hero.childfound[skAcrobat].assign[Helper.Proficient]
endif

Last edited by Logoman; May 11th, 2017 at 06:01 PM.
Logoman is offline   #3 Reply With Quote
Mergon
Senior Member
 
Join Date: Sep 2012
Location: Ottawa, Canada
Posts: 788

Old May 18th, 2017, 05:21 PM
For whatever reason, your script doesn't work for me. I'll go back to kooking at it tomorrow.

Thanks for trying.

Watch your back, Conserve your ammo,
and NEVER cut a deal with a dragon!
Mergon is offline   #4 Reply With Quote
Logoman
Junior Member
 
Join Date: Jan 2017
Posts: 13

Old May 19th, 2017, 04:46 AM
I see my error, I am running the script Post-levels not post-attributes. Try that and see if it helps?
Logoman is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:12 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.