Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-07-2004, 04:58 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Blackjack && uncompleted Reflection

Yeah, i made a blackjack game.
In the top-right corner is your total of cards, and in the top-left the computer's. I added some AI to the computer - but because he's the bank, he has some priviliges XP
Attached Files
File Type: nw blackjack.nw (12.8 KB, 187 views)
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?

Last edited by GoZelda; 01-07-2004 at 05:26 PM..
Reply With Quote
  #2  
Old 01-07-2004, 05:27 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
And here is the reflection - though very buggy, i guessed i could've let you see it. It only works if you click below the polygons.
Attached Files
File Type: nw mirroring.nw (10.3 KB, 145 views)
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #3  
Old 01-07-2004, 09:18 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
I hit, then I stood, then the compu hit, and it said the compu won. It only had 19
__________________

Reply With Quote
  #4  
Old 01-07-2004, 10:05 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
And what did you had?
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #5  
Old 01-07-2004, 11:01 PM
osrs osrs is offline
Graalian since 1998
osrs's Avatar
Join Date: Mar 2002
Location: Brazil
Posts: 2,724
osrs is on a distinguished road
Send a message via ICQ to osrs Send a message via AIM to osrs Send a message via MSN to osrs Send a message via Yahoo to osrs
Little bugs but nice
__________________
"Ability is what you are capable of doing. Motivation determines what you do. Attitude determines how well you do it."
Facebook: facebook.com/raysilvadotnet /
Reply With Quote
  #6  
Old 01-07-2004, 11:08 PM
D1ce2 D1ce2 is offline
Registered User
Join Date: Dec 2003
Location: United Kingdom
Posts: 446
D1ce2 is on a distinguished road
Send a message via AIM to D1ce2 Send a message via Yahoo to D1ce2
Yes Little bugs
__________________

The time is coming
Reply With Quote
  #7  
Old 01-08-2004, 03:42 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
Interesting.

I made a blackjack game about a year ago for Frolic, but it never got released and I don't remember if I ever finished it.
There are surely some bugs in this. The gfx for it is on my old computer. I still have a copy of the script though. They sucked either way.

edit:
Sorry. I attached the level with the gfx in the other post. It won't let me attach in this one????
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me

Last edited by DarkShadows_Legend; 01-08-2004 at 04:10 AM..
Reply With Quote
  #8  
Old 01-08-2004, 04:11 AM
DarkShadows_Legend DarkShadows_Legend is offline
Cult of the Winky
DarkShadows_Legend's Avatar
Join Date: Apr 2003
Location: Florida
Posts: 614
DarkShadows_Legend is on a distinguished road
Send a message via AIM to DarkShadows_Legend
attachment
Attached Files
File Type: zip blackjack.zip (7.7 KB, 140 views)
__________________
- Criminal X

"I rather be hated for being myself, than be liked for being what you like best. I go above the influence, not under." - Me
Reply With Quote
  #9  
Old 01-10-2004, 02:30 AM
sYnergy247 sYnergy247 is offline
Banned
sYnergy247's Avatar
Join Date: Jun 2003
Location: Scott Land USA(er..) Canada
Posts: 1,043
sYnergy247 is on a distinguished road
Send a message via AIM to sYnergy247 Send a message via Yahoo to sYnergy247
wtf is al the crazy tiles when you quit lol
Reply With Quote
  #10  
Old 01-10-2004, 11:27 AM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
Revenge of the system (i tried to make it real laggy but didn't work )
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #11  
Old 01-10-2004, 12:27 PM
Hevaricubed Hevaricubed is offline
Registered User
Join Date: Aug 2003
Posts: 262
Hevaricubed is on a distinguished road
Send a message via AIM to Hevaricubed Send a message via Yahoo to Hevaricubed
bouncy bouncy tiles like tiggers!
__________________
Reply With Quote
  #12  
Old 01-10-2004, 01:22 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
I'm thinking of making a blackjack game in C++. Unfortunatly, C++ doesn't have random(0,100), but
int random = (rand()%10);
Which is not newbie-friendly
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #13  
Old 01-10-2004, 02:28 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by GoZelda
int random = (rand()%10);
Which is not newbie-friendly
Which is not even how you are supposed to do it, try:
random = (int)(10.0 * rand() / (RAND_MAX + 1.0));
Probably not much difference these days, but rand()%10 used to return less random numbers.
Reply With Quote
  #14  
Old 01-10-2004, 02:37 PM
GoZelda GoZelda is offline
Mister 1,000,000
GoZelda's Avatar
Join Date: Jan 2003
Location: Brussels, capital of Europe.
Posts: 5,396
GoZelda will become famous soon enough
Send a message via AIM to GoZelda Send a message via MSN to GoZelda
*only read 1/10th of the course*

I thought you were the C, not C++ dude...
__________________

Quote:
Originally Posted by Lance
stefan is satan
I am the best.
[URL removed]Music or aural pollution?
Reply With Quote
  #15  
Old 01-10-2004, 02:40 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Yup, rand() is a C function.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:59 PM.


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