Results 1 to 8 of 8

Thread: GemStone Math

  1. Default GemStone Math

    GemStone always rounds down on everything right? Even if itís like 5.999999 thatís still rounded down to 5?

  2. Default

    That would be truncation. And no, there are some systems where numbers get rounded up. Only one I can think of off the top of my head is sonic weapons/shields, where the enchant bonus gets rounded up, but I'm pretty sure there are a few other systems as well.
    Last edited by khorpulent; 11-02-2018 at 10:57 AM.

  3. #3

    Default

    As said, things generally truncate. There are some exceptions in other places, for example on spell 917.

    917 bonus for Water or Fire lore to trigger an extra crit rank, the math is as: (Lore Rank / 5)%

    50 ranks = (50 / 5)% = 10%
    53 ranks = (53 / 5)% = 10.6%

  4. Default

    Most things on the wiki will have the formula listed. You're just lookin' for the TRUNC in there. If it has that, it's truncating. Otherwise it'll round nearest.

  5. #5

    Default

    I have not checked in decades, but I think mana (was it max or regen?) rounds up. It could have changed with the GS3/4 conversion.


  6. #6

    Default

    agidex also rounds normally (15 combined bonus per -1 RT, you get the RT off at 8, 23, 38, etc.)
    Mithrilschlong, 2015-03-10 to slightly later on 2015-03-10. You will not be forgotten!

  7. #7

    Default

    I don't know for a fact but I believe that most/all of their formulas use truncation. However, to simulate rounding some formulas will include an inherent value such as +0.5. For example, in the 12 (actual 11.5) damage attack below, the formula would be trunc(8.5 +0.5 + 3 = 12 ) and in the 13 (actual 13.25) damage attack it is trunc(8.25 +0.5 + 5 = 13 ). For AGIDEX there might be a phantom +7 value included in the formula used to simulate rounding. A combined AGIDEX bonus of +8 would appear to round up to 15 with an actual formula of trunc(8 +7) But, again, this is only speculation.


    Code:
    You swing a dagger at a giant rat!
      AS: +72 vs DS: +14 with AvD: +25 + d100 roll: +51 = +134
       ... and hit for 12 points of damage!
       Minor puncture to the right arm.
    
    Weapon damage factor: .250 (dagger vs cloth)
    Endroll success margin: 34
    Raw damage: 34 * .250 = 8.5
    Crit damage: 3 (Rank 1 arm critical)
    Total damage: 12 (8.5 + 3)
    Code:
    You swing a dagger at a giant rat!
      AS: +93 vs DS: +14 with AvD: +25 + d100 roll: +29 = +133
       ... and hit for 13 points of damage!
       Minor puncture to the back.
    
    Weapon damage factor: .250 (dagger vs cloth)
    Endroll success margin: 33
    Raw damage: 34 * .250 = 8.25
    Crit damage: 5 (Rank 1 back critical)
    Total damage: 13 (8.25 + 5)

    Mark

  8. #8

    Default

    Quote Originally Posted by Riltus View Post
    I don't know for a fact but I believe that most/all of their formulas use truncation. However, to simulate rounding some formulas will include an inherent value such as +0.5. For example, in the 12 (actual 11.5) damage attack below, the formula would be trunc(8.5 +0.5 + 3 = 12 ) and in the 13 (actual 13.25) damage attack it is trunc(8.25 +0.5 + 5 = 13 ). For AGIDEX there might be a phantom +7 value included in the formula used to simulate rounding. A combined AGIDEX bonus of +8 would appear to round up to 15 with an actual formula of trunc(8 +7) But, again, this is only speculation.


    Code:
    You swing a dagger at a giant rat!
      AS: +72 vs DS: +14 with AvD: +25 + d100 roll: +51 = +134
       ... and hit for 12 points of damage!
       Minor puncture to the right arm.
    
    Weapon damage factor: .250 (dagger vs cloth)
    Endroll success margin: 34
    Raw damage: 34 * .250 = 8.5
    Crit damage: 3 (Rank 1 arm critical)
    Total damage: 12 (8.5 + 3)
    Code:
    You swing a dagger at a giant rat!
      AS: +93 vs DS: +14 with AvD: +25 + d100 roll: +29 = +133
       ... and hit for 13 points of damage!
       Minor puncture to the back.
    
    Weapon damage factor: .250 (dagger vs cloth)
    Endroll success margin: 33
    Raw damage: 34 * .250 = 8.25
    Crit damage: 5 (Rank 1 back critical)
    Total damage: 13 (8.25 + 5)

    Mark
    yeah i know that's come up, i think it was Khaladon who said something to the effect of "there's no rounding in gemstone" (who knows with newer systems since his tenure ended). So so whacky shit like that would be consistent with that statement.
    Mithrilschlong, 2015-03-10 to slightly later on 2015-03-10. You will not be forgotten!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •