HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Creating Melee events

06-25-2004, 03:01 AM#1
Doomsberg
AS some of you may know, im trying to mkae new melee triggers for my mod but im having trouble with making the events for them. So if somone could help me it would be mostly appreciated.

Here the event i want to be made melee.

A unit picks up an item.

So basically its based off the event - A unit (option). But i dont want it to have an option. Ive heard people say something to do with common.j, but im not fully sure what to do.
So can someone plz tell me exactly what to write in each file of blizzard.j, common.j, triggerdata.txt, and triggerstrings.txt to get this trigger working.

Thnx a lot.
06-25-2004, 12:51 PM#2
Vexorian
You really think you need the events to show in the editor?

Blizzard's melee maps use events and custom triggers, but to init them they use functions that are called at map initialization, so the Enforce win conditions line actually creates triggers with its events
06-26-2004, 09:23 AM#3
Doomsberg
Quote:
Originally Posted by Lord Vexorian
You really think you need the events to show in the editor?
Yes i really need to make my own events that show up in the editor. Not doing so will result in Modern Warfare being no way near as good. Its a necisity for the mod.

I'm jass literate so u dont need to write lots of stuff, just give a brief description on what i need to do, and il do the rest. I figured out how to make new melee triggers by myself, so i can't be that crap......can i?
06-27-2004, 09:53 PM#4
PitzerMike
You wan't to use certain triggers which would make the editor consider it as non-melee, did I understand that correctly?
If that's what you want you could simply hex-edit the w3i file after you finished the map and reset the melee-flag to make it show up as melee-type map.

I think it's also possible to trick the editor by moving trigger actions/events into the melee category (in TriggerData.txt).
06-28-2004, 09:30 AM#5
Doomsberg
Quote:
Originally Posted by PitzerMike
You wan't to use certain triggers which would make the editor consider it as non-melee, did I understand that correctly?
If that's what you want you could simply hex-edit the w3i file after you finished the map and reset the melee-flag to make it show up as melee-type map.

I think it's also possible to trick the editor by moving trigger actions/events into the melee category (in TriggerData.txt).
No ur slightly off. I want to make evetns etc. that will auto show up in melee maps. Like when u go into w/e and choose new map, the triggers will be there, and the map will be considered melee.
06-28-2004, 09:53 AM#6
Pheonix-IV
so you want preset triggers that are based upon the main War3.mpq so that upon playing a map with the altered mpq (or whatever) the default melee triggers will include your ones? Kinda like what TToR does with some of its trigg based spells?
06-28-2004, 10:08 AM#7
PitzerMike
Quote:
Originally Posted by Doomsberg
No ur slightly off. I want to make evetns etc. that will auto show up in melee maps. Like when u go into w/e and choose new map, the triggers will be there, and the map will be considered melee.

Ok, I see what you want, and this is also done through editing the file UI\TriggerData.txt
First you'll have to change the trigger category of the events/actions to TC_MELEE and then somewhere at the bottom of that file there's a section "Standard Triggers" or something like that. A comment explains that these triggers will be added to every new map. You should be able to add your stuff there.

After having done your changes you'll have to place the file in a local UI folder of your WC installation.