Thread: Gs1/gs2?
View Single Post
  #7  
Old 03-03-2007, 11:28 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by theHAWKER View Post
so if gs2 is newer then why is it more complex like instead of "if" u use function?
it seams like a downgrade...
does it have more posiblilitys or something?
It's a much more powerful language. It suppors more, everything new that is added to the engine is put into the new language.

Since the language is dynamically typed, you don't have to worry about #v(), #s() and #I(). Just variablename = value;.

Because functions are more powerful in GScript2, with return values, public and "player" functions, it's much easier to organise and reuse code.

Because things are objects, they're much easier manipulated, used and understood (i.e. the player is the 'player' object, the NPC or current object is 'this', etc.), and scoping is much easier defined.

It all just makes more sense.
__________________
Skyld
Reply With Quote