I sometimes feel like Fish

User avatar
Wise Man
Posts: 87
Joined: Mon Dec 26, 2011 11:37 am

I sometimes feel like Fish

Post by Wise Man »

Well... I know I've hit the jackpot if the tall blond with nice c cups gets this joke after she said she was fluent in C++....

Code: Select all

function Funny::Fire(%fire)
{
if(%fire)
{
postAction(You-Laughing, True);

if(gettingJoke(You) == True)	
{
$preference::Me = $You;
IamViking::Sense($DeezBiceps::nSense * $You);
$You::Enjoying = "True";
}
}
else
{
postAction(IgnoreMe, True); 
}
}
In other news... I'm pretty sure my time in Tribes has come to a swift close as I embark on the journey to become an officer in the Army.

I'll continue to provide lawlz on the forum, however.
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: I sometimes feel like Fish

Post by perrinoia »

Good luck, but that code is horrid.
Image
User avatar
S_hift
Posts: 1963
Joined: Fri Dec 23, 2011 1:42 pm

Re: I sometimes feel like Fish

Post by S_hift »

thats because its written in visual basic
Image <--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: I sometimes feel like Fish

Post by perrinoia »

No it's not... It's not C++, either.

It's Darkstar AKA Starsiege: Tribes script.
Image
User avatar
S_hift
Posts: 1963
Joined: Fri Dec 23, 2011 1:42 pm

Re: I sometimes feel like Fish

Post by S_hift »

isn't tribes script just C# ?
Image <--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
User avatar
DaJ4ck3L
Crow{OZ}
Posts: 3375
Joined: Thu Jul 22, 2010 11:51 pm
Contact:

Re: I sometimes feel like Fish

Post by DaJ4ck3L »

S_hift wrote:isn't tribes script just C# ?
it is c# but most of what you do in tribes is use scripts already made in the darkstar engine.

and that cool wise. i happy 2 still c u round.
Image
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: I sometimes feel like Fish

Post by perrinoia »

Tribes pre-dates C#, so no, they are not the same.

Notable differences include the use of % and $ to identify variables and their scopes, in Darkstar, while C# uses a classification system and the location of it's initialization to indicate scope...

In other words, in Tribes %clientId is a local variable that is forgotten outside of the function or file it was defined it, and it stores a string of characters that may contain numbers, letters or even special characters. Tribes performs mathmatical functions on strings, which is weird and buggy. Likewise, $MissionName contains a string that is remembered until the program is terminated, or until a script deletes it.

In most other programming languages (C# included), you must initialize your variables before you can define them. For example: int clientID; would allocate a block of memory for an integer... It can only contain an integer, and any other character would cause an error. Where that variable is initialized is it's scope...

Also, functions are initialized the same way, so the parser knows how much memory to allocate for the return value. If it's a bool, it only needs to allocate a single bit (two possibilities, true or false). If it's char, 8 bits (256 possibilities, letters, numerical digits, and special characters). Int, could be a whole number up to 32,000 +/- (I think), float = floating point (decimals), etc...

The point is, they are definitely different, and Darkstar is definitely a unique scripting language.
Image
User avatar
DaJ4ck3L
Crow{OZ}
Posts: 3375
Joined: Thu Jul 22, 2010 11:51 pm
Contact:

Re: I sometimes feel like Fish

Post by DaJ4ck3L »

hmmm, that interesting.
Image
User avatar
S_hift
Posts: 1963
Joined: Fri Dec 23, 2011 1:42 pm

Re: I sometimes feel like Fish

Post by S_hift »

fucking nerd lol

I was just trying to sound smart
Image <--Click here to subscribe to S_hift's youtube
Click here for full access to all my tribes downloads
perrinoia
Site Admin
Posts: 3732
Joined: Sun Jul 01, 2012 7:18 pm

Re: I sometimes feel like Fish

Post by perrinoia »

Fail.

Have a hat.

Image
Image
Post Reply