Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-13-2003, 05:39 AM
Jeremy-P2P- Jeremy-P2P- is offline
Banned
Join Date: Jan 2003
Posts: 4
Jeremy-P2P- is on a distinguished road
A "?" question

Question:

how is the function "?" used, and what is it used for?

i know its something like "a ? a : b" but i still dont understand what to use it for
someone please help
thanks
Reply With Quote
  #2  
Old 01-13-2003, 06:56 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
I noticed Stefan uses them alot when setting the dir for the bomys. I personally have never used them other than testing how it works.
__________________
new account: Trevor
Reply With Quote
  #3  
Old 01-13-2003, 07:09 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
Quote:
Originally posted by tlf288
Stefan
Antago.
__________________
Reply With Quote
  #4  
Old 01-13-2003, 08:40 AM
HoudiniMan HoudiniMan is offline
Playerworld Administrator
HoudiniMan's Avatar
Join Date: Dec 2001
Location: Calfiornia - USA
Posts: 3,512
HoudiniMan will become famous soon enough
lol kaimetsu...
__________________
-HoudiniMan (Chief Playerworld Administrator)
Compulsive Support Center Checker - 5 Years and Change
Graal Support Center

Reply With Quote
  #5  
Old 01-13-2003, 07:01 PM
busyrobot busyrobot is offline
Registered User
busyrobot's Avatar
Join Date: Dec 2002
Posts: 978
busyrobot is on a distinguished road
In many languages, "a ? b : c;" functions faster than
if (a) {b;} else {c;} because of processor-specific compiling, even in byte code languages like Java.

Does this hold true in GraalScript?
Reply With Quote
  #6  
Old 01-13-2003, 10:19 PM
Jeremy-P2P- Jeremy-P2P- is offline
Banned
Join Date: Jan 2003
Posts: 4
Jeremy-P2P- is on a distinguished road
kai, think ya could gimme an example?
Reply With Quote
  #7  
Old 01-13-2003, 11:40 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
kyle0654 scripted bomies =.= antago was never good enough to do something like that
Reply With Quote
  #8  
Old 01-14-2003, 12:42 AM
Jeremy-P2P- Jeremy-P2P- is offline
Banned
Join Date: Jan 2003
Posts: 4
Jeremy-P2P- is on a distinguished road
thanks kai i get it now
Reply With Quote
  #9  
Old 01-14-2003, 02:19 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Python523
kyle0654 scripted bomies =.= antago was never good enough to do something like that
Actually Stefan scripted the bomy. Atleast as far as I know he did. His name is at top of the script on 2k1.....
__________________
new account: Trevor
Reply With Quote
  #10  
Old 01-14-2003, 02:21 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by tlf288


Actually Stefan scripted the bomy. Atleast as far as I know he did. His name is at top of the script on 2k1.....
stefan edited a small part, kyle0654 scripted most, trust me
Reply With Quote
  #11  
Old 01-14-2003, 05:04 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
kyle scripted the classic version, showimg and stuff, and Stefan made the 2k1 one. I do not believe there is any of kyle's code in that one.
Reply With Quote
  #12  
Old 01-14-2003, 10:47 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Loriel
kyle scripted the classic version, showimg and stuff, and Stefan made the 2k1 one. I do not believe there is any of kyle's code in that one.
kyle0654's was showimg? x.x
Reply With Quote
  #13  
Old 01-15-2003, 02:43 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Python523

kyle0654's was showimg? x.x
Kyle's original bomy = before ganis
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #14  
Old 01-15-2003, 03:35 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by Loriel
kyle scripted the classic version, showimg and stuff, and Stefan made the 2k1 one. I do not believe there is any of kyle's code in that one.
Was I right or was I right?

[/gloating]
__________________
new account: Trevor
Reply With Quote
  #15  
Old 01-16-2003, 03:11 AM
wonderboysp2p wonderboysp2p is offline
Registered User
wonderboysp2p's Avatar
Join Date: Sep 2002
Location: -Wonderboy
Posts: 537
wonderboysp2p is on a distinguished road
Send a message via AIM to wonderboysp2p
i still dont get what's wrong with
if(blah){} else{}
__________________

we are the llama FORUms!!!EWQ Ce13d5423f23!! 2e1 @$6tgv3uy65!
Reply With Quote
  #16  
Old 01-16-2003, 03:18 AM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Quote:
Originally posted by wonderboysp2p
i still dont get what's wrong with
if(blah){} else{}
Your probally not a programmer either...

Programmers will go through great complications and lengths to save typing a character or two. Good example is c++
__________________
new account: Trevor
Reply With Quote
Reply


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 06:23 PM.


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