ok so im currently working on a label that updates on a sliders amount. this is what i have
It currently updates but not correctly... the more i slide the higher it goes but if i only move the slider halfway its already to 10.. i have no idea how to make this work, and i also need it to go down when the slider is taken backwards, I cant figure it out :( so im posting here in hopes someone can help! :D
even if im, which im sure i am, doing this completely wrong any help to get me in the right direction would help me alot. im currently at a stand still because i want to get all the game functions working before progressing any further.
Okay..
Sliders value is stored in its "dialog items current value", you don't need to trace it. You set its minimum value/maximum value and slider won't ever go beyond them.
This is how you work with them:
Event: Any dialog item used by Player with event type Changed Value
Condition: Used Dialog Item==Slider
Action: Set Labels text to (Text(Integer(Current value of (Used Dialog Item) for Player))).
(Explanation: Dialog value is Real type, so you convert real to integer to text. (Maybe you don't need to convert it to integer, depends on what you need.))
first thanks a lot for the reply, i'm trying to do what you said but all i can see for converting real is real to text or text (advanced), i went for real to text and then integer to real and i think its all wrong because i ended up with
Dialog - Set Labels[0] text to (Text((Real(Slider Amount))) with Any Precision decimal places) for (All players)
ok i changed it up a bit again and now im at
Dialog - Set Labels[0] text to (Text((Integer(0.0)))) for (All players)
and i cant find a "current value of" in the convert real to integer's value field.
Uhh, I copypasted that action from my map, but forgot that I previously converted real to integer in different variable xD. That's what happens when you rush me when I'm thinking about post. My bad sorry.
Here's right copypasta from recreated trigger:
Dialog - Set Labes text to (Text((Integer((Current value of (Used dialog item) for (Triggering player)))))) for (All players)
ok so im currently working on a label that updates on a sliders amount. this is what i have
It currently updates but not correctly... the more i slide the higher it goes but if i only move the slider halfway its already to 10.. i have no idea how to make this work, and i also need it to go down when the slider is taken backwards, I cant figure it out :( so im posting here in hopes someone can help! :D
any help is appreciated.
even if im, which im sure i am, doing this completely wrong any help to get me in the right direction would help me alot. im currently at a stand still because i want to get all the game functions working before progressing any further.
Okay..
Sliders value is stored in its "dialog items current value", you don't need to trace it. You set its minimum value/maximum value and slider won't ever go beyond them.
This is how you work with them:
Event:
Any dialog item used by Player with event type Changed Value
Condition:
Used Dialog Item==Slider
Action:
Set Labels text to (Text(Integer(Current value of (Used Dialog Item) for Player))).
(Explanation: Dialog value is Real type, so you convert real to integer to text. (Maybe you don't need to convert it to integer, depends on what you need.))
first thanks a lot for the reply, i'm trying to do what you said but all i can see for converting real is real to text or text (advanced), i went for real to text and then integer to real and i think its all wrong because i ended up with
Dialog - Set Labels[0] text to (Text((Real(Slider Amount))) with Any Precision decimal places) for (All players)
ok i changed it up a bit again and now im at
Dialog - Set Labels[0] text to (Text((Integer(0.0)))) for (All players)
and i cant find a "current value of" in the convert real to integer's value field.
Uhh, I copypasted that action from my map, but forgot that I previously converted real to integer in different variable xD. That's what happens when you rush me when I'm thinking about post. My bad sorry.
Here's right copypasta from recreated trigger:
Dialog - Set Labes text to (Text((Integer((Current value of (Used dialog item) for (Triggering player)))))) for (All players)
What is that "slider amount" variable?
"Current value of" is in dialog tab.
its another variable i made because i thought i needed one for the amount the slider was at in the label.
ah ok i found it now :D thanks alot. time to test!! :D
Woot it works!! :D <3<3<3