Member
Join Date: Aug 2014
Posts: 52
|
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> |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
if you want to round up it would be round(level/4,0,1) not +1
|
#2 |
Member
Join Date: Aug 2014
Posts: 52
|
DOH!
|
#3 |
Member
Join Date: Aug 2014
Posts: 52
|
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> |
#4 |
Member
Join Date: Aug 2014
Posts: 52
|
Never mind, it was a tag issue! Took me half a day to figure that one out.
|
#5 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
but you figured it out which means you're learning!
|
#6 |
Member
Join Date: Aug 2014
Posts: 52
|
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.
|
#7 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
I wish I could help you with that but I don't know anything about the 4E data sets
|
#8 |
Member
Join Date: Aug 2014
Posts: 52
|
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?
|
#9 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
That's probably all contained in the pkg files
|
#10 |
|
|