|
Senior Member
Join Date: Jan 2015
Posts: 160
|
I'm having a bit of a problematic issue with tags not adding properly. For context, I've got 9 rings that you get synergy bonuses from depending on how many you equip. Each is bootstrapped with the abilities you gain (which are unique), each of which check the hero for how many on a specific tag are present (each ring adding one while equipped). That works perfects, but the rings are adding the tags when unequipped, and removing them when equipped.
I have: 1. Each file starting with a "done if not equipped" followed by a "add this tag to hero". Yes, making sure my done if worked properly was my first check. 2. Tried relaunching the program, as that usually clears up this issue. 3. The tag is adding at First 495 iirc, since I'm adding container (like a glove of storing) to the hero's equipment, and that restricts how late it can run. I'm assuming this is where the issue is. Any thoughts on the matter would be appreciated. Thanks! |
#1 |
Senior Member
Join Date: Mar 2013
Location: Greater London, UK
Posts: 2,623
|
It is probably the "done if not equipped" line which is the wrong way around.
Can you post the actual code? Farling Author of the Realm Works Import tool, Realm Works Output tool and Realm Works to Foundry module Donations gratefully received via Patreon, Ko-Fi or Paypal |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
Try putting in a debug statement to see when values are when your doneif() code runs. That will tell you for sure if its the timing... 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. |
|
#3 |
Senior Member
Join Date: Jan 2015
Posts: 160
|
Quote:
As I said, it was the first thing I checked. Quote:
|
||
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Quote:
But normally this is why items don't bootstrap other items. 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. |
|
#5 |
Senior Member
Join Date: Jan 2015
Posts: 160
|
Quote:
Looks like that's setting at First/1000 from what I see. I'd hoped, but looks like its just not going to play out the way I'd envisioned. I think I'll just have it bootstrap the storage space "item", then have that enable itself by checking for the tags. Not as crisp as I wanted, but looking like the only feasible way. |
|
#6 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
Where and how are you seeing this? Because like I mentioned above I built a test item and actually used "DEBUG" statements to prove that field works at First/490.
To make sure we are on the same page. The BEST way to find an answer for timing is to use DEBUG statements in the script. Make a script on your item and set it to First/490. Then add this script: Code:
debug "gIsEqip " & field[gIsEquip].value debug "gUserEquip " & field[gUserEquip].value Add the item to a blank character and then equip and un-equip the item. The values of the above fields at First/490 will be displayed to you. This then lets you 100% prove what the values are at for a specific timing. 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. |
#7 |
Senior Member
Join Date: Jul 2014
Posts: 412
|
As far as the timing goes that can be a doozy as I have ran into that several times. Although the bootstraps can be hidden via a conditional bootstrap. Look under conditionals in this thread:
http://forums.wolflair.com/showthread.php?t=21663 That should help you get something going as far as managing bootstraps. Forum link for my content work: Pathfinder Thread Forum link for SU 5e content work: 5e Steven Universe Thread This link is for my group, but feel free to play it with: DMM 5e | "https://www.dropbox.com/s/vsd9w1eodlnwjq0/updatesDMM.xml?dl=1" Copy this link to your update manager to get updates when available. This adds the Pisky subrace to elves from Berserk! and additional subraces for the Gem Race. Please post comments in the provided threads above. |
#8 |
Thread Tools | |
Display Modes | |
|
|