| 10-01-2002, 08:42 PM | #1 |
Guest | OK, here's what I'm trying to do: Give a Footman momentary invulnerability when he activates the Defend ability. PROBLEM: It doesn't seem as though the "Player owned unit event -> Is Issued an Order with No Target" recognises the Defend ability as an order. Upon further investigation, I discovered that NONE of the abilities that don't target anything are recognised. THINGS I'VE TRIED: Changing the icon for the Sorceress to the Defend Icon and having her get trained by the Footman - resulting in a flag on the footman's head and a delay in activity. Hiring the Sorceress - doesn't seem to be a trigger relating to this SOLUTION: right now I don't care how this is solved - as long as pushing a button on the keyboard plays the 'defend' animation for a couple seconds and allows the enabling of invincibility. Thanks! |
| 10-01-2002, 08:53 PM | #2 |
Have you tried Issued an Order Targeting an Object? I know it might not seem right, but it may work. The game may consider the defend ability "targeting" the footman. |
| 10-01-2002, 09:24 PM | #3 |
The way to detect a unit being bought is to test for an order without a target and the string(order) == string(unit type of unit being bought) That means the string of the order order for buying a unit is the 4 letter code for the type of unit bought. The unit that did the selling will be triggering unit. |
| 10-01-2002, 09:48 PM | #4 |
Guest | Fear Factor: yeah, i tried that... didn't work ://// Extrarius: sweet, thx! I'll try that out... I don't know where to get the code from tho... I guess I'll figure it out by converting it to scripting language. Wish there were a better way but - i'll take what I can get. |
| 10-01-2002, 10:04 PM | #5 |
| 10-02-2002, 12:00 AM | #6 |
Maybe do string to order conversion and put defend in there. That might work. |
| 10-02-2002, 01:25 AM | #7 |
Guest | nope, tried that too. I'm just gonna do it with buying units. I think that actually works better cus I can have a visible cooldown! |
