• 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!

Probably already been answered...

Status
Not open for further replies.

Sinartil

S

Sinartil

I've got a problem with triggering. As there isn't an action to force an AI hero to cast an ability with the "periodic time" event, I copied those abilities into items, hoping to use the "Use item on unit" trigger. They work fine if I test it myself, but the AI doesn't want to work. I can't find a decent tutorial or FAQ anywhere, and Wc3Campaigns can't be found.

The trigger is this:

Events:
Every [seconds] game time
Conditions:
[hero] is alive
Actions:
Order [hero] to stop
Wait 1.0 seconds
Order [hero] to use (item carried by [hero] of type [item]) on [enemy unit].

Can you help, please?
 
Maybe hero is stack at the moment, and can't use item or periodic event and wait lead to bugs. Try debug messaging hero order at the time of cast.
 
Status
Not open for further replies.
Back
Top