The Daily Click ::. Forums ::. Klik Coding Help ::. Card game
 

Post Reply  Post Oekaki 
 

Posted By Message

Jebin Zedalu



Registered
  24/03/2007
Points
  22
9th February, 2008 at 19:49:34 -

I'm trying to make a system where, when you click a "Draw Card" button, a counter shows you a number from 1-60. When you click the button again, I need it to show any number between 1 and 60 aside from numbers that had previously been shown.

I thought it would be nice and easy to make this, but none of the methods I've tried have worked yet, and I can't get the Edit object, Rich Edit object, or List object to archive each number.

Using MMF 1.5

Not sure why none of the things I've tried have worked. :\

 
All problems can be solved through the use of violence and/or duct tape.

~Zigzag~



Registered
  13/03/2007
Points
  292

Game of the Week WinnerSilverNova Member
9th February, 2008 at 20:33:28 -

I've never used it before but I think the Pool Object is used for this.

 
http://www.SilverNova.co.uk

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
9th February, 2008 at 20:35:05 -

i believe fish20 just posted this exact same question, just with less knowledge of what he was doing. you will need to store the numbers somewhere. i suggest a 1 dimensional array of size 60. txt file would work. or any of the ones you suggested should. then use the fast loop and string parser to loop through and see if any of the numbers are stored.
if that doesnt help id suggest looking for a tutorial on the fast loop and the string parser.

oh and btw, this should be in the "Code-it" forum..?

Image Edited by the Author.

 
n/a

Jebin Zedalu



Registered
  24/03/2007
Points
  22
9th February, 2008 at 23:28:33 -

I already tried a method using an array and Fast Loops, but I didn't try String Parser. Never used that before. Does it convert numerical values to a form that Edit boxes can understand?

Thanks for the help. And I looked between Code-It and Programmers' Union, it seemed to me as though it most fit in Programmers' Union. x_X

EDIT: Oh, duh... The forum description says NON-Clickteam product. Sorry. >.<

Image Edited by the Author.

EDIT 2: Alright, maybe just knowing WHAT to use isn't going to help much... As I said, I've never used String Parser before. If it is possible to convert the value into a string, I'm not seeing how to do so.

Image Edited by the Author.

 
All problems can be solved through the use of violence and/or duct tape.

viva/volt

Awesome Sauce

Registered
  26/08/2006
Points
  1694

Game of the Week WinnerSilverNova MemberKlikCast StarVIP Member
9th February, 2008 at 23:49:45 -

To make a value into a string simply do this:

str$(999)

 
Image
http://bfollington.tumblr.com

Jebin Zedalu



Registered
  24/03/2007
Points
  22
10th February, 2008 at 12:54:39 -


Originally Posted by Benny -__-
To make a value into a string simply do this:

str$(999)



Awesome, that helped immensely! Thank you VERY much.

That plus the Random Pool object got the entire thing working with just two events.

On an unrelated note, what exactly is String Parser used for? The more knowledge I have of what I'm doing, the better.

 
All problems can be solved through the use of violence and/or duct tape.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
10th February, 2008 at 15:37:09 -

string parser basically can cut up words and sentences etc. into little bits.
my friend jason made a wicked game using it. he used it to cut up commands to make a programming language to program robots to fight each other to the death. not so great on graphics but its an awsome example of what string parser is for.

http://create-games.com/download.asp?id=5397

 
n/a

Jebin Zedalu



Registered
  24/03/2007
Points
  22
10th February, 2008 at 19:53:42 -

Ooh, that's a neat game idea. D:

So String Parser is mostly for text-based commands, like /kick or /whisper in chat rooms? Thanks for the info.

 
All problems can be solved through the use of violence and/or duct tape.

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
10th February, 2008 at 20:48:48 -

well it can also be used to get information from text files, reading data, etc. like it could be used for a sripting engine for character speech bubbles? i dunno. its very useful in anycase.

 
n/a

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
14th February, 2008 at 15:46:16 -

I don't like card games.

 
You can log off any time you like, but you can't ever leave.

brainborg



Registered
  14/02/2008
Points
  21
14th February, 2008 at 20:00:44 -

if you have mmf2 then use magic deque. That was posted as an answer to fish20's question. Im not sure if they have it for mmf 1.5 or below though.

 
"I vill insert ze machine in ze brain. Don't panick. This vill make your brain turn into pancakes."

Billybobjoe198



Registered
  12/01/2007
Points
  221
17th February, 2008 at 11:57:12 -

Jebin word word


 
n/a

Alket



Registered
  02/04/2008
Points
  4
7th October, 2008 at 17:04:00 -

I made a full card game with MMF

 
n/a

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
7th October, 2008 at 21:11:18 -

Cool upload it!

 
You can log off any time you like, but you can't ever leave.

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
8th October, 2008 at 00:22:00 -

Random Pool object? Is this an MMF2 only thing? ;__;

 

  		
  		
   

Post Reply



 



Advertisement

Worth A Click