| 03-02-2007, 11:12 AM | #1 |
I have this unit ability that i made have a techtree requirement of a certain unit existing.. and i have that spell also set to true for checking dependancies. however it doesn't check after i created the unit via triggers. the unit is there but the spell still says "requires: <name>" then when i activate other morph spell that has nothing to do with this that the hero happens to have.. Note: the alternate unit doesn't have this ability when i activate the morph spell and he changes and then when i change back to the normal unit the ability now detects the techtree required unit being there... and from then on.. removing that unit or adding will make the spell work or not as it is suppose to. but never before i make my first morph. i dont get it...... what is up with that?? edit>oh yeah. btw, i also tried giving that same ability to the alternate morph unit to see if that made a difference and it doesn't. still only shows up correctly after successfully morphing |
| 03-02-2007, 02:48 PM | #2 |
That's because training a unit runs the engine check to fulfill other requirements. Creating the unit via triggers circumvents this type of production. When you morph and then morph back, it re-checks the conditions of each spell (if any) and says "oh yea, there's that unit in the map" and sets the condition to true. |
| 03-03-2007, 04:14 AM | #3 |
Edit> thanks for the tip. i figured out my problem. was something simple i was over looking with variables. *slaps forehead*.. but it's detecting it now it seems. |
