Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 6th, 2025, 10:31 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Question Wizard
PostPosted: January 4th, 2005, 2:04 am 
Offline

Joined: November 3rd, 2004, 6:21 pm
Posts: 18
Location: Minnesota
In OpusPro XE (old version) I could change the variables while using the Question Wizard to build a quiz. Where are the variables hidden in the XE 04 version? I know it's using SCORE_CORRECT but I want to change it to something else.

Another odd thing is that when I bring up a quiz in XE 04 that I did in the older version of XE it takes me through the old process, which means I can change the variable but I can't do the same thing with a quiz page done in the newer version. What's the deal? Bottom line is that I want to spend the time to figure out how to do a quiz without the quiz wizard so I have complete control over the process. I am not finding the manual handy to learn this skill and I'm not a programmer (I know enough JavaScript to be dangerous) Any suggestions?

Terry


For this message Terry Degner has been thanked by : mackavi


Top
 Profile  
 
 Post subject:
PostPosted: January 4th, 2005, 3:49 pm 
Offline

Joined: October 25th, 2004, 12:27 pm
Posts: 526
Location: Digital Workshop
Hi,
Thank you for your enquiry.

Although the Question Page Wizard provides a quick method of creating common types of quiz and questionnaire, you may find that you require a style of quiz which is not currently supported by the Wizard or need to modify an existing template to behave in a different way. For example, you may need a multiple-choice quiz with six possible answers, whereas most of the templates support a maximum of four answers. It is at times like these where it is useful to have knowledge of how the quiz templates use variables to monitor the user's input and keep records of their performance.

Please find attached a zip folder containing the file quiz.imp. This publication contains three question pages and a summary page informing the user of their correct answers and the final score.

Page 1 contains a text input box which feeds into the variable answer1 (in other words, any information inputted into this text input box is stored in the answer1 variable). I have then added a Submit button which uses an If statement to compare the user input (the variable answer1) to a string of text (in this case, the word LIMA).

If the answer1 variable matches the text LIMA, a variable called score1 is increased by 1 and another variable named FinalScore is increased by 1. I have also added a Show action to display a Correct message for 2.00 seconds and a Hide action to hide the text input box (and prevent further input whilst the Correct message is showing).

If answer1 does not equal LIMA, an Incorrect message is displayed and the text input box is hidden to prevent further input.

After all of these actions have taken place, a Go To Page <Forward> action displays the next page.

I have then simply duplicated this page twice, and changed the input variable (to answer2), If statement and actions to match the new question. If question 2 is answered correctly, a variable called score2 is increased, but the original TotalScore variable is also increased.

The summary page simply uses a series of If statements to check which score variables are set to 0 (signifying that the question was answered incorrectly) and which are set to 1 (meaning a correct answer), then shows the corresponding text to inform the user of their correct and incorrect answers.

Although variables can initially appear daunting, many users find that getting to grips with this method of storing information opens up completely new possibilities for publication types and greatly enhances the usability and flexibility of publications.

I hope this helps. Please do not hesitate to contact me if you have any further queries.

Kind regards,


You do not have the required permissions to view the files attached to this post.

_________________
Robin Garrett
Digital Workshop Technical Support


For this message Robin Garrett has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject: Question Wizard
PostPosted: January 4th, 2005, 8:08 pm 
Offline

Joined: November 3rd, 2004, 6:21 pm
Posts: 18
Location: Minnesota
Thank you Robin. Do you have any tutorials on creating a quiz? Also, I've been looking back at my JavaScript manuals and at OpusScript. Didn't you create some tutorials on OpusScript? If so, where can I find them?

Terry


For this message Terry Degner has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 28 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group