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

Converting parasite

Status
Not open for further replies.
Level 3
Joined
May 12, 2014
Messages
46
I am working on my map after a huge break tough i need an spell wich allows you to send an parasite to an enemy and when the unit dies it converts to the faction who sent the parasite
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
How many different factions can cast the spell? As The_Silent said the buff itself won't 'remember' who cast it so you're gonna need a more complex trigger. However, if you only have 1 faction that can cast the spell, you can vastly simplify by transferring all units that die with the buff to 1 specific player's control and your trigger becomes much easier.

Another problem might be: do any of the units that 'die' and have their faction changed have items, are they heroes with levels and abilities, or are there any triggers that may pertain to that specific unit? If that's the case then you're going to need to actually prevent them from dying instead of just catching when they die (lazy trigger), which is definitely harder.

Finally are you looking for a GUI solution or are you okay with JASS or vJASS code?


Edit Actually if you need it for N different factions you could make N different buffs and N copies of the ability which each apply a specific one of those N buffs so you know exactly which faction the dying unit should be converted to.
 
Last edited:
Status
Not open for further replies.
Top