Copy link to clipboard
Copied
Hallo,
ich habe ein Objekt mit 3 Status und eine bedingte erweiterte Aktion dazu, die jeden der 3 Status identifizierbar machen soll, weil nur einer der Status als "richtig" akzeptiert werden soll (mit jedem Klick sollen sich Status und Wert der Variable ändern, bei "Senden" soll die Variable überprüft werden und je nach Wert ein "richtig" oder "falsch" eingeblendet werden). Meine bisherigen Versuche sind leider gescheitert. Der aktuelle Stand:
Reiter 1:
IF [var] ist gleich [0]
THEN Status ändern von [Objekt] zu [Status 1] + zuweisen [var] mit [1]
Reiter 2:
IF [var] ist gleich [1]
THEN Status ändern von [Objekt] zu [Status 2] + zuweisen [var] mit [2]
Reiter 3:
IF [var] ist gleich [2]
THEN Status ändern von [Objekt] zu [Status 3] + zuweisen [var] mit [0]
Egal ob ich THEN leer lasse oder "Weiter" eingebe, ändert sich leider der Status und damit auch die Variable nicht.
Hat jemand eine Idee, wie ich das Problem löse?
Vielen Dank im Voraus!
This is the approach I would take here.
1. Two variables - one for each object (for example myVar and myVar2)
This action - when you click on your click box will go to the next state and increment your variable.
The second part - checkVars - will make sure that the variable value cycles around like the object states do
You will need two advanced actions - one for each object.
It will be the same setup for both but the name of the shape (myShape or myShape2) will change as will the corresponding v
...Copy link to clipboard
Copied
I understand German pretty well but I dare not to write in German. You can translate my answer using the Transate feature.
It would help if you posted a screenshot of the Preview of that Advanced action (erweiterte Aktion). Use the Preview button, which is the first button in the top right control bar of the Advanced Actions dialog box:
Which event do you use to trigger that action? Is it a button?
I suspect that 'Reiter' is used here to point to the decisions in one action? In the screenshot above 'Untitled-1' is the name of the first decision.
If that is indeed the case, there is a logical bug in your advanced action. This is probably due to the fact that you ignore that all commands in an advanced action will be read and executed, top to bottom and from left to right. Result of your advanced action is that you'll get the start situation, because each later decision overrides the previous one
You start with var == 0 and state 'Normal' of the multistate object. You action will do this:
Result should be Status 3 always but I don't yet know which event is triggering this action? Is it the Success event of a button?
Explain what you want to do exactly, and I will try to give you a correct advanced action.
Copy link to clipboard
Copied
Just to be clear...
Are you wanting the learner to click the object itself and have the state cycle through the three states and adjust a variable at the same time?
Then the learner clicks a send button when the correct state (and therefore, variable) is displayed?
Copy link to clipboard
Copied
@Stagprime Greg, I have asked already which event is triggering that action. However it has a similar logical bug as the user yesterday: each new decision is overriding the previous one.
You may take over, I know enough German - very close to my mother tongue -to try to guess what the OP means exactly with the terminology. No problem, can leave it to you.
Copy link to clipboard
Copied
We were typing at the same time apparently.
I never expect that someone else back out of a conversation.
You're welcome to share your thoughts.
I don't know any German at all - was just going by the built-in translate option.
I wanted to verify my understanding of those results.
Copy link to clipboard
Copied
Hi,
thanks a lot for your answer, I will try to reply in English.
Yes, I want the learner to click the object (rather a click-box overlying the object) and the advanced action shall go through the three states (and go back to state 1 when state 3 is reached), while each changing in state shall adjust the variable.
In fact, there are two objects the learner has to click, and only if the right status of both objects is reached when the "send"-button is clicked, there will show up "you did it right".
You got it right, "Reiter" = decisions in one action.
I now understand the bug but I have no idea how to fix it.
Copy link to clipboard
Copied
If your last comment is correct, I understand that you only want to click and on each click want to see the next state. That doesn't even need a variable at all. Just the command 'Go to Next State....'.
However due to the 'names' of your states: Normal, offen, inaktiviert I wonder if this is really what you want? It looks like you want to mimick InBuilt states of a button, using a click box over an object. Are you using an older version of Captivate? You can find the full version number under Help, About Captivate.
Will the variable be assigned a value by another action (advanced or not)? Try to describe the situations, no problem to do so in German.
Copy link to clipboard
Copied
Hi,
ich nutze die Version 11.5.5, es gibt dafür keine aktuellen Updates ("Die Applikation ist bereits auf dem neuesten Stand"). Möglich, dass die deutsche Version nicht die aktuellste ist.
Ich habe ein Objekt, das in 3 verschiedenen Varianten vorliegen kann. Das Ziel ist eine Wissensüberprüfung, denn abhängig von der gegebenen Situation ist immer nur eine Variante korrekt (z.B. in Situation A kann das Objekt nur "offen" vorliegen, in Situation B nur "geschlossen", in Situation C nur "inaktiviert). Der User soll durch Klick auf das Objekt oder eine Klick-Box die Varianten des Objekts wechseln und dann entscheiden, welche Variante er für "richtig" hält. Dann klickt er auf den "Senden"-Button und seine Entscheidung wird überprüft.
Kompliziert wird es noch dadurch, dass es eine Kombination aus zwei Objekten ist: Für beide gibt es einen "richtigen" Status, aber nur einen gemeinsamen "Senden"-Button. Der User kann die Aufgabe nur dann richtig lösen, wenn er für beide Objekte den richtigen Status herausfindet.
Die Variable wird zweifach verwendet:
1. um den gewählten Status zu identifizieren
2. um zu überprüfen ob der gewählte Status "richtig" ist
Copy link to clipboard
Copied
You could have used the object itself as button, there was no need to put a click box on top of it (which would have been impossible anyway in a Fluid Boxes project).
Summarizing:
I have a different possible workflow in mind, if my summary is correct.
Use a tracking variable for each of the objects which need to be set to their correct state: v_1 and v_2. If you ever want to use more than 2 objects I would add a global variable v_counter which will store the number of correctly positioned objects.
For each object, trigger this advanced action:
There is no need to reset the variable ever to 0 because the correct value of the variable will be only once reached. If you don't want to disable to button you could use the reset variable.
Do the same for the second object (with v_2).
The conditional action for the Submit (or Send) button will now only have to check the value of the variable v_counter. It needs to 2 if you have 2 objects, 3 for 3 objects etc...
To make the workflow even more flexible, you could convert the button actions to shared action with two parameters: the tracking variable (v_1, v_2....) and the correct literal for the conditional action (which points to the correct state.
Copy link to clipboard
Copied
I think it is important to cycle the variable back to zero along with the states.
This ensures that each state corresponds with a particular value.
A learner may wish to cycle through all available options before making a final selection.
So if they click past a state that is correct - we do not want the variable to endlessly increment and we would not want to increment the counter if they click past the correct state. The counter variable would then need to be decremented as well until it comes back around to the correct answer.
Otherwise we risk a correct response when the wrong things are showing.
Copy link to clipboard
Copied
This is the approach I would take here.
1. Two variables - one for each object (for example myVar and myVar2)
This action - when you click on your click box will go to the next state and increment your variable.
The second part - checkVars - will make sure that the variable value cycles around like the object states do
You will need two advanced actions - one for each object.
It will be the same setup for both but the name of the shape (myShape or myShape2) will change as will the corresponding variable.
2. On the send button you will then check your two variables based on the correct answer.
Hopefully this makes some sense and is helpful.
Copy link to clipboard
Copied
Thanks so much for solving my problem! It works :-)))
Copy link to clipboard
Copied
You're very welcome.
Glad we could figure it out.
Copy link to clipboard
Copied
It worked - and now it doesn't any more? I can't remember having changed the actions...
Please take a second look at this:
(the file is attached, here the explanations:
- NaV_Quiz_Abstrich + KV_Quiz_Abstrich = objects changing state (NaV has 3 states, KV has 2 states)
- NaV_Abstrich + KV_Abstrich = variables
right answer: NaV on 3rd state (variable = 2) + KV on 2nd state (variable = 2)
Where is the bug? It shows "wrong" (falsch) in state of "right" (richtig)
Copy link to clipboard
Copied
sorry, the right answer is: NaV on 3rd state (variable = 2) + KV on 2nd state (variable = 1)
The variables start with 0 = state 1
Copy link to clipboard
Copied
Glad to hear you've figured it out.
Good job!
Copy link to clipboard
Copied
You misunderstood: I just wanted to correct what I wrote (but I couldn't find an "edit"-button):
The correct answer in the quiz is: NaV on 3rd state (variable = 2) + KV on 2nd state (variable = 1)
Copy link to clipboard
Copied
My apologies - I did notice in the screenshot that NaV was set for 3 and KV was set for 2 and was going to suggest that.
So to be clear - you have discovered the problem and just need to correct it?
The screenshot shows the preview mode and you'll need to come out of that and find that line in your advanced action. The preview mode is view only.
Copy link to clipboard
Copied
I have no idea where the problem lies...
if (NaV = 3 + KV = 2) then "correct answer"
But it does not show "correct answer"
Copy link to clipboard
Copied
When you say that it doesn't show the correct answer - do you mean that when the project is viewed that the correct answer box does not appear when they have selected all the right object states or do you mean that you cannot find any actions when in the advanced action editor?
If the first scenario - I was thinking you needed to change your values to 2 and 1
If the second scenario - I would expect you to find the "then" actions in the highlighted area
Copy link to clipboard
Copied
Copy link to clipboard
Copied
edit: values 2+1, not variables
Copy link to clipboard
Copied
Whenever things do not change when I expect them to, I always use troubleshooting boxes.
Make a smartshape for both variables so we can display them.
$$NaV_Abstritch$$
$$Kv_Abstritch$$
When you click through your states - watch how the variables update and it can help to reveal what is (or what isn't) happening.
Copy link to clipboard
Copied
Sounds good! How do I make the smartshape show the variables? What am I supposed to name $$NaV_Abstrich$$ ?
Copy link to clipboard
Copied
Just type the name of your variable in your shape as text between double $$. When you preview the project it will show whatever the current value of the variable is. Is NaV_Abstritch the name of your variable?
$$variableName$$
Find more inspiration, events, and resources on the new Adobe Community
Explore Now