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
furby076
Member
 
Join Date: Oct 2010
Posts: 74

Old May 26th, 2017, 12:20 PM
I need help to get this to work. The ability shows up within the "in play" section. That works fine. When I check the box, i am looking to get the * (asteriks) to show by the skill to show it has advantage.

Anyone know what's missing?

~if we're curently focusing, forward a tag to the hero.
~note the timing is just before First/500, which is when the containerreqs on the focus powers will look for this tag
if (field[abilActive].value <> 0) then
perform hero.childfound[skIntim].assign[Helper.Advantage]
endif
furby076 is offline   #1 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,730

Old May 26th, 2017, 01:12 PM
I would recommend adding debug logic to see why the script is not working:

Code:
debug "IN"
if (field[abilActive].value <> 0) then
debug "active"
  perform hero.childfound[skIntim].assign[Helper.Advantage]
debug "tag found " & hero.childfound[skIntim].tagis[Helper.Advantage]
endif
Then go to "Develop->Floating Info Windows->Show Debug Output". Then you can see the output of the "debug" info in the window.

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 online now   #2 Reply With Quote
furby076
Member
 
Join Date: Oct 2010
Posts: 74

Old May 26th, 2017, 02:50 PM
The debug showed

IN
active
tag found 1
furby076 is offline   #3 Reply With Quote
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,730

Old May 26th, 2017, 03:17 PM
Quote:
Originally Posted by furby076 View Post
The debug showed

IN
active
tag found 1
Great. This tells you what then? That the script you wrote is working.

Are you sure that tag causes the * to appear and not a situational note?

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 online now   #4 Reply With Quote
furby076
Member
 
Join Date: Oct 2010
Posts: 74

Old May 26th, 2017, 04:14 PM
FIgured it out!!!! Thank you supreme sneak! Just will remove the language but w/e
if (field[abilActive].value <> 0) then

#situational[hero.child[skInsight], "Advantage on Insight", field[thingname].text]

endif
furby076 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 01:10 PM.


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