Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 05-03-2008, 03:45 PM
Robin Robin is offline
The secret of NIMH
Robin's Avatar
Join Date: Apr 2005
Location: Wales, UK
Posts: 515
Robin will become famous soon enough
Send a message via AIM to Robin
Quote:
Originally Posted by cbkbud View Post
I dislike the GUI builder; I generally don't allow it on servers I work on, it's much cleaner if you script them yourself, and the code matches your standards (perhaps if some options such as braces on new lines, spaces after parenthesis ( x ), etc?)


I agree, sometimes I've needed to switch back and forth between scripts and it is more convenient. But still, I would probably stick with tabs.
Braces on new lines is the devil.

Brace placement is always going to be one of those hotly debated things though

Personally I think masses of whitespace is horrid to look at.

PHP Code:
function onCreated()
{
  
player.chat "This looks horrible";
  if (
you.really.think.this.is.nice == true)
  {
    
player.chat "You ought to be shot.";
  }
  else
  {
    
player.chat "Look at that else. Makes me feel sick.";
  }
}

function 
onCreated()
   {
     
player.chat "I actually saw someone doing this the other day. You know who you are. *slap*";
   }

function 
onCreated() {
  
player.chat "Ah much clearer.";
  if (
you.are.clever == true) {
    
player.chat "Then you probably prefer this";
  } else {
    
player.chat "That is a sexy else.";
  }

You know it makes sense.
__________________

Reply With Quote
 


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 10:50 PM.


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