ID:155883
Feb 21 2011, 7:28 am
|
|
Ok os what im wondering is how do I make a slider in the interface make it so it lowers or raises ones power like say I have it at 100% its 100% of the persons power then if i slide it down to 1% its 1% of the persons power how would i make the command or proc work for this
|
In response to Bravo1
|
|
Intresting I was wondering this too but where do you put the text2num part
|
In response to Xavion_Zenovka
|
|
After setting the variable or while setting the variable ex:
variable=winget(src,"window.slider","value") variable=text2num(variable) OR variable=text2num(winget(src,"window.slider","value")) |
In response to Bravo1
|
|
Also, don't forget to create a proc that automatically updates it when the skin is changed. Just saying because some people might not realize a simple problem like this at first.
|
In response to Danbriggs
|
|
Well, you can always just put it in the actual bar control itself using the "command" entry. all you'd have to do is enter the name of the verb and make sure it's hidden from, players. It's a great way to allow players to throttle their power level for something like a DBZ game.
|
variable=winget(src,"window.slider","value")
Make sure you use text2num if you want a number since winget returns a text string.