Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Authoring Kit

Notices

Reply
 
Thread Tools Display Modes
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old August 30th, 2014, 01:54 PM
I'm getting a syntax error on the output line (@value = ) of the following script, with the message "Error parsing parameter 3 of function". Might anyone know why?

Code:
<calculate phase="Setup" priority="1000" name="Calc Bonus">
	   <after name="Level final"/><![CDATA[

	   var level as number

	   level = hero.tagvalue[Level.?]

	   @value = 1 + round(level / 4, 0, +1)

	   ]]></calculate>
sincla is offline   #1 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old August 30th, 2014, 02:02 PM
if you want to round up it would be round(level/4,0,1) not +1
AndrewD2 is offline   #2 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old August 30th, 2014, 02:09 PM
DOH!
sincla is offline   #3 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 12:04 AM
Code:
<thing
    id="drgBrthTyp"
    name="Breath Type"
    compset="RaceFeat"
    description="Choose the type of damage your breath weapon causes.">
    <fieldval field="usrSelect" value="Fire"/>
    <arrayval field="usrArray" index="0" value="Acid"/>
    <arrayval field="usrArray" index="1" value="Cold"/>
    <arrayval field="usrArray" index="2" value="Fire"/>
    <arrayval field="usrArray" index="3" value="Lightning"/>
    <arrayval field="usrArray" index="4" value="Poison"/>
    
    </thing>
I'm trying to incorporate the above racial feature from the 4th edition files into my race choices. It is properly bootstrapped to the relevant race. However, no drop down menu based on the array appears in the Race tab to make a selection. The power name does appear in the summary window and the Special tab as the default: "Breath Type: Fire". I've successfully set up thing-based racial feature menu selections using tag expressions for usrCandid1 for other racial abilities. I'm not sure what I'm doing differently between the two methods such that the array menu in this case is not visible, but the thing-based menu in the other case is. Am I making another stupid mistake? Thanks.
sincla is offline   #4 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 08:13 AM
Never mind, it was a tag issue! Took me half a day to figure that one out.
sincla is offline   #5 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 1st, 2014, 08:30 AM
but you figured it out which means you're learning!
AndrewD2 is offline   #6 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 08:34 AM
BUT I still don't understand why for an array-based menu I need to attach the ConfSource.Race tag (I'm working with the 4th edition data files), but for a thing-based menu specificed with a tag expression in usrCandid1 I did NOT need to, even though the table element clearly has a list element specifying that I must have that tag.
sincla is offline   #7 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 1st, 2014, 08:47 AM
I wish I could help you with that but I don't know anything about the 4E data sets
AndrewD2 is offline   #8 Reply With Quote
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 10:03 AM
Do you know anything about d20? When I go to the downloaded d20 data files, all I see for source are .dat files, no .def or structure files. Where are they?
sincla is offline   #9 Reply With Quote
AndrewD2
Senior Member
 
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975

Old September 1st, 2014, 10:05 AM
That's probably all contained in the pkg files
AndrewD2 is offline   #10 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 08:32 PM.


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