How to: Modify the World Editor's Trigger Editor

Sevion

The DIY Ninja
Reaction score
413
>null

Set variable to No "Whatever"

I.E.

Set UnitVar = No Unit

Or you can do it with custom script if there is no preset.

I don't want to go through EGUI and make no <everythings> though :(
 

SerraAvenger

Cuz I can
Reaction score
234
What would happen if I tell the WE to use functions I myself programmed?
In my map, it should just work fine, allright?
But once I try to open a map that doesn't have these functions, will it
a) give compilation errors (expected name)
b) crash (unknown function referenced)
c) act even different?

thanks in advance for your answer, Serra

EDIT:
I like your tutoriial, but I think it is not really straight. Could you please add a couple of titles for the chapters, like
Adding a function
Adding the function's Text
Adding a condition
Etc Etc....
 

Sevion

The DIY Ninja
Reaction score
413
If you use the functions in your map but the map doesn't have the functions in it, it will do a) give compilation errors (expected name)

Because it can't find the function so it will say "Expected A Function Here!! WHERE IS IT???"
 

SerraAvenger

Cuz I can
Reaction score
234
So actually, the WE won't check for function names, but gladly accept anything until the jass parser runs : )

Thank you!
 

Sevion

The DIY Ninja
Reaction score
413
If something is wrong in the UI files it will error something in the startup, but will still startup. But yes, what you said is true ;)

It's just like using regular (v)JASS.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Question:

1:
DestroyEffectBJ=0,effect
_DestroyEffectBJ_Defaults=GetLastCreatedEffectBJ
_DestroyEffectBJ_Category=TC_SPECIALEFFECT

2:
RemoveLocation=0,location
_RemoveLocation_Defaults=_
_RemoveLocation_Category=TC_My_Functions

Should i replace 1 with 2 or just add it above it?
 

SerraAvenger

Cuz I can
Reaction score
234
just add it.

If you want to keep 'TC_My_Functions' as the group, I also recommend going to the next

// XYZ actions

thingie,
add an

// My own actions

and then put the code directly between it.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
Ok fixed that...

New problem: I get 2 errors when i start my editor. I don't know JASS so i don't know how to fix it :(. Can some 1 help me?

Error 1:
Trigger Database Error

[TriggerEvents] - TriggerRegisterTrackableHitEvent

Data section and text section have differing number of parameters (1, 0)

Error 2:
Trigger Database Error

[TriggerCalls] - CreateTrackable

Data section and text section have differing number of parameters (2, 0)
 

SerraAvenger

Cuz I can
Reaction score
234
You forgot to add the TriggerStrings stuff.
You basically told the WE what functions you'ld like to add, but you didn't tell it what to tell the user about these functions.
 

Sevion

The DIY Ninja
Reaction score
413
Before I forget, DON'T FORGET TO ADD TRIGGERSTRINGS! IT WON'T SHOW IF YOU DON'T HAVE THE RIGHT STRINGS TO DISPLAY!!!

;)

The reason I do this, is because it's explained how to do it above in the examples and I like to know that people reading my tutorial are actually learning something :)

Hence the point of Tutorial.

Yes?
 

SerraAvenger

Cuz I can
Reaction score
234
EDIT:
I like your tutoriial, but I think it is not really straight. Could you please add a couple of titles for the chapters, like
Adding a function
Adding the function's Text
Adding a condition
Etc Etc....

I think it is really hard to read the way it currently is...
But it helped me a lot : )

Perhaps like...

Code:
Editing the WE
 * Changing an Event
  - Editing the Event in the TriggerData.txt
  - Editing the Event in the TriggerStrings.txt
  - Reminders
 * Changing an Action
  - Editing the Action in the TriggerData.txt
  - Editing the Action in the TriggerStrings.txt
  - Reminders
 * Changing a Condition
  - Editing the Condition in the TriggerData.txt
  - Editing the Condition in the TriggerStrings.txt
  - Reminders
Extending the WE
 * Adding an Action Group
  - Adding the Action Group in the TriggerString.txt (?)
  - Using the Group
  - Reminders
 * Adding an Action
  - Adding the Action in the TriggerData.txt
  - Adding the Action in the TriggerStrings.txt
  - Reminders
 * Adding a Condition
  - Adding the Condition in the TriggerData.txt
  - Adding the Condition in the TriggerStrings.txt
  - Reminders

I don't know whether you did or not, but if you didn't, please tell that the position of the object in the txt files represents exactly its position in the list of the object editor.
 

Igor_Z

You can change this now in User CP.
Reaction score
61
CreateTrackable=1,modelfile,real,real,real
_CreateTrackable_Defaults="Abilities\Spells\Other\TalkToMe\TalkToMe.mdl",0,0,RealUnitFacing
_CreateTrackable_Limits=_,_,_,_,_,_,0,360
_CreateTrackable_Category=TC_TRACKABLE

Where should i add this in the triggerstrings. You should explain it a little clearer
 

Sevion

The DIY Ninja
Reaction score
413
Well, in TriggerStrings.txt, you should probably look for Actions, considering that's an action.

Well, the function's name: CreateTrackable.

Code:
CreateTrackable

Then a description:

Code:
CreateTrackable="Create A Trackable"

Then the arguments:

Code:
CreateTrackable="Create A Trackable"
CreateTrackable="Create a Trackable using the model ",~Model File," at ",~Real,", ",~Real," facing ",~Real

And if you need to, a hint:

Code:
CreateTrackable="Create A Trackable"
CreateTrackable="Create a Trackable using the model ",~Model File," at ",~Real,", ",~Real," facing ",~Real
CreateTrackableHint="This creates a trackable. (Duh)

And since it's an action, like I stated above, you put this under Actions.
 
Reaction score
341
He explained a lot of parts a lot simpler than I originally had when I drafted it. So I used parts of his. For example the list.

And in some parts of my first draft were crazy :nuts:

They look the same, apart from yours having better grammar.
 

Sevion

The DIY Ninja
Reaction score
413
Read em, a lot of it I wrote myself. I think ScriptName he explained a lot better. In fact, for a while ScriptName confused me o_o'
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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