Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Fruits and vegetable

Author
Message
Random color object
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 14th Jan 2009 00:19
- I want to never see the same vegetable as b or c until the whole list of vegetable is empty. And the same with fruits.
- Also I want to be able to choose between vegetable or a fruit with the same condition above.
- My problem with the following script is that when I choose fruits I end up alway's with
banana
rasberry
and for vegetable
Onion
Carrot

I want if I choose the first time vegetable receive:
b=banana
c=rasberry
if I choose it again I receive
b=grape
c=orange
and if I choose it again
b=raisin
c=strawberry
And if I choose it again (the list is over) to get to the first one
b=banana
c=rasberry

Also in the way I can choose a vegetable, that will do the exact same order as the fruits.
And I can one time choose fruit, and fuit again, then a vegetable, and if I choose fruit again for the 3th time he will get me a new fruit again.
I will end up:


Choose fruit
b=banana
c=rasberry
Choose fruit
b=grape
c=orange
Choose Vegetable
b=Onion
c=Carrot
Choose fruit
b=raisin
c=strawberry

-Win XP SP3 -P4 3go/Ge Force 9600 GT driver 178.13
PhysX 08.09.04
DBP + Dark A.I. + Dark Physics + Easy Rotate + enhancement + Sprite Packe
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 14th Jan 2009 01:28
Well, it's hard to help since you haven't posted any code but have you tried writing Randomize Timer() to re-seed the random number command ( rnd(num) ) at the top of your code? Try doing that...

May0naise
16
Years of Service
User Offline
Joined: 16th Nov 2008
Location: Lost in Time
Posted: 14th Jan 2009 02:56
I agree with Sixty, but I sorta know what you mean, The only thing i could show you to help would be something like:


Like I said before though, i really didn't understand what you were asking.

Hope i helped though,
May0

Who you chose to be around you, lets you know who you are.
Random color object
16
Years of Service
User Offline
Joined: 14th Aug 2008
Location: Montreal Canada
Posted: 14th Jan 2009 03:41
Ok here the script


-Win XP SP3 -P4 3go/Ge Force 9600 GT driver 178.13
PhysX 08.09.04
DBP + Dark A.I. + Dark Physics + Easy Rotate + enhancement + Sprite Packe

Login to post a reply

Server time is: 2024-11-25 12:21:55
Your offset time is: 2024-11-25 12:21:55