I've run into a scenario when I am implementing a "show layer X" trigger 5 times (with different conditions), when I really should be just using one trigger (with all conditions combined). How does storyline evaluate a trigger with conditions that include both AND and OR statements?
What you could do is store the result of your Or condition in a variable with 1 trigger, followed by a second trigger that takes taht variable and applies the AND condition to it
That's exactly what I am trying to avoid (multiple triggers). It works that way, sure, but want to avoid this (there are scenarios where I have to set 5-6 triggers for 6 different elements). 6 triggers instead of 30 would make a difference.
I am trying to do the same thing, I am running into a problem where I cannot even add an "OR" condition on any triggers, because it is always grayed out. Does anyone know why this would happen?
Phil to the rescue! Thank you much, Alexandros, I think I figured out a way to do it. What I am doing is creating a dummy variable that is false, using that "And Hide == False" and then adding all of my other "OR" conditions into one trigger. I was going to have to make 15 triggers and now I only need 3
After trying to make sense of how and's and or's interact when combined into a single trigger, I have gone with Geert's indicated method. It seems that you simply have to break up more complicated functions, which does inflate the number of triggers and the time to create it--but which works!
So Alexandros, in testing my situation over, it seems that the ands and ors combine to break the functionality of the whole thing.
More specifically, I think I saw all elements begin behaving as if they were "or" conditions, regardless of their ordering, etc
I can't seem to apply an AND trigger to "Jump to the next slide". I want to jump to the next slide when both the timeline has ended AND the user has clicked Next. Is this possible?
Hi Raju, depends on whether your looking to take them to a slide based on then final answer to the question i.e. the last question they get it wrong so they go to the wrong slide or they get it right so they go to the right slide - if that is the case all you need to do is alter the feedback layers continue button to go to the feedback slide (they are set to jump to next as a default).
If you want to move them depending on overall score then you would want to create a number variable and count the score then final slide would have a trigger to direct depending on the score (i.e. if the score counts 5 go to correct/well done feedback if >5 then wrong/you fail slide).
Raju, Do an If statement (create a trigger) if the score is greater than 60 (or whatever score) go to a certain slide.
And then make another one.
Your triggers will look like this: I added these triggers to an object, but you could have them set as slide triggers which *fire* when the timeline starts on a certain slide. Hope this help. ~Boat
Since Presenter doesn't have the same set up with triggers you won't be able to determine a specific slide the user should go to based on their quiz results.
I made a test file (ST2) to check how trigger's conditions works. The answer is unfortunately: do not mix "and" & "or" conditions. Download and check Yourself.
When a user click on the policy button they can move to the next slide, if they do not click the policy button they get a popup saying" Please make sure to ready the policy" and they will not be able to move to the next page without clicking that policy button.
26 Replies
Hi Alexandro,
What you could do is store the result of your Or condition in a variable with 1 trigger, followed by a second trigger that takes taht variable and applies the AND condition to it
Trigger 1
Or_result = picture 1 OR picture 2
Trigger 2
Show layer = Picture 3 AND Or_result
Hope it helps
Geert
Hi Geert,
That's exactly what I am trying to avoid (multiple triggers). It works that way, sure, but want to avoid this (there are scenarios where I have to set 5-6 triggers for 6 different elements). 6 triggers instead of 30 would make a difference.
Hi Alexandros,
As this is written in c#, I assume it will be evaluate left to right.
Articulate doesn't have the "(" prioritisation, so we can only asume it.
Still using a temporay variable and additional triggers looks more readable for the non-IT person
G.
I am trying to do the same thing, I am running into a problem where I cannot even add an "OR" condition on any triggers, because it is always grayed out. Does anyone know why this would happen?
Will only work if you have more than one condition
Phil to the rescue! Thank you much, Alexandros, I think I figured out a way to do it. What I am doing is creating a dummy variable that is false, using that "And Hide == False" and then adding all of my other "OR" conditions into one trigger. I was going to have to make 15 triggers and now I only need 3
After trying to make sense of how and's and or's interact when combined into a single trigger, I have gone with Geert's indicated method. It seems that you simply have to break up more complicated functions, which does inflate the number of triggers and the time to create it--but which works!
So Alexandros, in testing my situation over, it seems that the ands and ors combine to break the functionality of the whole thing.
More specifically, I think I saw all elements begin behaving as if they were "or" conditions, regardless of their ordering, etc
I can't seem to apply an AND trigger to "Jump to the next slide". I want to jump to the next slide when both the timeline has ended AND the user has clicked Next. Is this possible?
Hi Peter! I think that this article will help you as well as a few other tips in this thread. Have a great day!
Hi, all.
For future Heroes that stumble across this thread, the following Screenr may be useful:
Hi all,
can any one please help me
how to take the user to different slides based on the quiz result with using one trigger ?
Hi Raju, depends on whether your looking to take them to a slide based on then final answer to the question i.e. the last question they get it wrong so they go to the wrong slide or they get it right so they go to the right slide - if that is the case all you need to do is alter the feedback layers continue button to go to the feedback slide (they are set to jump to next as a default).
If you want to move them depending on overall score then you would want to create a number variable and count the score then final slide would have a trigger to direct depending on the score (i.e. if the score counts 5 go to correct/well done feedback if >5 then wrong/you fail slide).
Example of both attached.
Dear Alex,
Thank you so much for help,appreciation for quick response.
can also please give idea about how navigate depend upon quiz score
thanks in advance
Raju
Raju, Do an If statement (create a trigger) if the score is greater than 60 (or whatever score) go to a certain slide.
And then make another one.
Your triggers will look like this:
I added these triggers to an object, but you could have them set as slide triggers which *fire* when the timeline starts on a certain slide.
Hope this help. ~Boat
Dear Jeff,
thank you so much ,
you people make me easy and cheers to support what we get from the people.
thanks to all
regards
raju
Good to see you got your answer, this community does rock! I get so much out of it!
Dear Friends,
can we do this in presenter also ?
little curious how to do it in presenter-" can we take the user to different slides based on the quiz result ".
is this possible?
thanks
Hi Raju,
Since Presenter doesn't have the same set up with triggers you won't be able to determine a specific slide the user should go to based on their quiz results.
Hi friends,
can some one will help me in this:
when i take the test i know how to shuffle answers,but can we shuffle questions also?
if it can be done -it will be interesting .
thanks in advance
thanks for the help Michale
Dear friends,
few of my friends are discussing how make test more interesting,
like
getting limited questions from question bank each time:
for example if we have 50 questions in question bank each time( attempt ) can we get 20 different question ?
hi
got the answer,
i got it with include options.
thanks for baring me
Hi,
I made a test file (ST2) to check how trigger's conditions works. The answer is unfortunately: do not mix "and" & "or" conditions. Download and check Yourself.
Hello,
I am trying to use the trigger to do this action:
When a user click on the policy button they can move to the next slide, if they do not click the policy button they get a popup saying" Please make sure to ready the policy" and they will not be able to move to the next page without clicking that policy button.