Page 1 of 6
I sometimes feel like Fish
Posted: Fri Jan 16, 2015 2:28 am
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.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 6:50 am
by perrinoia
Good luck, but that code is horrid.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 7:57 am
by S_hift
thats because its written in visual basic
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 8:38 am
by perrinoia
No it's not... It's not C++, either.
It's Darkstar AKA Starsiege: Tribes script.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 9:18 am
by S_hift
isn't tribes script just C# ?
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 9:26 am
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.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 11:27 am
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.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 3:45 pm
by DaJ4ck3L
hmmm, that interesting.
Re: I sometimes feel like Fish
Posted: Fri Jan 16, 2015 10:01 pm
by S_hift
fucking nerd lol
I was just trying to sound smart
Re: I sometimes feel like Fish
Posted: Sat Jan 17, 2015 4:20 pm
by perrinoia
Fail.
Have a hat.