Search results

  1. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    Yeah I should have noticed the order should have been reversed, thanks for that. It works great now, everything is much appreciated! Interesting things to know, I especially like the oldVal += expr I wonder if it is any quicker. The biggest problem with using Acrobat for any of this is that it...
  2. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    Awesome! It's "almost" working. Right now it will calculate the numbers correctly up to a 95 for the NewStat1, but it stays at a cost of 2 when I go above a 95 (it still goes up for each point I add but it only multiplies by 2). It even does that if I start at a 95 or even a 100 in the St.0...
  3. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    If there is no way to get this to work in a math equation then I could always try it in an array, though I am not so sure I could figure out how to get it to pull the cost for each point given...... Another thought is to do a counter where each click and it automatically adds one to the new...
  4. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    Ok, It took me some time but I corrected the script above to work, here is the Acroscript version...: var oldStat = this.getField("St.0").value var newStat = this.getField("NewStat1").value var oldVal = 0 var newVal = 0 oldVal = oldStat if(oldStat > 90) {oldVal = oldVal + (oldStat - 90) }...
  5. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    This is the exact error: I get this one after I take out all the unneeded text leaving only the code: Bruce
  6. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    Looks good though I'm a little confused about the multiplying (*) by 7 you have in there. Edit: Ok, I see it now..... Hmmm...... I'm also having trouble getting this to work. Is this in Javascript or Acroscript? If I run it as is I get a missing syntax error (right after the "var newVal =...
  7. Madmaxneo

    Need help with a somewhat complex math equation in Java/Acroscript

    This is for Adobe Acrobat which uses an enhanced form of Javascript, but I believe Javascript wil work so if you have a Javascript solution please post it. I am developing an auto-calculating character sheet in Acrobat Pro XI, so far it is coming along great. Except for one (currently) minor...
  8. Madmaxneo

    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...
  9. Madmaxneo

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

    Ok, for now I concede because I am trying to get this thing finished and hopefully real soon. I ended up creating the fields for now (there was only 13). I need help in combining that script event.value = racialMod(this.getField("Race").value, this.getField("Stat10").value) with a basic sum of...
  10. Madmaxneo

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

    Ignore all that above. I kind of got it fixed. I somehow fixed the security error....lol. The problem is in that script to pull the "Strength" you use this formula: But in mine I don't have a field named stat and in fact the base sheet is converted from an excel sheet so where the stats are...
  11. Madmaxneo

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

    Some errors. First I am getting this security error whenever I close the global script in the document Javascripts: I couldn't find any security settings to change to fix this. Now for the code errors. I'm trying it your way but when I select the race I am getting the error: This is a sample...
  12. Madmaxneo

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

    Oh, I forgot one thing.... In the first code for the bonus associated with the number of ranks. How would I add in one more bonus number? If there are "0" (zero) or no ranks in the field then the bonus is -25. I figured it out! I added another "else if" statement and it worked!!! "Happy...
  13. Madmaxneo

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

    I was editing my post with a possible different course to take. But you apparently was watching the thread and got in there and added your post then I had to cancel mine....lol. This is the example I was given and i think it might work better, for one because all the stats are fixed and are not...
  14. Madmaxneo

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

    That looks good. But, I can't seem to find the global scripts in the document. I read something about them in the little scripting guide but it was just a paragraph. I could attempt to copy them from here again, but, based on not knowing where to find them I wouldn't know where to place them. I...
  15. Madmaxneo

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

    That works! Thank you so so much. Now how to do the stat blocks for Races.......... Bruce
  16. Madmaxneo

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

    I have acrobat XI. I use the Adobe cloud services which always updates to the latest. Here is the exact script I used: var rank = this.getField("Ranks1").value var value = 0 if (rank > 20) { value = 10*5 + 10*2 + (rank - 20) } else if (rank > 10) { value = 10*5 + (rank - 20)*2 } else { value =...
  17. Madmaxneo

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

    I tried that script in acrobat and I got this error: Bruce
  18. Madmaxneo

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

    Alan that looks great! I will have to check out the dropbox link a little later as I am running late for a game. Bruce
  19. Madmaxneo

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

    That looks very similar to what I did in Maptools for experience I was going to post it here but it's a little long. It has code in it that automatically changes your level when you get enough exp and has an exp bar you can put on your character to show how close you are to next level. I had...
  20. Madmaxneo

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

    Sweet! I really hope you can help me. First, all this will go into the "Custom Calculation Script" in the calculate tab under the properties menu when in edit mode. Ok, first I am attempting to simulate a 2 column table where the first column is the rank for a skill and the second column is the...
Top