HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Mpq Eqiting - Creating A New Trigger Action

07-08-2005, 03:26 PM#1
Taur
I need to know how - through MPQ editing - to create a new action. It's just something simple,

e.g. a action set unit name: (just an example) and it goes:

Set (unit) 's name to (string)

I want to know how to do that step by step, how to make the string value AND how to set it and the unit to a variable, so I can figure out it's "name" anytime I want to...
07-09-2005, 07:14 AM#2
Limb_Smasher
how can you even find the triggers?
07-09-2005, 08:16 AM#3
EdwardSwolenToe
You cant edit a units name as far as i can tell through triggers. best you could do is replace it with an exact replica of it but different name.
07-09-2005, 08:38 AM#4
Guest
Yep. No way to do this. The tooltips and all strings used in the GUI and WorldEditor are stored in war3map.wts. To do this, you'd have to somehow get into that file while ingame and edit it. As far as i know, there's no way to do this.
07-09-2005, 02:40 PM#5
Vexorian
You though mpq editing would let you do this?
07-09-2005, 05:27 PM#6
shadow1500
new trigger actions are basically functions with GUI, look at how WEU works, they changed the TrigggerStrings.txt and TriggerData.txt files to create new actions, then they imported the functions to the custom script section.
this is ofcourse completly useless if u know jass and can call the functions, so its just done for the GUI of the trigger editor.
07-09-2005, 08:32 PM#7
Taur
I was using an example I don't want to set the unit's name, just create a new trigger
07-10-2005, 12:22 AM#8
EdwardSwolenToe
learn jass and you can create new triggers, well functions.
07-10-2005, 12:57 AM#9
Taur
no, I mean MPQ EDITING, e.g. I can create a GUI trigger like in WEU...
07-10-2005, 10:23 AM#10
mogmiester
you cant make a completely new trigger, you would have to change the .dll's and make a new language that was based on JASS, as well as completely change the way the game works :/ best thing to do is to hope that blizzard add whatever trigger action/event/condition that you need
07-10-2005, 10:54 AM#11
Anitarf
Anyway, I guess you could add new GUI actions, but all they would be able to do would be things that you are already able to do with JASS, because what your custom action would be doing would be calling a JASS function. That's what advanced triggers in enhanced editors do.
07-10-2005, 01:06 PM#12
Taur
okay I understand all that, I just need one simple action okay?

basically it's an action, let's call it set unit's string value

so basicall the trigger goes

set (units) string value to (string)

and then it specifies a string and unit, so whenever I call up that unit I can call up that string too, so I want it to just set those two to variables. I know you can do this in GUI, but I need it in a new trigger
07-10-2005, 05:09 PM#13
Anitarf
Well, that's simple, you would just store the string to gamecache using unit's handle as the key. You could store any number of string (or other values) per unit this way.
07-10-2005, 07:43 PM#14
Taur
No I need to know what to put in the MPQ exactly... (like the code)
07-10-2005, 11:04 PM#15
Vexorian
I was meaning that Adding actions to GUI won't enable you to add anything that IS not possible with JASS already