So I've currently got 2 buttons to research either Lurker or Impaler upgrades. These work fine.
I've got 2 buttons that morph the Hydra Den into an Impaler or Lurker Den. These work fine.
What I'd like to do is somehow combine them. So that when the Lurker or Impaler upgrade is researched the Hydra Den will automatically morph into relevant Den type. I'd also like this to apply to any future built Hydralisk Dens.
I'm assuming this is done with validators somehow? Because I can't find any way to complete an 'upgrade\research' on a morph ability, or a morph ability on a research command.
Second solution if u prefer data only.
Button need only if you give players operate with skills manually, autocast can work without button but need initialize first and it can be turned off only via validators or triggers.