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.
  • The Helper The Helper:
    So what it really is me trying to implement some kind of better site navigation not change the whole theme of the site
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top