[General] Open/Close Gate(UNIT) with ability

Level 2
Joined
Jul 17, 2013
Messages
4
Hello!
I'm trying to make a trigger that simply lets me press the "open/close gate"-ability on the gate to open and close it, and like I said the gate is a UNIT so the destructible gate trigger is obviously not an option. The issue I run into is that when I'm in-game the ability is greyed out and it says "Requires: Berserker Upgrade". I tried adding the berserker upgrade ability to my team, the gate itself and checked so the gate didn't have any sort of requirements in the object editor, but nothing works and I'm obviously missing something because I've seen the trigger work on other maps.

This is the trigger I'm using, which I got from reading a guide here on Hive, but nobody seems to mention having an issue with the ability upgrade requirement. So if anyone can help me it would be greatly appreciated.

  • Opening Gate 1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Unit-type of (Casting unit)) Equal to Horizontal Wooden Gate (Closed)
      • (Ability being cast) Equal to Open Gate
    • Actions
      • Unit - Replace (Triggering unit) with a Horizontal Wooden Gate (Open) using The old unit's life and mana
      • Animation - Play (Last replaced unit)'s death alternate animation
  • Closing Gate 1
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Unit-type of (Casting unit)) Equal to Horizontal Wooden Gate (Open)
      • (Ability being cast) Equal to Close Gate
    • Actions
      • Unit - Replace (Casting unit) with a Horizontal Wooden Gate (Closed) using The old unit's relative life and mana
 

Attachments

  • Wontopen.png
    Wontopen.png
    643.4 KB · Views: 24
Level 11
Joined
Aug 24, 2022
Messages
430
My guess is: If the ability is asking for an upgrade, so somewhere in the unit editor is requiring it. If you see that everything is ok, and no upgrade is necessary, but still asks for it, try to change the ability you used as base for the command. I don't have time now to open the editor and try by myself, but try this.
 
Top