• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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 73
Joined
Aug 10, 2018
Messages
7,866
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