How do you Unpossess a unit?

Status
Not open for further replies.

Alliancewine

A

Alliancewine

Hi, I am trying to make a map were you can have a hero that uses possession to fight, but I want to know how do you get it so that when you possess a unit it becomes a hero and when that unit dies, you get your hero back as the same level as the unit you possessed.
 
Unit casts possession on a unit, store casting unit in a variable, store possessed unit in a variable, store owner of possessed unit in a variable, move casting unit somewhere he can't be found, add unpossess ability to possessed unit, change owner of possessed unit to owner of casting unit.

Possessed unit casts unpossess, move caster of possession (stored in a variable) to position of possessed unit, change owner of possessed unit back to what it was before (stored in a variable), remove unpossess ability from possessed unit.

If you want it to be MUI, use an indexing system.
 
Can you show me in Trigger Editor or what program you used because I'm having a hard time doing what your saying
 
Hint: Variables store data. You want to store the unit that is doing the possessing into a variable, the unit that is being possessed, etc. Create some variables.
 
The most optimal way of doing this would be storing the player number of the converted unit in its custom value. This would require no variables or systems at all...but since a unit can only have one custom value....the drawback of this would be you can have no other system that also uses custom values...
 
Thx guys, had to redo my computer all over again. Had a virus so I lost my work but I will try to do the map again.
 
Status
Not open for further replies.
Back
Top