| 08-29-2002, 08:51 PM | #1 |
Is it possible to detect when a Hero uses skill X, and then do something? Like Events: Player 1 uses a hero skill Conditions: Hero Skill being cast equal to Divine Shield Actions: Display text: Divine Shield was cast |
| 08-30-2002, 02:19 AM | #2 |
I am having problems with this, I can detect when most other spells are cast, but never Divine Shield. What I've tried to do, is get the "order text", by setting up a trigger like this: Event: Unit owned by Player X is Issued an order targeting a point Unit owned by Player X is Issued an order targeting an object Unit owned by Player X is Issued an order with no target Actions: Display to Player X the text "Issued Order" + (String((Issued Order))) This seems to work for everything EXCEPT Divine Shield! I can get it to spit back "blizzard" or "waterelemental" or "holy bolt", but nothing happens when I use Divine Shield. I'm wondering if it is even possible to detect when a user casts Divine Shield? |
| 08-30-2002, 02:22 AM | #3 |
Guest | Maybe you could set it up to detect when a hero becomes invincible...? Perhaps if you could make a trigger look for hero invincibility status instead of a Divine Shield casting, you'd have a way around your problem. |
| 08-30-2002, 02:31 AM | #4 |
How could I detect for unit invulnerability? I can't see anything that could check for that? |
| 08-30-2002, 04:31 AM | #5 |
Guest | I said that was a "maybe"...it was a passing thought. I didn't know whether it could be done or not. I looked over the trigger lists too, and I can't find anything to check for invincibility :\ I'll keep checking around for something that could help you, but for now, I don't know of any fixes. What I'm thinking is that the game doesn't consider the use of Divine Shield as falling under any of those three event criteria (even though you'd think it should.) |
