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
xWhiteGodx
Junior Member
 
Join Date: May 2018
Location: East Coast, USA
Posts: 12

Old September 28th, 2019, 09:26 PM
I've come across a new problem that I don't quite know what key words to use to search for. I'm trying to get Class Special 1 to pull off Class Special 2's tracker in order to determine when to activate a certain ability. Both Class Specials have their own tracker.

Class Special 1's Eval Script is as follows (each abValue is 2):

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

             if (#levelcount[Kinet] >= 16) then
           if (field[abilActive].value <> 0) then
         if (field[usrChosen1].ischosen <> 0) then
         field[usrChosen1].chosen.field[aNormMod].value += field[abValue3].value

        endif
       endif
      endif

             if (#levelcount[Kinet] >= 11) then
           if (field[abilActive].value <> 0) then
         if (field[usrChosen1].ischosen <> 0) then
         field[usrChosen1].chosen.field[aNormMod].value += field[abValue2].value

        endif
       endif
      endif
              if (#levelcount[Kinet] >= 6) then
           if (field[abilActive].value <> 0) then
         if (field[usrChosen1].ischosen <> 0) then

         field[usrChosen1].chosen.field[aNormMod].value += field[abValue].value


        endif
       endif
      endif
What I need to do is implement an "If Tracker from Class Special 2 is at 3, then field[usrChosen1].chosen.field[aNormMod].value += field[abValue].value".

I need another "if", but I've no clue if it's even possible to pull from another Thing's tracker, except with maybe [trkLeft], but no idea how to format it into it. Appreciate the help.
xWhiteGodx is offline   #1 Reply With Quote
dungeonguru
Senior Member
 
Join Date: May 2016
Posts: 608

Old September 30th, 2019, 03:58 AM
If you're trying to find a value from another ability, usually it looks something like:

Script on Ability #1:

~ If the tracker on Ability_2 is less than or equal to 3
if (hero.childfound[Ability_2_ID].field[trkLeft].value <= 3) then
~ do something to the local context fields
field[usrChosen1].chosen.field[aNormMod].value += field[abValue].value
end if
dungeonguru is offline   #2 Reply With Quote
xWhiteGodx
Junior Member
 
Join Date: May 2018
Location: East Coast, USA
Posts: 12

Old September 30th, 2019, 02:45 PM
Thank you. It worked! If there was a rep system...
xWhiteGodx is offline   #3 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 12:45 PM.


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