Leurnid wrote...
GetLocalObject is freaking me out... the beginning and the end of that I get, but the GetLocalObject... can you store an object in an object!?!?
...
So do you store that locally on an object as a string var then, but pull it up as an object (by tag I assume)...
Check these out:
SetLocalObjectGetLocalObjectLeurnid wrote...
And why do so many people use 'NW_L_AMION' for state tracking? I haven't seen anything official regarding it, but it is a fairly common thing.
...
Because it had the NW_ prefix, I had hoped it was used someplace officially at some point... I have noticed that a lot people name their local vars with CAPS_LIKE_A_CONSTANT, for some reason, it bugs me, but I suspect now, based on that answer, the reason for that too is because of a convention started by the folks at Bioware... Is there anything to be said for or against the practice?
Since Bioware and others I have worked behind followed the all caps convention in NWN, I generally follow it.
For local variables in most systems in my mod I use all caps.
For the AID system local variables I use all lower case
My problem however is inconsistency. I have incorporated a great number of systems and developed my own. Each of these started out with slightly different conventions. If this was a team project I would have taken the time to define some conventions and rewritten the code to follow the conventions.
It hasnt been worth it to bother however. For the most part I follow existing conventions to minimize the number of exceptions I have to wrap by mind around.
Modifié par henesua, 10 mai 2012 - 08:56 .