I have a ability set on auto cast, different units have this ability. I want to do a switch effect when i morph that check what the unit type is before morphing and then do that effect associated with the unit type. I tried to set the effect on the ability:info actor start field but the switch then validate the unit it has become instead of what it was.
have you ever looked into a trigger- effect? it's like a else-if statement to execute a certain effect on a certain validator (prolly a set effect with your unittype effect and the morphing)
1) Check attached map:
Ability in this map uses switch effect as u wanted, it autocasts via "Life Not Full" validator, it copies order queue, but it's not a morph actually, it simply replaces unit with a new one.
2) Make different morph abilities for every unit type.
I have a ability set on auto cast, different units have this ability. I want to do a switch effect when i morph that check what the unit type is before morphing and then do that effect associated with the unit type. I tried to set the effect on the ability:info actor start field but the switch then validate the unit it has become instead of what it was.
Any suggestions how how i can fix this issue?
@Sherlia: Go
have you ever looked into a trigger- effect? it's like a else-if statement to execute a certain effect on a certain validator (prolly a set effect with your unittype effect and the morphing)
Sure most problems can easy be fixed with triggers but i would prefer to have as much as possible in the data editor.
@Sherlia: Go
Well, i see 2 most simple ways here:
1) Check attached map: Ability in this map uses switch effect as u wanted, it autocasts via "Life Not Full" validator, it copies order queue, but it's not a morph actually, it simply replaces unit with a new one.
2) Make different morph abilities for every unit type.
@Sherlia: Go
trigger-effect not triggers...
one morph ability is enough, just issue order to morph inside the set-effect as described above.