How to: Modify the World Editor's Trigger Editor

MindWorX

New Member
Reaction score
8
I'd like for you to make a fix in the tutorial, it's a generel rule that you should use "Units\UnitGlobalStrings.txt" instead of "UI\WorldEditStrings.txt", since it's less likely to be updated, mostly because it haven't been changed in any of the patches sofar, and thus it's alot easier to keep your "mod" compatible with the newest patch. Just a little pointer if you want to follow the common standard. :)
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
I have another question about this.

Do you think there would be any problems when you update Warcraft to a newer version?
Such as, will it be unable to find some files, or something similar?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
good job +rep

yeah the german WE is in English now^^
but not the spell names...(where to edit them=)
PS: thx
 

Romek

Super Moderator
Reaction score
964
Could i make a new... Dunno what its called.

things like "triggering unit", "last created unit".
But a Custom Script. :p

So you could use locals ^^

Edit:

Could you also make a "Create Local" Action?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
my point remov doesnt work:
TC_Leak_removal=WESTRING_TRIGCAT_Leak_removal,ReplaceableTextures\WorldEditUI\Actions-Logical

RemoveLocation=0,location
_RemoveLocation_Defaults=_
_RemoveLocation_Category=TC_Leak_removal
 

Sevion

The DIY Ninja
Reaction score
413
What do you mean by "Doesn't Work"? It's not that specific. >_>

Anywho. Did you add strings? Does Actions-Logical exist (Don't have the file right now XP)
 

Mr Zero

Junior Regular (Got the T-shirt)
Reaction score
64
I'm having a problem adding my own functions. I can't see what I'm doing wrong. Here is what I have added:

TriggerData.txt:

TC_MY_FUNCTIONS=WESTRING_TRIGCAT_MY_FUNCTIONS,ReplaceableTextures\WorldEditUI\Actions-SetVariables
^ It adds a space between "Worl" and "dEditUI". I don't know why but it is together.

RemoveLocation=0,location
_RemoveLocation_Defaults=_
_RemoveLocation_Category=TC_MY_FUNCTIONS

TriggerStrings.txt:

RemoveLocation="Remove Location"
RemoveLocation="Remove "~Location
RemoveLocationHint=

It gives me a MissingString error.

16gzz3s.png

Is there something I have forgot?
 

Sevion

The DIY Ninja
Reaction score
413
You never added strings for TC_MY_FUNCTIONS=WESTRING_TRIGCAT_MY_FUNCTIONS

It's under WorldEditStrings.txt.

Look for the things that go TC_XXX="Blah"
 

Insane!

Shh I didn't edit this, go away.
Reaction score
122
Add it anywhere you want under [TriggerActionStrings]

Ok. So far we've learned how to implement an action from JASS and create new categories. What's in store next? Events and Conditions!

Alright. Take five!

Back already? Alright. After a good rest, you should be ready to learn how to make Conditions. They're really simple!

Look for [TriggerConditions]

A condition looks like:


Code:
OperatorCompareAbilityId=1,abilcode,EqualNotEqualOperator,abilcode
_OperatorCompareAbilityId_Defaults=GetSpellAbilityId,OperatorEqualENE,AUan
_OperatorCompareAbilityId_Category=TC_CONDITIONWell, since Location comparisons are already in GUI, we'll make a Trackable conmparison! Now, look at the code.

OperatorCopmareAbilityId=1,abilcode,EqualNotEqualOperator,abilcode. These are the parameters, or arguments, that the comparison takes. In the Trigger Editor it looks like:






Anyone will look and know that the first and third are abilities, and that abilcode means the ability's raw code. EqualNotEqualOperator is the Equal To/Not Equal To comparison operator.

So, to create our comparison we do:


Code:
OperatorCompareTrackable=1,trackable,EqualNotEqualOperator,trackable
_OperatorCompareTrackable_Default=_,OperatorEqualENE,_
_OperatorCompareTrackable_Category=TC_CONDITONThen in TriggerStrings.txt


Code:
OperatorCompareTrackable="Trackable Comparison"
OperatorCompareTrackable=~trackable," ",~Operator," ",~trackable
OperatorCompareTrackableHint=Now, anyone with knowledge of the Variable

im sorry but is this in the same txt file?
 

Sevion

The DIY Ninja
Reaction score
413
Code:
OperatorCompareTrackable=1,trackable,EqualNotEqualOperator,trackable
_OperatorCompareTrackable_Default=_,OperatorEqualENE,_
_OperatorCompareTrackable_Category=TC_CONDITONThen in TriggerStrings.txt
That's in TriggerData.txt
Code:
OperatorCompareTrackable="Trackable Comparison"
OperatorCompareTrackable=~trackable," ",~Operator," ",~trackable
OperatorCompareTrackableHint=Now, anyone with knowledge of the Variable
That's in TriggerStrings.txt
 

D.V.D

Make a wish
Reaction score
73
I don't understand how the game knows what the function is like when you make a unit jump, then how do you make it for the WE to know that it has too jump?
 

Sevion

The DIY Ninja
Reaction score
413
You add functions into [del]Map Header[/del] Library, then using the UI, create a reference interface to that function. That's what your GUI is anyways, a reference interface to JASS functions.
 

D.V.D

Make a wish
Reaction score
73
Map Header Library? Is that the trigger data.txt? I still don't get how your knock back works in EGUI or jump.
 

Sevion

The DIY Ninja
Reaction score
413
:rolleyes: I think you misunderstood, Map Header is crossed out (Because I prefer Libraries :D) and I'm using Libraries in EGUI.
 

D.V.D

Make a wish
Reaction score
73
But when you had knock back in EGUI, I clicked the link and i got a code. Were did you put the code?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top