How can i make a custom ability that communicates with a trigger? I dont care how it does it... It could give a player resources and a trigger could watch for a resource change, but i am looking for the most efficient way. I am trying to detect with a trigger when any ability is used... i have over 300 to detect. I can either make a trigger with 300 events one for each ability (since there isn't an any unit uses any ability event for some unknown reason). detecting which ability was used is the easy part. But detecting WHEN an ability is used is turning into a huge pain in the ass. I was thinking if i could modify my abilities to directly communicate with a trigger, it would solve a lot of my problems.
If thats not possible, a more efficient way of setting off a trigger when any ability is used would also be helpful. Thanks!
i know this isn't the answer of your main question but extually there is a "any unit uses any abillity" event. For me its the last one in the unit tab.
i know this isn't the answer of your main question but extually there is a "any unit uses any abillity" event. For me its the last one in the unit tab.
that would be the event im currently using. its called unit uses ability.... and you can say any unit in the presets under which unit, but you cant say any ability under which ability. you have to choose one, or the event doesn't work. try using it ull see what i mean.
using this event to detect 300 abilities would take 300 events. there has to be a better way...
How can i make a custom ability that communicates with a trigger? I dont care how it does it... It could give a player resources and a trigger could watch for a resource change, but i am looking for the most efficient way. I am trying to detect with a trigger when any ability is used... i have over 300 to detect. I can either make a trigger with 300 events one for each ability (since there isn't an any unit uses any ability event for some unknown reason). detecting which ability was used is the easy part. But detecting WHEN an ability is used is turning into a huge pain in the ass. I was thinking if i could modify my abilities to directly communicate with a trigger, it would solve a lot of my problems.
If thats not possible, a more efficient way of setting off a trigger when any ability is used would also be helpful. Thanks!
@Baldey: Go
i know this isn't the answer of your main question but extually there is a "any unit uses any abillity" event. For me its the last one in the unit tab.
ever heard of the search function?
that would be the event im currently using. its called unit uses ability.... and you can say any unit in the presets under which unit, but you cant say any ability under which ability. you have to choose one, or the event doesn't work. try using it ull see what i mean.
using this event to detect 300 abilities would take 300 events. there has to be a better way...