Thread: XML Averaging?
-
June 10th, 2005, 23:29 #1
- Join Date
- Jun 2005
- Posts
- 43
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
-
June 11th, 2005, 02:05 #2
- Join Date
- Mar 2005
- Posts
- 540
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.
-
July 6th, 2005, 05:40 #3
- Join Date
- Jun 2005
- Posts
- 43
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
-
July 6th, 2005, 08:28 #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)
Bookmarks