• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Custom Events

Status
Not open for further replies.
Level 13
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