So, I've managed to create my own event definition which seem to be considered a very advanced feature by both the Blizzard designers and the map authoring community making them an extremely underused feature. At the moment, there's a bug in the GUI which seems to "forget" that there is an implicit parameter in an event call. What you need to do is make the Event "native" (so that code for it isn't generated by the trigger editor) and then make a Custom Script with the correct definition of the event. Also, I would imagine that creating our own Events entails registering for native events which I don't see a simple way to do so anywhere (you need to script it yourself).
What I've done is have my event register a Unit Uses Ability for all shops on the map. The event loops through the shops on the map, and registers the Unit Uses Ability for each one. This saves me from registering a "Any Unit Uses Ability" which in turn increases the performance of the map.
Now, my question is, what other uses could Event Definitions have?
I know this Thread is old, but could you (or anyone else) give me an example custom event ? I really don't know how to create one. Actions, Conditions and Functions are no problem, anyway.
Thank you !
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
So, I've managed to create my own event definition which seem to be considered a very advanced feature by both the Blizzard designers and the map authoring community making them an extremely underused feature. At the moment, there's a bug in the GUI which seems to "forget" that there is an implicit parameter in an event call. What you need to do is make the Event "native" (so that code for it isn't generated by the trigger editor) and then make a Custom Script with the correct definition of the event. Also, I would imagine that creating our own Events entails registering for native events which I don't see a simple way to do so anywhere (you need to script it yourself).
What I've done is have my event register a Unit Uses Ability for all shops on the map. The event loops through the shops on the map, and registers the Unit Uses Ability for each one. This saves me from registering a "Any Unit Uses Ability" which in turn increases the performance of the map.
Now, my question is, what other uses could Event Definitions have?
I know this Thread is old, but could you (or anyone else) give me an example custom event ? I really don't know how to create one. Actions, Conditions and Functions are no problem, anyway.
Thank you !