HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need some help

08-13-2009, 08:24 AM#1
LaLoC
I want to copy variables by map to a new bigger map and i dont know how...
I have many variables and it will cost me a day to copy them one by one.
Can anyone help me?




P.S. Sorry about my eng
08-13-2009, 10:02 AM#2
Pyrogasm
The best thing to do is write a bunch of random lines of trigger code that use the variables, then copy that trigger into your new map. If you have "create unknown variables when pasting trigger data" checked in WE preferences, then it should autocreate them.

Just do stuff like this:
Trigger:
Conditions
(Player(My_Int_Variable) is playing) equal to (My_Boolean_Variable)
Integer(My_Real_Variable) equal to Int_Array[0]
08-13-2009, 10:31 AM#3
Flame_Phoenix
Or, the even better thing to do ... If you are using JNGP, you can go to Extensions -> Export Files.
After that in your new map, just do Extensions -> Import/Replace (you choose) files/object data (depends on what you want).

Having in mind my project is dead (thx patch 1.24 ...) I am also considering doing what you say, but using this method.
08-13-2009, 11:24 AM#4
Pyrogasm
You can't import or export variable data.
08-13-2009, 11:30 AM#5
Flame_Phoenix
Well, he can import the triggers and then delete them. I believe it will be faster and easier to do it this way. Your way, if he has 100 globals, he needs 100 triggers or 1 trigger with 100 lines made manually.
Subjective though.
08-13-2009, 11:42 AM#6
Pyrogasm
...but what if he has variables that he uses in JASS triggers?

Or what if he doesn't want the triggers. As far as I know, importing the triggers overwrites the current trigger data.
08-13-2009, 11:50 AM#7
Flame_Phoenix
Quote:
Or what if he doesn't want the triggers. As far as I know, importing the triggers overwrites the current trigger data.
I may be wrong, but that only happens if you choose "replace option".
iir, last time I checked, it simply added the triggers.

I say this thread has lots of information, the "ball is on his side now".