• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

[Solved] constant question

Status
Not open for further replies.

ABM

ABM

Level 7
Joined
Jul 13, 2005
Messages
279
Hi,

i have declared constant "without filter public or private" in a Library
i used the constant in the library but i know i can also use the constant outside the library...

[Jass=]
library
globals
constant integer ARIA_ID = 'h012'
endglobals
[/code]

but how should i call the constant?

just use " ARIA_ID " instead of the integer 'h012' directly?
even if i use it in any triggers outside library?
 
Level 2
Joined
Sep 23, 2012
Messages
8
its usually a good idea to put some prefix on a non private variable like the first letters of your system's name in lowercase this way it wont interfere with other variables with the same name
 
Status
Not open for further replies.
Top