• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Custom Events

Status
Not open for further replies.
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.
Back
Top