Thread: XML Averaging?

  1. #1

    XML Averaging?

    I am creating a new ruleset. I need an attribute (ranging from 1-100) to be averaged with the skill (ranging from 1-100) to get the Effective skill level.

    I can get the ratings into the sheet and using the d20 example, I see how to ADD different values together. How do I average them? What about the order of operations if I need to multiply and then add, etc?

    Any suggestions or clarification needed?

    Tom / Doc4

  2. #2
    I don't think there is any way to do that right now. I think they are planning in a future release to support decimals (floats), when this happens I believe you will be able to do what you are asking as long as you already know that number of numbers to be averaged.

  3. #3
    In the event anyone needed to average two numbers together, it took some finding but was fairly easy.

    I simply created a variable called averager, gave it a value of 2, added my two stats together and then divided by the averager variable.

    <source name="dexterity" op="+" />
    <source name="piloting" op="+" />
    <source name="averager" op="/" valuemap="0:2" />

    There is probably an easier way to do this as well, but the process of averaging is certainly possible.

    Tom / Doc4

  4. #4
    Excellent, I think I have use for this further down the road. Thanks for finding out how to do it.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Log in

Log in