BINGO!!!!!!!!!!!!!!!!!

Bingo!

Creating a Bingo game for my kids, I have 75 menus along with a small script for each of them: (1)mov GPRM 2, 1 (2)exit Pre-Script. Have a CLEAR script incase someone wins and they want to start over, so i put a button on each menu incase this happens and is pointed to this script: (1)GPRM 1, 0 (2)mov GPRM 1, 0 (3)mov GPRM 2, 0 (4) mov B1, 0 (5) mov B2, 0 the (B) in the ball number all the way to mov B75, 0
Now my select Ball script is confusing me a bit ,i have 8 scripts for selecting balls; balls 1-9, balls 10-18, ect... The reason for so many ball scripts is that there are not enough lines to add all 75 balls in one script, so and the end jump of ball 1-9 it goes right to 10-18, everything is working ok, but the thing is that yes it's random from ball 1-9 and so on, it's never really a random game because it has to pick those 9 balls in each script before it goes to the next and so on, my question is, can the ball 1-9, ball 10-18, and so on scripts can those be random as well, so if it's picking a ball from script: balls 1-9 and now is going to pick the next from script: 10-18 and back to script balls 1-9 or to another script because i have 8 ball scripts to choose from or did i go about building this wrong.

Power Mac G5, Mac OS X (10.4.10), 4 GB of Ram

Posted on Jan 1, 2008 12:02 PM

Reply
61 replies

Jan 8, 2008 6:15 PM in response to seemoore

Take a look at Ballshaker 1 and the If statements which route it to other scripts. The IF to send it to BS 4 states if GPRM > 27, which means balls 1-27 need to be handled in BS 1 or BS 2 or BS 3, which it is not. BS 3 only covers up to Ball 26. So if Random generates 27 (for example) it goes to BS 3. None of the lines in BS 3 take care of 27 so it is not handled. So under no condition will B27 be pulled, and in fact the script could cause some players (more so older ones) to stall

Jan 8, 2008 8:07 PM in response to Drew13

Ok, i think fix something, i changed the BallShaker_1 lines 1-7 and know i get 69 balls picked, but still i bit confused on jump Ballshaker_9 if (GPRM) 7=75 because if it looks at the max number it can pick from BallShaker_8 script it only will pick 69 balls, it's kinda like a need a fake Ballshaker_10 so that it will pick all the rest of the balls in BS_9
this is what i changed them to below:

BallShaker_4 (GPRM) 7 =26
BallShaker_5 (GPRM) 7 =35
BallShaker_6 (GPRM) 7 =43
BallShaker_7 (GPRM) 7 =52
BallShaker_8 (GPRM) 7 =60
BallShaker_9 (GPRM) 7 =75

Jan 8, 2008 9:04 PM in response to seemoore

changed the BallShaker_1 lines 1-7 and know i get 69 balls picked, but still i bit confused on jump Ballshaker_9 if (GPRM) 7=75 because if it looks at the max number it can pick from BallShaker_8 script it only will pick 69 balls, it's kinda like a need a fake Ballshaker_10 so that it will pick all the rest of the balls in BS_9 this is what i changed them to below:


If the max in BS 8 is 69 then BS 9 needs to cover 70-75. None of the scripts after BS 1 have anything to do with generating a number, Line 1 BS 1 does that. All the rest is just looking to see if the ball was picked

Jan 9, 2008 5:15 AM in response to Drew13

Yeah i have it in BS_9 covering balls up to 75 but if you look at the BS_1 script they kinda fall back

BallShaker_4 (GPRM) 7 =26
BallShaker_5 (GPRM) 7 =35
BallShaker_6 (GPRM) 7 =43
BallShaker_7 (GPRM) 7 =52
BallShaker_8 (GPRM) 7 =60
BallShaker_9 (GPRM) 7 =75

BS_2 the script actually covers balls 10-18
BS_3 the script actually covers balls 19-26
BS_4 the script actually covers balls 27-35
BS_5 the script actually covers balls 36-43
BS_6 the script actually covers balls 44-52
BS_7 the script actually covers balls 53-60
BS_8 the script actually covers balls 61-68
BS_9 the script actually covers balls 69-75


but if i change the BS_1 script to:
BallShaker_2 (GPRM) 7 =18
BallShaker_3 (GPRM) 7 =26
BallShaker_4 (GPRM) 7 =35
BallShaker_5 (GPRM) 7 =43
BallShaker_6 (GPRM) 7 =52
BallShaker_7 (GPRM) 7 =60
BallShaker_8 (GPRM) 7 =68
BallShaker_9 (GPRM) 7 =75

it really doesn't work,

Message was edited by: seemoore

Jan 9, 2008 1:17 PM in response to seemoore

You will need to modify the others also since I recall them missing something. Can you export the script descriptions and post them all as files? I can download them and modify them pretty quickly that way so you can see the changes that need to be made, it may be easier than downloading the photos and marking them up.

Jan 9, 2008 7:56 PM in response to seemoore

Argh

Something happened the scripts have no partitions and the GPRMs are messed up, figured the jumps would not work because of no menus, but the partitions are messed up and naming gone. Which version of DVD SP are you using? I am on 4.1.2 on the machine I am looking from. The project itself is probably small so if you want to post that you can try that (any background images will not show, but the rest should hold).

That being said, it looks like Line 2 of BS 1 jumps to BS 9 if the number is 75, trouble is BS 8 only covers up to 68, so Line 2 looks like it should be Jump BS 9 if GPRM > 68 and BS 9 needs to handle 69, 70, 71, 72, 73, 74 and 75 (which it does), but it is never called for those numbers, they (69-74) would be sent to BS 8

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

BINGO!!!!!!!!!!!!!!!!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.