• 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.

[General] What's the limit of globals/variables?

Status
Not open for further replies.
Level 26
Joined
Aug 18, 2009
Messages
4,097
The wc3 script evaluator passes out after ~25k variables. The same limit is for functions I think. There may be further restrictions with the GUI, at least the menu will get ridiculous with high amounts.

Also I have looked at the actual war3map.j before. I believe it specifies UDGs for widgets using coordinates. So in that case they should just really be normal variables.

Objects you refer to via trigger get named in variables. Also some other stuff like a trigger variable for each trigger leaf, a sound variable per sound in sound editor...
 
Level 15
Joined
Aug 7, 2013
Messages
1,338
Thank you for correcting me and sharing this information.

So the max variables allowed has nothing to do with map size but it's just some (arbitrary) limit Blizzard came up with?
 
Status
Not open for further replies.
Top