| 09-04-2003, 03:26 AM | #1 |
What do I use to define the target of a casted ability? I want to do something like this: Event: A unit begins casting an ability Conditions: Ability being cast is equal to xyz Casting unit is equal to blahblah[1] (??victim of casted ability??) is equal to yomama[5] something like that, you get the point. how do i define the target of a casted ability? |
| 09-04-2003, 05:20 AM | #2 |
E- a unit issue order to an object C- unit type of(ordered unit) equals to xxx and issue order equals to yyy A- set yyyTarget E- a unit starts the effect of ability C- ability equals to zzz A- create SFX on yyyTarget (or whatever you want) - ByTe.ME uswest |
| 09-04-2003, 11:55 PM | #3 |
I don't understand, can you use a bit better grammar and more precise wording? |
| 09-05-2003, 02:17 AM | #4 |
Create a unit variable named myspellTarget Create a SFXarray varibale named myspellSFX E- a unit issue order to an object C- (unit type of(ordered unit)) equals to () <--- your unit that has the custom spell C- issued order equals to order(shadowstrike) <---- since I based my spell off shadow strike, that would be the order string A- set myspellTarget = target unit of issued order E- a unit starts the effect of an ability C- ability being cast equals to () <---- insert your custom spell here A- Create an SFX[1] at origin of (myspellTarget) using blah blah blah.mdl A- set myspellSFX[1] = (last created SFX) A- wait xxx game time secs A- destroy myspellSFX[1] - ByTe.ME uswest |
