Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   Bingo game on gk. (https://forums.graalonline.com/forums/showthread.php?t=68304)

Ravenblade1979 08-23-2006 05:55 PM

Bingo game on gk.
 
Scripting a bingo game. How would I go about starting that.

I want to learn the rest..just starting it would be hard.

Waltz5 08-23-2006 06:03 PM

I think if you have to ask this question, you shouldn't be the one making it.

hampy 08-23-2006 06:06 PM

:rolleyes:

xXziroXx 08-23-2006 06:25 PM

Quote:

Originally Posted by Waltz5
I think if you have to ask this question, you shouldn't be the one making it.

Couldnt have said it better myself.

hampy 08-23-2006 06:26 PM

Quote:

Originally Posted by xXziroXx
Couldnt have said it better myself.

Hes only trying to make the game better.. should give him some credit :frown:

xXziroXx 08-23-2006 06:28 PM

Give him credits for asking for someone else what to do? No thank you.

hampy 08-23-2006 06:32 PM

Quote:

Originally Posted by xXziroXx
Give him credits for asking for someone else what to do? No thank you.

No give credit to him for attempting to create something to benefit other players... reven can be a good guy... so basically your saying he shouldnt get any help just because he doesnt know how to script >_<

Ravenblade1979 08-23-2006 06:42 PM

Wow talk about getting help. Alright I will figure it out myself. Should take me a few months to study up on the script language.

Sam 08-23-2006 06:42 PM

Quote:

Originally Posted by Waltz5
I think if you have to ask this question, you shouldn't be the one making it.

Quote:

Originally Posted by Forum Title
New Scripting Engine (GS2)
Post your thread here if you have questions about syntax or problems with the new scripting engine

To ask questions isn't a bad thing. And there are thousands of threads much more useless than this one.

Ravenblade1979 08-23-2006 06:54 PM

Quote:

Originally Posted by Sam
To ask questions isn't a bad thing. And there are thousands of threads much more useless than this one.


Wooohoo i have a useless thread.

Sam 08-23-2006 06:59 PM

Quote:

Originally Posted by Ravenblade1979
Wooohoo i have a useless thread.

I did not say that this thread is useless! >_<

Ravenblade1979 08-23-2006 07:01 PM

Quote:

Originally Posted by Sam
I did not say that this thread is useless! >_<


technically you did when you said there are a thousand more threads more useless then this one.


god it gonna take me a while to learn script.

Shaun 08-23-2006 07:02 PM

The first part, of any coding, is algorithmic design.

With Bingo, you want to know how it'll work before you begin.

You'll have a field:

B I N G O
b1 i1 n1 g1 o1
b2 i2 n2 g2 o2
b3 i3 n3 g3 o3
b4 i4 n4 g4 o4
b5 i5 n5 g5 o5

Those values in the field? Well, you'll generate random numbers for each one, using a loop. For the b's, you'll have a random value between 0-19. For i's 20-39. Etc. Be sure that no number repeats

So now you have your game board. There's three more steps to bingo. Generating a single random number, identifying the part of the game board that has a matching value (if at all) using loops, and identifying patterns/lines that determine winning the game.

You asked for your start, so here it is.

Ravenblade1979 08-23-2006 07:04 PM

Thank you thats what I needed to know.

alright to ensure nothing repeats maybe i could put something in that whatever number is called it is temporarily logged so the number won't be called again.

Shaun 08-23-2006 07:08 PM

Yes, great idea!

You're catching on quickly. Good.

Ravenblade1979 08-23-2006 07:30 PM

i tend to think things out usually..just that scripting will be hard. but the ideas are good.

Shaun 08-23-2006 08:37 PM

Programming is really just translating algorithms and thoughts into code. Different languages are different, yeah. But it's still the same idea.

It's like when you think up a thought. Then you think it in your native tongue. You are so used to your language, that it really seems like one step. Then if you need to put it into another language, you translate it just the same.

Without a language you feel really strong in (to the point where it's nothing to think in it), you may want to use pictures to illustrate a point (think of society before language, we used pictures).

That's what I do when I'm coding. I don't feel particularly strong in a certain programming language, so I generally draw diagrams and flow charts. Plan things out. Etc.

Ravenblade1979 08-24-2006 03:28 PM

I was getting more ideas. Like I would have to script randon numbered bingo cards too.

killerogue 08-24-2006 06:40 PM

You could use a GUI Window profile for that although you would need to have the card GFXed. And maybe some little bead things? :o

Ravenblade1979 08-25-2006 05:09 PM

Quote:

Originally Posted by killerogue
You could use a GUI Window profile for that although you would need to have the card GFXed. And maybe some little bead things? :o


maybe could do a auto dabber type thing.


All times are GMT +2. The time now is 02:01 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.