The Daily Click ::. Forums ::. Klik Coding Help ::. "Every now and then"
 

Post Reply  Post Oekaki 
 

Posted By Message

:JULI@N:



Registered
  14/07/2002
Points
  641
19th September, 2004 at 15:54:15 -

Which is the correct way of making the condition:...?

"Every random number of seconds"
+The interval must not be greater than certain (say, 4) number of seconds

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
19th September, 2004 at 15:59:44 -

That's a tough one, but you can do it this way.

1. Generate a random number between 1 and 4, assign it to a counter
2. Every 1 second subtract 1 from counter
3. Counter = 0 then do the event you need to and go back to step one.

 
Craps, I'm an old man!

:JULI@N:



Registered
  14/07/2002
Points
  641
19th September, 2004 at 16:13:45 -

Cool, thanks

 
n/a

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
19th September, 2004 at 16:15:39 -

no problem, I should be a bit more clear, you need to combine steps 1 and 3.
Counter = 0 -- Generate #, do event.

 
Craps, I'm an old man!

Knudde (Shab)

Administrator
Crazy?

Registered
  31/01/2003
Points
  5125

Has Donated, Thank You!Clickzine StaffKlikCast StarVIP MemberGhostbuster!Dos Rules!I donated an open source project
19th September, 2004 at 16:31:50 -

Yeah, but I don't use extensions. Unless absolutely needed.

And yes phizzy, it does work.

 
Craps, I'm an old man!

Kris

Possibly Insane

Registered
  17/05/2002
Points
  2017
19th September, 2004 at 16:31:57 -

he's not wrong, that's just his way of doing it

 
"Say you're hanging from a huge cliff at the top of mt. everest and a guy comes along and says he'll save you, and proceeds to throw religious pamphlets at you while simultaniously giving a sermon." - Dustin G

Lazernaut



Registered
  08/09/2002
Points
  1103

VIP MemberThe Cake is a LieIt's-a me, Mario!Wii OwnerPokemon Ball!
20th September, 2004 at 02:25:41 -

kitty

 
n/a

Assault Andy

Administrator
I make other people create vaporware

Registered
  29/07/2002
Points
  5686

Game of the Week WinnerVIP Member360 OwnerGOTM JUNE - 2009 - WINNER!GOTM FEB - 2010 - WINNER!	I donated an open source project
20th September, 2004 at 06:10:56 -

Phizzy STFU.

 
Creator of Faerie Solitaire:
http://www.create-games.com/download.asp?id=7792
Also creator of ZDay20 and Dungeon Dash.
http://www.Jigxor.com
http://twitter.com/JigxorAndy

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
22nd September, 2004 at 00:56:33 -

I hope that's a chocolate donut, phizzy.

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath

Ashman

Possibly Insane

Registered
  12/06/2002
Points
  3974
22nd September, 2004 at 07:58:35 -

Phizzy, stop pretending to be drunk, get an inflatable woman, and most of all, piss off.

 
Show me the power child,
I'd like to say,
That I'm down on my knees today,
Gives me the butterflies,
Gives me away,
'Til I'm up on my feet again,
I'm feeling outshined.


"Outshined" - SoundGarden

ChrisB

Crazy?

Registered
  16/08/2002
Points
  5457
22nd September, 2004 at 08:38:19 -

The inflatable woman would deflate as soon as Phizzy touched it :/

 
n/a

Peblo

Custom ratings must be 50 characters or less

Registered
  05/07/2002
Points
  185

Game of the Week WinnerVIP MemberI'm on a Boat360 OwnerAttention GetterThe Cake is a LieCardboard BoxHero of TimePS3 OwnerIt's-a me, Mario!
I'm a Storm TrooperSonic SpeedStrawberryI like Aliens!Wii OwnerMushroomGhostbuster!
22nd September, 2004 at 19:10:39 -

"These words donut make sense in this sentence "

I want my friggin donut phizzy!

 
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
   

Post Reply



 



Advertisement

Worth A Click