• 🏆 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!

[Trigger] Unable to turn off auto-cast for custom auto-cast spell

Status
Not open for further replies.
Level 3
Joined
Jan 25, 2020
Messages
6
The script language is in Lua so it may look a bit different from what you are used to. This trigger is able to turn off auto-cast for a normal auto-cast spell like heal, but I can't get it to turn off my custom faeriefire. It detects the custom auto-cast ability being turned on fine.

  • Toggle off
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
      • (Issued order) Equal to (Order(faeriefireon))
    • Actions
      • Custom script: IssueImmediateOrderBJ(GetTriggerUnit(), "faeriefireoff")
      • Custom script: IssueImmediateOrderBJ(GetTriggerUnit(), "healoff")
      • Game - Display to (All players) the text: test
This is the "Text - Order Strings"
Text - Order String.PNG


Also if I change the Text - Order String - Activate it still detects the order as "faeriefireon"
 
Status
Not open for further replies.
Top