Number Variable Limitations
Dec 10, 2012
Hi again everyone,
I was just wondering if there are limitations as to how many "number variables" can be set for a slide.
I have created an "error count" variable that adds value to 1 whenever they click on the "try again button" that works perfectly fine.
I am now adding a "hint count" variable that will do the same thing (value = +1) when they click on the designated hint button. However when I try to do this.. the only "operator available" when setting the trigger is "assignment". The option to add is not available. I tried to copy and paste from the existing variable but when i go to edit the object.. it again resets and only gives me the "assignment" as operator and nothing else.
Has anyone encountered the same issue? Is this a limitation in storyline?
Thanks!
9 Replies
Donna,
Are you starting with the "adjust variable" trigger?
Mike
Hiya Donna! Click the "X" in the lower-right corner of your trigger pane to bring up your list of project variables. Find the "Hint Count" variable in the list and see what it says in the "Type" column. It sounds like you might have accidentally defined that variable as a text variable rather than a number variable (which would prevent you from performing addition/subtraction/etc. with it). If that's the case, you can just delete the variable and create a new one (it can have the same name as before) and just make sure to define it as a number variable.
Yes.. this is the first one.. and as mentioned. It's perfect. No issues with this.
When I go to create the trigger for the "hintcount".. it only gives me one option for the operator. Just "assignment".
I don't understand why it suddenly won't give me the other options like (Add, subtract, multiply, divide, etc.)
Any ideas?
Hi Donna, looks like Mike and I were posting at the same time ... did you try checking your list of variables to see if HintCount is perhaps a text variable rather than a number variable?
I did! And that explains it! waaaaaa.. It was set to "text" instead of "number".
I'm a little embarrassed.. LOL
But thank you so much!
Oh my goodness, never be embarrassed!! The only reason I knew the answer was because I've done the exact same thing myself!
I am just happy it's resolved.. I have been staring at it for a while.
Why is there no add operator for text? If I want to add two strings together it appears the only way is to use multiple variables and add their references on a slide. I can't store the added strings in a variable using the adjust variable trigger.
That is the only option or use javascript to concatenate the text
This discussion is closed. You can start a new discussion or contact Articulate Support.