Senior Member
Volunteer Data File Contributor
Join Date: Jan 2010
Location: Chicago, IL (USA)
Posts: 10,729
|
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 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). 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. |
#11 |
Junior Member
Join Date: Jan 2016
Posts: 25
|
<deleted in light of ShadowChemosh's previous post>
Last edited by karpana; May 10th, 2018 at 04:00 PM. |
#12 |
Junior Member
Join Date: Jan 2016
Posts: 25
|
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) |
#13 |
|
|