I usually always generate the trigger part of a trigger from GUI, because I am too lazy to write it myself and also look up the specific event-translations.
I noticed though that the generated translation always uses a global variable, that it somehow automatically generated upon compilation.
Meaning that the CreateTrigger() call is assigned to some udg_<triggername> variable.
When syntax checking that with jaashelper it obviously returns an error because it didn't know how this variable and wc3's global creation magic hasn't happened yet.
Should I rewrite these auto generations? Is the global variable at that places necessary?
I noticed though that the generated translation always uses a global variable, that it somehow automatically generated upon compilation.
Meaning that the CreateTrigger() call is assigned to some udg_<triggername> variable.
When syntax checking that with jaashelper it obviously returns an error because it didn't know how this variable and wc3's global creation magic hasn't happened yet.
Should I rewrite these auto generations? Is the global variable at that places necessary?