• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Disable Ability Trigger (for computer players)

Status
Not open for further replies.
Level 11
Joined
Feb 11, 2007
Messages
423
This should be pretty simple, but i cant figure it out. I need a basic GUI trigger that will prevent a computer player from using an ability.

The ability is a morphing ability that removes the unit from the map and replaces it with another. Since it's an entirely different unit, the hp is refilled. Computers spam this ability, making them invincible. I would simply base it off a morphing spell, but unit sound and animation change triggers I have made prevent this.

So basically, just need a trigger that prevents computer players from activating the ability.

Please help!

Thank you.
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Disabling will be tough, since enabling/disabling is not made with triggers, but in Ability Properties. The only thing you can do is negate all effects of the ability (which is very hard, and will still cause the current action of the to be cancelled or delayed, or you can use 'Unit - Remove ability'. I think those are the only 2 options you got.
 
Status
Not open for further replies.
Top