• 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.

Mindcontrol heroes?

Level 5
Joined
Aug 2, 2015
Messages
69
Hello,

I want to make a trigger based event where several heroes steps into an region and get mindcontolled tempory for like 10s
Is that possible? Ive tried some ideas with putting the heroes in unit grps when mindcontrolled by the computer, but find it hard to keep track on each hero when effect is over.
Maybe better to make a copy of hero and pause/hide orignal unit?
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
Fight :) Cast spells etc

having them choose a target and attack is easy. Making an AI that will correctly cast any spells your heroes happen to have is a project (I'm also assuming you have some custom abilities)

I did something like this (with basic attacking) in the past (for me it was a self inflicted spell, but same difference). The way I did it was to save a computer player corresponding to each player at the beginning of the game and make them have allied vision of the original player (and al their allies).

when they enter the region - you give the unit to that predefined player and at the end give it back. this explanation is the bare bones of one way to do it.

you can check what I did in the triggers here -> Don't Feed The Trolls (look under Salty/temper tantrum)
 
Last edited:
Top