PDA

View Full Version : setting a numbercontrol



Azrael Nightstar
July 28th, 2006, 07:10
I feel like this is a stupid question, because I could swear I've seen someone say how this is done, but can't for the life of me find it or guess the method. What I'm trying to do is set up a default value for a numbercontrol. Or in other words, create a numbercontrol that when created equals something other than 0.

I've tried using <value="X" /> within the control (at the same level as bounds, invisible, etc. and also using <numbercontrol name="anumber" value="X"> to open the control, but no go on either. Some help me out? Feel free to be condescending if it's as obvious as I think it probably is ;)

Cantstanzya
July 28th, 2006, 17:07
If you put this in the windowclass of the character sheet:


<numbercontrol name="always-zero">
<invisible />
</numbercontrol>


then you can use this anywhere as your default:


<source name="always-zero" op="+" valuemap="0:10" />