HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Adding functions to the world editor

06-07-2003, 09:42 AM#1
Sen
How would I go about adding a couple functions into the editor? Is there a way of doing this? I know JASS, and I have a couple functions I would like to add to the editor to make my life a bit easier.

Also, how would I get the UMSWE 3.6 modified files? It reads them from the EXE, and I'd rather not dig through that.

Thanks!
06-07-2003, 08:53 PM#2
bludragn
You don't have to dig very far, just open up the umswe.exe with WinMPQ.
06-07-2003, 10:14 PM#3
Sen
Thanks, but then how do I add functions to the world editor? I want to make my own functions in JASS and have them available in the world editor, I can figure it out if someone would just point me in the right direction at least.
06-08-2003, 01:15 AM#4
bludragn
You should probably ask Scio, creator of UMSWE.
06-08-2003, 01:33 AM#5
Sen
I'm pretty sure BlacKDick would know, if he ever reads this.

No one else knows how to add custom functions to the WE?
06-08-2003, 06:15 PM#6
Starcraftfreak
Well, that's not that easy. If you want them only for Jass scripting (not as triggers to select!), you can add them to blizzard.j. But this doesn't make much sense, because you would have to add it to your maps, if you want anyone else to play your map using your own functions.
It would be cool, if Blizzard adds something like the include command in C++. I can think of it that way:
You write at the top of the map script include myscript.j. Then you implement this script via WinMPW into the map. And the game uses the functions from the other file.
I post this into the suggestions forum of Battle.net.
06-08-2003, 07:47 PM#7
Sen
Thanks for the reply SCFreak. Does the map editor actually get its functions from blizzard.j? I know there are other files that set up the functions. I just wish I knew which files they were, or at least some way of assuring me its a hopeless cause.

Isn't there some way to get the world editor to take the function and put it in your map's script or something maybe?
06-08-2003, 09:33 PM#8
Scio
multiplayer maps can only use the functions layed out in Blizzard.j and Common.j If you are making a single player campaign, obviously you can do anything you want. .j files cannot be included in maps to be played on bnet. Sorry. Believe me, I've tried before to add my own functions into the WE, it doesnt work for MP games.
06-08-2003, 10:53 PM#9
Sen
Thanks Scio, now I know. Well, I guess I'll just do Jass scripting instead, and copy functions into code when I need it... Would be nice if blizz was a bit more thoughtfull on this though.