Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-15-2009, 06:48 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Either way, I prefer doing it like this:

PHP Code:
temp.var1 true;
temp.var2 true;
temp.var3 true
so then I can easily do, say, temp.var2 = false, without having to mess around.
Reply With Quote
  #2  
Old 03-15-2009, 08:10 PM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Quote:
Originally Posted by Codein View Post
Either way, I prefer doing it like this:

PHP Code:
temp.var1 true;
temp.var2 true;
temp.var3 true
so then I can easily do, say, temp.var2 = false, without having to mess around.
styling choice really. although they both produce the same results. =P
__________________
Deep into the Darkness peering...
Reply With Quote
  #3  
Old 03-16-2009, 11:36 PM
Codein Codein is offline
jwd
Codein's Avatar
Join Date: Oct 2005
Location: Greater Manchester
Posts: 2,423
Codein has a spectacular aura aboutCodein has a spectacular aura about
Send a message via AIM to Codein Send a message via MSN to Codein
Quote:
Originally Posted by Angel_Light View Post
styling choice really. although they both produce the same results. =P
I'd say it was a choice between "Waste time once or waste time multiple times later", but that's just my honest opinion. Only really good, in my opinion (opinion being key here), for when you're assigning multiple variables (see example), but, even still, I don't like doing that.

PHP Code:
temp.var = 3;
temp.var2 temp.var3 temp.var1
Reply With Quote
Reply


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 02:33 PM.


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