Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 11:38 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Bonus Score
PostPosted: January 23rd, 2006, 4:49 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
I’m trying to give bonus points to users who click on a specific series of buttons in a publication.

For example, I have three pages – each containing three buttons (top, middle and bottom). Each button has a numeric value. In addition to delivering a final score on page 4 (no problem with this), I’d like to give users a bonus score (of 10, say) if they click the middle buttons on each page (and only these).

Afraid my scripting abilities aren’t up to it, and I’d be grateful if someone could suggest how this might be achieved.

Regards

Roger


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 23rd, 2006, 9:46 pm 
Offline

Joined: October 26th, 2004, 10:23 am
Posts: 666
Location: Digital Workshop
You don't need scripting - just set a flag variable for each item (eg. MID1, MID2, MID3, initially set to 0 and changed to 1 if the user clicks on the relevant place) on the final page put three "If" statements inside each other - something like:
Code:
If (MID1 == 1)
   If (MID2 == 1)
      If (MID3 == 1)
         Add 10 to MyScore

_________________
ddww Opus Developer


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 23rd, 2006, 11:26 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Thanks a lot, Duncan. I'll give it a whirl...

...In the light of day, the whirling has come to an abrupt stop. I'm doing something wrong, and I can't figure out what. Would you have time to let me have a simple sample based on the above?

Regards


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 4:22 pm 
Offline

Joined: October 25th, 2004, 12:32 pm
Posts: 397
Location: Digital Workshop
Try the attaced.

Each time you click on the correct button a variable is set to 1.

On page 4 all the variables are added up ( q1+q2+q3 page on show action.)

If total=3 then total=13


Hope this helps


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


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 4:57 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Thanks a lot, Brenden. I think it may be a matter of combining the suggestions received from both you and Duncan - bearing in mind I need the original values of the middle buttons to be retained if the user doesn't click on all three (middle buttons, that is).

In other words, I'm looking to add 10 to the final score ONLY if all three buttons are clicked. Otherwise, the final score will include their orginal values and not any added bonus.

So if I set the variables as you have, and add Duncan's If statements, it should do the trick. I'll give it a try anyway.

I appreciate your help.


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 5:04 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Please ignore my last post, Brenden. I'm asking you to do what you've already done! Let me sit on this for a few hours and I'll come back to you if I may.

Regards


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 6:33 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Brenden – the example you made for me works well (needless to say) but it doesn’t really answer my problem. This is my fault, because I didn’t explain clearly enough what I need to do.

Essentially. the publication in question will have 14 pages – each with six or more buttons. Each button will have a different numerical value. The user will click on one button per page, and end up with a total score. Nothing too difficult so far, even for me.

However, if users clicks on, say, the third button on Page 1, the fourth button on Page 5, the sixth button on Page 10 and the first button on Page 13 – I’d like to award them a bonus (added to the total score). All these buttons would need to be clicked to earn the bonus. If not, then the original values of the buttons in question would apply.

I hope this makes sense. Making it work is another matter!

Regards

Roger


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 7:46 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
Not sure if this is what you are trying to accomplished but have a look at the attached imp.


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

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: January 26th, 2006, 9:21 pm 
Offline

Joined: November 3rd, 2004, 4:12 pm
Posts: 173
Location: UK
Looks as though it might work, Leo, after I spend a little time adapting it to my requirements. Thank you very much for your input.

Regards

Roger


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 56 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