Thread: aritmetics in a numbercontrol
-
February 15th, 2005, 19:44 #1
- Join Date
- Feb 2005
- Location
- Italy
- Posts
- 44
aritmetics in a numbercontrol
I have to calculate STxST/5 and other multiplicative values derived from the stats. Is there a way using <source>?
how does valuemap work?
-
February 16th, 2005, 04:27 #2
Re: aritmetics in a numbercontrol
Originally Posted by subbuglio
Valuemap appears to be exactly that...(ducks in preparation for getting hit). It seems to be mapping (in the examples I saw) ability scores to defined bonuses. If you have a limited number of possible ability scores, it seems like its just easier to hard code it like this as opposed to try and teach the machine to do some formula.
Can't you just create your own XML node and have a valuemap entry that looks something like this (taking 10 as an example for the sake of clean math)
Code:<source name="myAttribute" op="+" valuemap="10:20...15:45...20:80..." />
-
February 16th, 2005, 08:38 #3
- Join Date
- Feb 2005
- Location
- Italy
- Posts
- 44
well... ok, I got the point, but i'd prefer not to hardcode... anyway if there is no other way, maybe i'll do the hard work... :?
If there is the possibility to make calculations, as it is possible to sum values (like bonuses) please tell me!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks