Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old May 24th, 2017, 08:41 PM
I am trying to write a similar adjustment to the Equipment, Add Trackable but have it automaticlly apply to all scrolls.

I have it down to:
Code:
      ~ Set shorter live name
      field[livename].text = "Equipment, Trackable"

      ~ If we're not enabled, get out now
      doneif (field[pIsOn].value = 0)
      
      foreach pick in hero where "gType.Scroll"
        ~ Add Gear Uses tag
        perform eachpick.assign[Helper.UsesQty]
        ~ Add Weapon Tracker tag
        perform eachpick.assign[User.Tracker]

        ~ Set tracker amount
        eachpick.field[trkMax].value += int(eachpick.field[usrSource1].value)
        nexteach
which will work if I set a fixed value for int(eachpick.field[usrSource1].value) but wont seem to work to grab the number of castings on a scroll. Anyone have any ideas for this?
Minous is offline   #1 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old May 31st, 2017, 04:37 PM
Bueller Bueller
Minous is offline   #2 Reply With Quote
Aaron
Senior Member
 
Join Date: Oct 2011
Posts: 6,793

Old June 1st, 2017, 05:01 AM
usrSource1 isn't the right field to be looking, that stores a number which determines what state of thing the selector chooses (whether the selector picks from picks or things).

I think what you're trying to do is count the number of spells on the scroll and the number of times each spell is duplicated, right? In that case, you're going to have to nest a second foreach to go through all the spells inside the container.

Code:
        foreach pick in eachpick.gizmo from BaseSpell
          ~ count stuff
          nexteach
Aaron is offline   #3 Reply With Quote
Reply


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 03:10 PM.


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