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

Problem with the Charm Spell

Status
Not open for further replies.
Level 3
Joined
Jul 22, 2017
Messages
30
Why it works on higher level creatures if they are not Neutral Hostile? If i put a knight and set his level to 10, the Charm spell still works and the knight gets stealed. I solved it by taking the Knight to the Neutral Faction instead of Human. There is a way to make this work but without having to change units to Neutral?
 

Uncle

Warcraft Moderator
Level 64
Joined
Aug 10, 2018
Messages
6,580
Sounds like a Reforged bug. Until it's fixed you can always trigger a Charm effect. Use Channel as the basis for the ability or some targeted ability that won't cause problems. Make sure it can't target Heroes.

  • Events:
  • A unit starts the effect of an ability
  • Conditions:
  • Ability being cast equal to Your Ability
  • Actions:
  • Change owner of target unit of ability being cast to triggering player
And in order to cancel the ability if the target is too high level:
  • Events:
  • A unit begins casting an ability
  • Conditions:
  • Ability being cast equal to Your Ability
  • Level of target unit of ability being cast greater than X
  • Actions:
  • Pause triggering unit
  • Order triggering unit to Stop
  • Unpause triggering unit
Note that I'm just typing these triggers off of memory, so they'll look slightly different in the editor.
 
Last edited:
Level 3
Joined
Jul 22, 2017
Messages
30
Sounds like a Reforged bug. Until it's fixed you can always trigger a Charm effect. Use Channel as the basis for the ability or some targeted ability that won't cause problems. Make sure it can't target Heroes.

  • Events:
  • A unit starts the effect of an ability
  • Conditions:
  • Ability being cast equal to Your Ability
  • Actions:
  • Change owner of target unit of ability being cast to triggering player
And in order to cancel the ability if the target is too high level:
  • Events:
  • A unit begins casting an ability
  • Conditions:
  • Ability being cast equal to Your Ability
  • Level of target unit of ability being cast greater than X
  • Actions:
  • Pause triggering unit
  • Order triggering unit to Stop
  • Unpause triggering unit
Note that I'm just typing these triggers off of memory, so they'll look slightly different in the editor.

Actually i am using the normal Warcraft 3 so it is kinda rare. I tried this and added some features and it actually works so thanks!
 
Status
Not open for further replies.
Top