• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Probably already been answered...

Status
Not open for further replies.
Level 1
Joined
Aug 25, 2006
Messages
5
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?
 
Level 5
Joined
May 9, 2006
Messages
162
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.
Top