Warcraft III resources & community, 2003–2006 · archived

How to modify Globals?

5 posts
#1

How to modify Globals?

I was wondering how you can modify globs through jass in the WE.

I need a global region, however when I define a region through GUI it gives me a rect instead. :?
#2
First search the : Triggerdata.txt in your war3patch.mpq .
Ten , you must find a 'block' of variable type (integer ,real ... ) .There you must add your var type .

After this , go in UI\WorldEditStrings.txt and search again .
#3
Modify a global variable :

If you have variable of type integer (for example) with name "i" then in gui you would use :

Set i = 123456

In JASS it looks :

Set udg_i = 123456

Just add udg_ in front
#4
Regions that exist on map are like units that already exist on the map. They have strange names. So to be able to get that "name", just create a GUI trigger, refer to the region with an action and then convert to JASS. You should be able to find the region's name converted as well.

~Daelin
#5
Oops. I thought he referred to the normal udg_ globals.