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 6, 2008 5:45 AM in response to seemoore

If you take a look at the first ballshaker, line 9 looks like it is calling another script which is not needed since lines 10-18 handle that.

On the other script, ballshaker 2, lines 10,12, etc. should refer to line 1 of the first ball shaker (in other words you need a new random). Line 49 of Ballshaker 1 and Line 37 Ballshaker 2 probably not needed because it is covered by lines 2-9.

Lastly it looks like things got reveresed with the if/ands on Ballshaker 1 - Ballshaker 2 handles Balls 10-18 from what you posted, but you jump to Ballshaker 2 when GPRM 7 > 65 (which then falls down to line 37 and jumps to Ballshaker 3, and I would assume the rest of the way.)

Jan 6, 2008 7:41 AM in response to Drew13

On ballshaker_ on line 9 it was calling that last script ballshaker_9 that has the balls 73,74,75.

On ballshaker_2 on lines 10, and so on, for the goto 1 if (B10=0) should that be changed to a "jump ballshaker_1 if (B10=0)" and so on down the script on lines 13,16,19,22,25,28,31,34.

Not sure about what you mean on ballshaker_1 line 49 that needs a random, my last line on ballshaker_1 is 45 and jumps to ballshaker_2 should that be changed to a random function.


so should that jump on ballshaker_1 script going to jump ballshaker_2 if (GPRM 7 > 65 be taken out and all the other ballshakers moved up a line and that would make room for the last ballshaker_9

thanks for you help Drew, it's a learning curve for me but do appreciate your time.

Jan 6, 2008 2:04 PM in response to Drew13

Another issue, while building BallShaker_3 for some reason when i try to create the 36 line in the script the maximum dialog box comes up and says to many commands in this script, which i find weird because ballshaker_2 pretty much is the same script just different balls, tried a few times, build ballshaker_3 from scratch and i get the message, i even copied ballshaker_2 which has 124 lines used with none remaining and when i try to edit the ballshaker_3 with the correct information i still get it. so i deleted all the ballshaker scripts thinking i must have done something weird because that does sound right and ballshaker_ 1 has 10 lines remaining and ballshaker_2 has none but when i get to ballshaker_3 building the balls 19-27 i get the message.
thanks

Jan 6, 2008 3:43 PM in response to seemoore

seemoore wrote:
i just adjusted the existing lines from ballshaker_2, i think i will have take a number of each of the ballshaker_2, 3,4,5,6,7,8 amd maybe add more to my ballshaker_9. What will the ballshaker_1 script look like after line 8 should i add another line there jump Ball_shaker? if 9GPRM 7>?)



Either way (as in your following post) I think would work BUT you would need to adjust the goto lines also. Note that if you add the new line then all the gotos will change and you also add a line which may put you over the limit.

Maybe just make each ballshaker cover 7 numbers to be safe or you may have to keep on tweaking and going crazy trying to figure it out.

Jan 6, 2008 5:13 PM in response to Drew13

Ok well i finally got all the Ballshakers built, 9 of them.
on the ballshaker_1 i asume that will change lines 2-8, i kept them the same and inserted anoth line between 1 & 2 "jump BallShaker_9 if (GPRM 7 > ?) not sure what number i should use in there and not sure if this changes anything else in the BallShaker_1 script.
BallShaker_1 1-9
BallShaker_2 10-18
BallShaker_3 19-26
BallShaker_4 27-35
BallShaker_5 36-43
BallShaker_6 44-52
BallShaker_7 53-60
BallShaker_8 61-68
BallShaker_9 69-75

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.