| 03-29-2004, 12:20 AM | #1 |
Ok, here's the deal. If I can't figure this out, I'll just do it a less interesting way. One of the Tauren units, the Carnal Wanderer, has a pet egret. He needs an anti air attack, and the plan is to have this egret be it. The issue, however, lies in two locations: A. The egret should not be selectable. I can sort of cheat on this one, but it's still possible to give orders if you concentrate. However, if the wanderer dies, and the egret does not, you should be able to select the egret. B. The Wanderer can mount a giant ostrich (Bludgeonbeak Tallstrider). When he does this, the egret should either land or continue to follow the Tallstrider. When the Wanderer gets off, he should, again, change targets. Here's the catch: I can't use Custom Value OR variables. (Custom value is for veterency system, no variables because they are units and there can be multiples.) |
| 03-29-2004, 12:44 AM | #2 |
well you could use variable like this Event: Tauren summons unit condition: unit = egret Action: set variable "egret" = (triggering/summoned unit) |
| 03-29-2004, 01:53 AM | #3 |
Multiple units so no variable? Hence the use of an array! Anyway. Two versions of the egret, 1 with locust, 1 without, when the tauren dies, switch the egret with locust with the one without, saving life values and the way it is facing [or have an SFX that blocks it out so it doesnt matter] |
| 03-29-2004, 03:18 AM | #4 |
No, I can't use an array, either. This is a trainable unit, and I'd need to know what variable number to set it. Also, multiple players can be training this unit. As for the locust thing, that would require the variable. If you know how to use variable arrays in this manner, by all means, let me know. |
