Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   A "?" question (https://forums.graalonline.com/forums/showthread.php?t=41962)

Jeremy-P2P- 01-13-2003 05:39 AM

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

tlf288 01-13-2003 06:56 AM

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.

Googi 01-13-2003 07:09 AM

Quote:

Originally posted by tlf288
Stefan
Antago.

HoudiniMan 01-13-2003 08:40 AM

lol kaimetsu...

busyrobot 01-13-2003 07:01 PM

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?

Jeremy-P2P- 01-13-2003 10:19 PM

kai, think ya could gimme an example?

Python523 01-13-2003 11:40 PM

kyle0654 scripted bomies =.= antago was never good enough to do something like that

Jeremy-P2P- 01-14-2003 12:42 AM

thanks kai i get it now ;)

tlf288 01-14-2003 02:19 AM

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.....

Python523 01-14-2003 02:21 AM

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

Loriel 01-14-2003 05:04 PM

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.

Python523 01-14-2003 10:47 PM

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

Dach 01-15-2003 02:43 AM

Quote:

Originally posted by Python523

kyle0654's was showimg? x.x

Kyle's original bomy = before ganis

tlf288 01-15-2003 03:35 AM

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]

wonderboysp2p 01-16-2003 03:11 AM

i still dont get what's wrong with
if(blah){} else{}

tlf288 01-16-2003 03:18 AM

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++


All times are GMT +2. The time now is 02:55 PM.

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