• 0

    posted a message on Get current value of dialog slider

    Im making a slider that I want a user to be able to slide from value 0 to 100.

     

    Dialog - create a slider for dialog(last created dialog)

    Variable - Slider=(last created dialog item)

    dialog - set (last created dialog item) size to (200,50) for (all players)

    dialog - set (last created dialog item) minimum value to 0 for (all players)

    dialog - set (last created dialog item) maximum value to 100 for (all players)

    dialog - set (last created dialog item) current value to 0 for (all players)

     

    Using the above actions I can make a working slider. I can set the current value to anything between 0 and 100 and it reflects visually when I test the map. However what I cant do is return the value of Slider. Clearly the value is being stored as either an integer or a real and yet the variable Slider does not show up on either of those variable lists. It only shows up as a dialog variable.

     

    So I can change the current value of Slider, I can check to see if it has changed using a condition, but I cant get the current value of Slider. I want to have a label that changes with the current value of Slider, for instance if the player moves the slider half way then the label would update with the value "50". Any help would be extremely appreciated because Ive been banging my head against the wall for hours here. Thanks.

    Posted in: Triggers
  • To post a comment, please or register a new account.