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
ShadowChemosh
Senior Member
Volunteer Data File Contributor
 
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729

Old May 10th, 2018, 03:40 PM
Ok my bad! I forgot in this specific case you can't use childlives[].

The reason is that if we test at First/400 HL sees the bootstrapped lFirstSpch and says its live because the "condition" logic does not run until First/500. Basically childlives[] is seeing the bootstrapped languages.

I fixed it but it takes a little more logic as we have to check to see if any "user added" languages where added. We want to ignore the languages you have bootstrapped so we don't test for their existence on the hero.

Here is that script running at First/400:
Code:
foreach pick in hero from BaseLang where "thing.user_added & (Language.lFirstSpch|Language.lDraconic|Language.luIobarian|Language.luIobarian)"
  If (eachpick.tagis[Language.lFirstSpch] = 1) Then
    perform hero.assign[Custom.lFirstSpch]
  ElseIf (eachpick.tagis[Language.lDraconic] = 1) Then
    perform hero.assign[Custom.lDraconic]
  ElseIf (eachpick.tagis[Language.luIobarian] = 1) Then
    perform hero.assign[Custom.luIobarian]
  ElseIf (eachpick.tagis[Language.lGiant] = 1) Then
    perform hero.assign[Custom.lGiant]
  Endif
nexteach
I also changed your file and have attached the updated version to this post.

P.S. - This is often why you wont see LW do this type of logic of auto-adding stuff. Instead they would give "bonus" languages and an error message to inform the user to manually add the missing language(s).
Attached Files
File Type: email ~Karpana_Custom.user (30.5 KB, 2 views)

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   #11 Reply With Quote
karpana
Junior Member
 
Join Date: Jan 2016
Posts: 25

Old May 10th, 2018, 03:48 PM
<deleted in light of ShadowChemosh's previous post>

Last edited by karpana; May 10th, 2018 at 04:00 PM.
karpana is offline   #12 Reply With Quote
karpana
Junior Member
 
Join Date: Jan 2016
Posts: 25

Old May 10th, 2018, 04:03 PM
Thanks for the updated file ShadowChemosh.
I'm about to watch a grudge-match hockey game on the TV. ;-) [Go Jets Go!]

I'll checkout the changes you made a bit later (probably between periods)
karpana is offline   #13 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 02:17 AM.


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