• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Ok this one HAS to be a bug...

Status
Not open for further replies.
Level 10
Joined
Feb 19, 2006
Messages
237
  • test1
    • Events
      • Player - Player 1 (Red) types a chat message containing ensnare as An exact match
    • Conditions
    • Actions
      • Unit - Create 1 Dummy Unit for Neutral Hostile at (Position of Footman 0006 <gen>) facing Default building facing degrees
      • Unit - Add Ensnare (Neutral Hostile) to (Last created unit)
      • Unit - Order (Last created unit) to Orc Raider - Ensnare Footman 0006 <gen>
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Game - Display to (All players) the text: ensnare
The text "ensnare" is displayed however the unit "Footman 0006" does not get ensnared.

Note: The dummy unit works fine (used him for other spells)
 
Level 10
Joined
Feb 19, 2006
Messages
237
I tried that out right now:

  • test1
    • Events
      • Player - Player 1 (Red) types a chat message containing ensnare as An exact match
    • Conditions
    • Actions
      • Set footman = Footman 0006 <gen>
      • Unit - Create 1 Dummy Unit for Neutral Hostile at (Position of footman) facing Default building facing degrees
      • Unit - Add Ensnare (Neutral Hostile) to (Last created unit)
      • Unit - Order (Last created unit) to Orc Raider - Ensnare footman
      • Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
      • Game - Display to (All players) the text: ensnare
Still the text "ensnare" is displayed but the footman is not ensnared.
 
Level 17
Joined
Apr 27, 2008
Messages
2,455
Using a variable won't change anything.

Then it's likely about the ability "ensnare".
Convert you trigger in jass to see the order string given to last created unit and make sure that's the same than the ability ensnare.

Btw, changing this string order for an ability has no effect, except only very few ones like spellbook and channel.

Also editing a spell doesn't always fully work, like changing the target, you have to test it if it works, it's the only way.

An unit can't have several abilities using the same order string, or it will bug.

And finally again check the common ones (mana, requirements, ...)
 
Status
Not open for further replies.
Top