Thread: Formatting
View Single Post
  #2  
Old 09-04-2002, 04:44 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Ah, I think you're wrong, but i don't care. Correct is in the eye of the beholder x.X Here is what I do, and I find it QUITE easy to read and simple enough:
NPC Code:

if (created)
{ action 1;}

if (created)
{ action 1;
action 2;
action 3;
}


I think that it looks a bit more confusing when you have the opening { on the same line as the if statement. If you have a long if statement it gets harder to read =/
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote