• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Custom Events

Status
Not open for further replies.
Level 12
Joined
Apr 15, 2008
Messages
1,063
Yes, there is logic, however I you try to create custom event now, you get a function (exactly same as function/condition/action). There is no way to launch the event anyhow. If you try to register some trigger with a custom event, this is what you get:
JASS:
void gt_Trigger01_Init () {
    gt_Trigger01 = TriggerCreate("gt_Trigger01_Func");
    gf_CustomEvent01(gt_Trigger01);
}
Which creates syntax error, since gf_CustomEvent01 does not have a parameter (unless you specify one)

And ofc custom events, as you described, would be great, but the actual events seem totally useless to me. I just wanted to know whether someone found any use for them as they are (only use so far is that they can be used to execute custom code in trigger init phase, but I think you can do that via custom script - init function)
 
Status
Not open for further replies.
Top