Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 7    Views: 67

BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
05/03/13 12:24 AM (12 years ago)

Quiz Results Out of 100%

I'm using the quiz plugin. Anyone figured out the settings to use for "Quiz Scoring" so the results are out of 100% ? I have 10 questions and given 10 points per correct answer, but the bonus points messes up my goal of getting a result out of 100 :-) e.g. after getting 3 correct answers, it automatically adds bonus points so you get 50 total :-) BTW, where's the search link for the forums...searched for it (LOL), but couldn't find it...must be time for bed :-) Cheers
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/03/13 12:25 AM (12 years ago)
Ok, found the search link for forums!
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/03/13 12:31 AM (12 years ago)
Here is the post http://www.buzztouch.com/forum/thread.php?tid=56BFDCC29D17553F6F374CF the answer is towards the middle
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/03/13 12:56 AM (12 years ago)
@Kittsy. Thanks! Just so I'm on the same page, do we change the code for BT_screen_quiz.m in folder BT_Screens folder to: //bonusImage for right in a row if(streak > 9){ pointsPerRight = (1 * 10); tmpBonusImg = [UIImage imageNamed:@10X.png]; }else if (streak > 8){ pointsPerRight = (1 * 9); tmpBonusImg = [UIImage imageNamed:@9X.png]; }else if (streak > 7){ pointsPerRight = (1 * 8); tmpBonusImg = [UIImage imageNamed:@8X.png]; }else if (streak > 6){ pointsPerRight = (1 * 7); tmpBonusImg = [UIImage imageNamed:@7X.png]; }else if (streak > 5){ pointsPerRight = (1 * 6); tmpBonusImg = [UIImage imageNamed:@6X.png]; }else if (streak > 4){ pointsPerRight = (1 * 5); tmpBonusImg = [UIImage imageNamed:@5X.png]; }else if (streak > 3){ pointsPerRight = (1 * 4); tmpBonusImg = [UIImage imageNamed:@4X.png]; }else if (streak > 2){ pointsPerRight = (1 * 3); tmpBonusImg = [UIImage imageNamed:@3X.png]; } So, that: - pointsPerRight changes to 1 Why not just remove this code altogether? Or, does the code still require displaying the bonus image (tmpBonusImg)? Cheers
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/03/13 01:12 AM (12 years ago)
without seeing all the code I don't know what it would do. try commenting it out using // before each line then you can remove them if it breaks
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/03/13 01:19 AM (12 years ago)
Ok, will try it out...definitely time for bed, now! Well, after I purchase tickets for Iron Man 3 before they run out for tomorrow :-) Cheers
 
BuzzingSteve
Aspiring developer
Profile
Posts: 526
Reg: Jun 24, 2011
Vancouver, Cana...
11,660
like
05/14/13 01:59 AM (12 years ago)
@Kittsy. Commenting out the whole bonus code worked like a charm...getting results from 100 now with 10 questions and 10 points per questions. Cheers
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/14/13 03:07 AM (12 years ago)
No probs happy it helped
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.