• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Solved] Simple vJass question..

Status
Not open for further replies.
library_once means that the library and its code will only be put into the map once. If you have multiple copies of that library, only one copy will be put into the map, the rest will be deleted.

options means that a library does not have to exist in a map, but if it does exist, then that library is put into the map before the library using it

require means that a library has to exist in a map and is put into the map before the library using it
 
Level 11
Joined
Oct 11, 2012
Messages
711
When using library_once JassHelper ignores name conflicts with other libraries. For example:
JASS:
library_once Table // this will be used
endlibrary
library_once Table // ignored
endlibrary
library_once Table // ignored
endlibrary

http://www.wc3c.net/vexorian/jasshelpermanual.html

Thanks for the exmaple. :)

library_once means that the library and its code will only be put into the map once. If you have multiple copies of that library, only one copy will be put into the map, the rest will be deleted.

options means that a library does not have to exist in a map, but if it does exist, then that library is put into the map before the library using it

require means that a library has to exist in a map and is put into the map before the library using it
Thanks. Actually I was reading the script of your DDS system and found this issue.
 
Status
Not open for further replies.
Top