Skip to main content
Inspiring
January 20, 2015
Answered

advanced actions - trying to show a text caption

  • January 20, 2015
  • 1 reply
  • 276 views

I have a slide with 5 text captions made from smart shapes, and 5 click boxes. All 5 smart shapes are hidden. I have 5 variables, all of which are set to zero. When a click box is clicked on, the corresponding smart shape shows and the value of the first user variable is set to one. When another click box is clicked on the corresponding smart shape shows and the next user variable is set to 1. Each of the click boxes is set up in a similar fashion. I set up 5 advanced actions, and the On Success action for each of the click boxes uses one of 5 advanced actions. The action for each click box looks something like this (I'm using generic names for this example):

IF variable1 is equal to 0

ACTIONS

Show textCaption1

Assign variable1 with 1

Play Audio sound.wav

Continue

This is working fine, and the corresponding smart shapes are showing as they should when each of the click boxes is clicked on.

But I have an additional feedback text caption that I want to show after all 5 smart shapes are showing. I tried setting up an advanced action that looks like this:

IF

variable1 is equal to 1 AND

variable2 is equal to 1 AND

variable3 is equal to 1 AND

variable4 is equal to 1 AND

variable5 is equal to 1

ACTIONS

Show feedbackTextCaption

But even after all of the click boxes have been clicked (which should set each of the 5 variables to 1), the feedback text caption does not show.

Can anyone help with a suggestion?

    This topic has been closed for replies.
    Correct answer Lilybiri

    @Sreekanth, that is not the correct approach, because a user could click 5 times on the same click box and see the final text caption. Only when you disable an already clicked interactive object this can be used. Jay was right by choosing five different variables.

    @Jay How do you trigger that last conditional action? Which event do you use? You explain that the first described action is triggered by the click box, but not what is triggering the conditional action.

    I suspect you'll have to combine both actions, and assign them to each click box. That means a conditional action with two decisions:

    First decision 'Always' needs the condition 'IF 1 is equal to 1' to create a mimicked standard action, and has to show the text caption, to assign 1 to the variable and to play the audio. I don't know why you added 'Continue'? If the click boxes pause all at the same moment, don't add Continue, let the playhead remain at the same location.

    Second decision 'Checker' is the conditional action that you wrote, checking the values of the 5 variables, and if they have all the value 1 to show the feedback text.

    1 reply

    Legend
    January 20, 2015

    Don't see any issue with the action. I think some debugging to check whether each variable is getting the value of 1 should solve it.

    Also, why don't use the Increment action on each smartshape instead of assign and for the additional feedback caption, verify if the final value after 5 increments is 5? Just curious as this would save the pain of managing 5 variables.

    Sreekanth

    Lilybiri
    LilybiriCorrect answer
    Legend
    January 20, 2015

    @Sreekanth, that is not the correct approach, because a user could click 5 times on the same click box and see the final text caption. Only when you disable an already clicked interactive object this can be used. Jay was right by choosing five different variables.

    @Jay How do you trigger that last conditional action? Which event do you use? You explain that the first described action is triggered by the click box, but not what is triggering the conditional action.

    I suspect you'll have to combine both actions, and assign them to each click box. That means a conditional action with two decisions:

    First decision 'Always' needs the condition 'IF 1 is equal to 1' to create a mimicked standard action, and has to show the text caption, to assign 1 to the variable and to play the audio. I don't know why you added 'Continue'? If the click boxes pause all at the same moment, don't add Continue, let the playhead remain at the same location.

    Second decision 'Checker' is the conditional action that you wrote, checking the values of the 5 variables, and if they have all the value 1 to show the feedback text.

    Legend
    January 20, 2015

    Thanks Lilybiri. Forgot that use case.

    Sreekanth