How to: Modify the World Editor's Trigger Editor

>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 :(
 
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....
 
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???"
 
So actually, the WE won't check for function names, but gladly accept anything until the jass parser runs : )

Thank you!
 
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.
 
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?
 
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.
 
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)
 
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.
 
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?
 
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.
 
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
 
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.
 
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.
 
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:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      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