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

A Spell Problem

Status
Not open for further replies.
Level 24
Joined
May 20, 2007
Messages
3,283
I have a spell based on Dark Conversion
And If I cast on the enemy i want to steal him.How could i do that
Here is my triggering
  • Steal Mind
    • Event:
    • Unit-Starts the effect of an ability
    • Conditions
    • Ability equal to Steal Mind
    • Actions:
    • Wait 5 seconds
    • Unit-Add Charm to target of ability being cast
Or I tryed
  • Steal Mind
    • Unit-Change ownership of target of ability being cast to owner of ability being cast
Please help me on this one
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
k, then make a dummy unit with charm...

Then make a trigger like this:
  • Events
    • Unit - a unit starts the effect of an ability
  • Conditions
    • Boolean - Owner of triggering unit (or whatever unit is needed) is an enemy of casting unit equal to true
  • Actions
    • Unit - create a dummy
    • Unit - issue an order targetting a unit - order last created unit to charm targetted unit of ability
    • Unit - add a 2 seconds expiration timer to last created unit
 
Level 18
Joined
Aug 13, 2007
Messages
1,584
k, then make a dummy unit with charm...

Then make a trigger like this:
  • Events
    • Unit - a unit starts the effect of an ability
  • Conditions
    • Boolean - Owner of triggering unit (or whatever unit is needed) is an enemy of casting unit equal to true
  • Actions
    • Unit - create a dummy
    • Unit - issue an order targetting a unit - order last created unit to charm targetted unit of ability
    • Unit - add a 2 seconds expiration timer to last created unit
About the last action... cant we just wait 0.01 seconds and remove the last created unit?
 
Status
Not open for further replies.
Top