Anyone in here know Acroscript, or more accurately Adobe Acrobat's version of Javascript?

Correction and a little more on the above: The stats range from 01 to 105, going up by 5's up to 100, then by 1 up to 105. There are two numbers that are associated with the stat number, bonus and development points (DP). In the following example the format is "Stat range" : bonus, DP. This is in the script that I have been led top believe will work for this idea.
Code:
var stat = {"01-05" : -18, .25, "06-10" : -16, .25, "36-40" : -4, .75, "61-65" : 3, 3, "91-95" : 9, 9, "102" : 12, 12}
Now my questions:
1. Can I put this into a custom object in a document level script?
2. Will this work with two columns to look up?
3. Do I need top create separate lines for each stat number or can there be ranges like above. Or Can I simply do this:
Code:
var stat = {"01" : -18, .25, "06" : -16, .25}
Where it will automatically apply the numbers between 1 and 6 to the first "01" and so on. Or would it have to look below the number like this:
Code:
var stat = {"05" : -18, .25, "10" : -16, .25}
Where it will automatically apply the numbers equal to and lower than 05 to get that bonus and DP, but will apply the numbers between 6 and 10 to the "10".

Bruce
 

log in or register to remove this ad

Remove ads

Top