Variables
Dec 19, 2012
I am looking for more information on variables. The tutorials that I found here: http://community.articulate.com/tutorials/products/articulate-storyline.aspx (including the ones that it links to) just tell you what to enter into the trigger wizard without explaining why or what all the options control. Do you have a tutorial or screenr that explains all the trigger wizard options for variables?
38 Replies
Hi folks - I am still looking for some comprehensive training on variables. Any help?
I also hope for more tutorials instructing variables.
Hey guys ,
Is there a specific variable from this tutorial that you'd like to know more about? At the bottom of that tutorial, we've also included more detailed info on the true/false, text, and number variables. Are those the tutorials you mentioned having already seen?
Or are you just looking for a really thorough instructional video?
Thanks!
Hi Peter - thanks for getting back to me. I am looking for an explanation of the trigger wizard options when using variables. The tutorial that I linked to above tells you what to enter into the wizard but I don't understand all the options that are there and thus have had trouble applying variables into my projects.
If that isn't enough information I can explain a specific example of an instance in which I want to use a variable but don't know how to do it.
Thanks, Kristen
Hi Kristen,
Can you give me a specific example of a variable you'd like to use?
Thanks!
I am really struggling here trying to use the tutorials... Since I update my storyline version the trigger panel has disappeared and I cannot fathom how to assign a variable. I see the trigger box options etc but I can't get it to work. any help would be greatly appreciated "
!
I managed to fathom this out and if you get it right first time its easy. If you don't then it is complex there needs to be a tutorial done on how to set variables through the new dialogue boxes.
The main confusion for me was setting the initial variable up...
Set it up initially by using the data entry as for the older system
When that is done select the text box and trigger
Set the action to adjust variable and leave it Unnassigned
On the screen where you want to deposit the variable start a text box and click inside it then go to insert and opt for reference
Select the variable textentry (Note and this is where I found I was wrong... the third column will have a number click on that and you can see a note of everywhere its used)
If ypu add another text entry a new variable will appear called textbox2... and so on
This is quite a different method from the last story board version but it is simple when you know how it works
Hello Team,
I am attempting to create a checkbox that:
Can you please assist?
So you'll need to create a numeric variable to hold the total of all the points you award (based on the checkboxes selected).
if the point total is only for checkboxes on this slide, you'll want to put a trigger on the slide that initializes the variable (sets it equal to zero) when the timeline on the slide starts.
for each checkbox on the slide, create a trigger that, when the checkbox changes state to "selected", adds the points you want to to award that checkbox to your numeric variable.
you'll also want to create a parallel trigger that subtracts the same number of points from the variable if the learner de-selects the checkbox (checkbox changes state to de-selected (I'm working from memory here so I can't recall what the proper names of selected and de-selected states are).
next, you'll want to create another series of triggers that are attached to the Next button. These triggers will route the learner to the appropriate target slide based on the point value in the numeric variable. You'll need to use conditions in the triggers to make this work.
these triggers will work like this:
jump to Slide X when the user clicks Next. Your condition that you add to the trigger will say "If name_of_your_numeric_variable is equal to (point value you've set to send the learner to that target slide)"
you'll need to create as many triggers for the Next button as you have alternate destination slides.
it starts getting a little bit trickier if the destination you send the learner to is based on a range of potential values. Say, for instance, if you send the learner to Slide 4.1 if the value in your numeric variable is between 0 and 33, Slide 5.1 if it's between 34 and 67, and slide 6.1 if the value is greater than 67, you'll create three triggers for the Next button.
the first trigger will say "Jump to slide 4.1 when the user clicks Next." You'll attach one condition to this trigger that says "If name_of_your_numeric_variable is less than 34."
the second trigger will say "Jump to slide 5.1 when the user clicks Next." You'll attach two conditions to this trigger that say "If name_of_your_numeric_variable is greater than or equal to 34" and a second condition that says "AND
For more about variables and conditions, check out this tutorial: http://community.articulate.com/tutorials/products/adding-number-variables.aspx
Yes, I would like more videotutorials too. The written tutorials are much harder to follow and understand. There was an easy tutorial with toamtoes, but i cant find the videotutorial any longer. Anyone knows; where is it? //Tanja
Hi Tobias,
I saw that you'd pinged me but am replying here in the forum instead of privately.
The attached file is very bare bones, based on what you've written above:
I am attempting to create a checkbox that:
I tried first using the Storyline checkboxes but couldn't quite get what I think you're after.
Instead, I
1. Created a blank text box with a think black border.
2. Added a hover state. Edited that state and inserted a checkbox symbo (from the Wingdings font)l. I resized the symbol to 28 point, bolded it, and made it grey. I also added some fill.
3. Added a selected state. Edited that state, inserted the chebkxo symbol, resized, bolded, and made it blue.
I have 2 questions on the slide, so I repeated this for the second question.
I decided Q1 would be worth 1 point and Q2 would be worth 3 points.
I created 2 variables: Q1 and Q2.
I added a trigger add 1 to variable Q1 when the user clicks the Q1 checkbox if Q1 is equal to 0.
The other trigger adds 3 to variable Q2 when the user clicks the Q2 checkbox if Q2 is equal to 0.
So, that should get you started. And you can post here with any questions or clarifications.
The one thing you may not like: when users click the check box, in order to see that it's turned blue they need to move their mouse off it.
These were a great help. My next question is how to add points within the variable in one slide to the next. I have three slides of checkboxes to add up.
I expanded Rebecca's sample to three slides and added a summary slide that shows the total score. The summary slide simply adds all individual scores to a new 'totalScore' variable. Hope this points you in the right direction.
Hi Tobias,
Wow. I really want to see what you're doing with this. I like it.
I've attached an updated story: 3 slides, 1 question per slide.
Now there are 4 variables: q1, q2, q3, and total
Question 1 is worth 1 point
Question 2 is worth 3 points
Question 3 is worth 5 points
FIRST SLIDE
The SLIDE trigger sets total variable equal to the value of the q1 variable when q1 variable changes.
The OBJECT trigger add 1.0 to the q1 variable when user clicks the Q1 checkbox if q1 variable equals 0
SECOND SLIDE
The SLIDE trigger adds the q2 variable to the total variable when q2 variable changes.
The OBJECT trigger add 3.0 to the q2 variable when user clicks the Q2 checkbox if q2 variable equals 0
THIRD SLIDE
The SLIDE trigger adds the q3 variable to the total variable when q3 variable changes.
The OBJECT trigger add 5.0 to the q3 variable when user clicks the Q3 checkbox if q3 variable equals 0
Tag, Michael! I was doing a review of a Book for my Book Group via Skype and had just gotten offline. Was double checking my instructions to Tobias, which is why you beat me by 2 minutes
Hope y'all are having a great Saturday.
Hi Rebecca, your thorough instructions and great examples beat my stuff any day!
not true, but tx for the kudos
Hello again,
First I want to say thank you for all the input and help. I really appreciate it. I was finally able to get everything to work except the subtracting part. I was able to use number variables for each checkbox to add into a totalscore variable over the three slides of questions. My only issue now is that I can not get the point value (1) to be subtracted if the user changes their minds and deselects one of the checkboxes. I am not sure if I need another state for the checkbox like disabled. Also, I tried subtracting the point value from the checkbox variable, which does nothing. Then I tried subtracting the point value from the totalscore variable, but now it only subtracts one and doesn't add the initial point.
Thoughts?
Hey there...
So I have a question...I have set a simple numeric variable for my project.I have set the following triggers:
When user clicks on a button on a slide, the variable goes up by one (+1)
And, a button and text box on another slide (which is the menu slide)
I have set these triggers and looked and re looked at them but it simply isnt happening!! WHY?
Hi Jay and welcome to Heroes!
I'm a bit confused, and just wanted to clarify - what is supposed to be happening in the menu slide? Is that were the variable changes is directing too? It may be helpful for me (and the community who will likely chime in) if you could share the .story files here for us to look at what you have set up.
Hi- I'm new to variables...
I have a similar "scenario" project to the Variable Tutorial. The difference is instead of using new slides for the feedback, I've used new layers. When a selection is made (via button rather than chat box) a layer with feedback is shown. So now I'd like to do 2 things:
1) capture that initial selection (that was made via buttons A, B, C, or D) in our LMS, and then
2) give the learner the opportunity to go back and review the choices they didn't make
I think I'll be able to easily get them back to the scenario with a button and will solve #2.
However, how do I capture the initial selection (via button) in a Results slide so I can capture it in our LMS? I've assigned Variables to the various Buttons (ex. Button A=1 point, Button B=10 points, Button C=0 points, etc) and would like to connect the selection to a Results Slide but have not been successful. So now I'm thinking that Results Slides are reserved for Quiz submits (??). Thoughts on how to approach this? Is there an easier way to collect that data via LMS that I'm over looking? Thank you so much!
OK, so I think I'm on the right track. I decided to change my Layer options to Slides and Converted to FreeForm. Then in my Edit Pick One window, I selected the proper branching based on the answer. So all good there, but I'm still trying to figure out how to connect the button selection to the Results Slide. Since it is a Scenario based "quiz" there are some better answers than others. Should I be using Variables? Or is there something else? I'm still new, so any suggestions are welcome.
Thank you to anyone who responds.
I figured it out! A bit of troubleshooting did the trick! Of course it seems simple now!
This discussion is closed. You can start a new discussion or contact Articulate Support.