HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

detecting when a custom spell is cast

01-24-2003, 03:50 PM#1
fr0ggE
is there a way to detect when a unit uses a custom skill (trigger wise)?

like, lets say that i made a custom skill Lightning Bolt and i cast it.

Is there a way to detect that that happened?

how about actions getting units to use custom skills?

fr0ggE
01-24-2003, 04:11 PM#2
Guest
hmm the WE has really NOT enough events in my oppinion...

For a new Button I used Summon Water Elemental. The summoning has a time of 0 seconds and is a flying critter with minimal size. So everytime the player presses the button he can see a cast-animation and a dialog menu pops up.
I made the trigger with "played owned unit event - unit is summoned / summoned unit equal to buttontestthingy / start dialog"

hmm maybe you tell what you wanna do, in my experience the people find other ways as solution if it doesnt work.
01-24-2003, 05:28 PM#3
Hakujin
Is there a way to detect when a unit has been targetted by a cusotm ability? For example, a steal gold ability:

Base the ability on something like storm bolt but assign no damage and no stun. Call it [STGD]. Can WE detect when a unit has been target by ability STGD?


Hakujin
01-24-2003, 05:38 PM#4
Guest
Yes, you do an 'Order Comparison" using the "Triggering Order" and the spell that the custom spell is based off of.

I am using the USMWE editor by the way.
01-24-2003, 05:44 PM#5
Guest
Quote:
Originally posted by Hakujin
Is there a way to detect when a unit has been targetted by a cusotm ability? For example, a steal gold ability:

Base the ability on something like storm bolt but assign no damage and no stun. Call it [STGD]. Can WE detect when a unit has been target by ability STGD?


Hakujin



Unit is issued an order targeting unit (or something like that)

condition like above (order comparison according to the spell it is based on)

then compare the "Event-TargetedUnit" to the unit in question.