Hey,
I'm creating a map an I was wondering if I could make it so if a unit of a player destroys a certain building it will change control to the player who killed it and the building will change depending on what race the player was? Also I would like to make it multiplayer (pvp). Tutorials or directions to forums that tell how do this would be appreciated.
I have googled so many times and always got the capturing where it captures automatically. There have been maps out there that have that element but I can't access it cos I don't know how to use the maps you download when you play scii customs.
Use a buff (behavior) to run an effect on receiving lethal damage.
It should be always on the unit and contains a lethal damage response effect set.
It also should reduce the incoming damage to 0 (check the min value flag, else damage done is 0.5 by default which could kill the unit).
The effect set should contain 2 effects:
First the caster needs to be fully healed.
Second the CASTER unit is given to the TARGET's player. This will give the killer the building.
edit:
I've never implemented something like that, but that's how I think it should work.
A simple solution through triggers is to use the Unit Dies event. Use conditions to check the unit type of the triggering unit (if it's a building that can be captured.)
Under actions, use a Switch depending on Race of Player (owner of killing unit.)
Then for each race, create the respective unit that you want at the position of the triggering unit for the owner of the killing unit.
You might also want to check the option "Ignore Placement" to prevent placement failure.
Hey, I'm creating a map an I was wondering if I could make it so if a unit of a player destroys a certain building it will change control to the player who killed it and the building will change depending on what race the player was? Also I would like to make it multiplayer (pvp). Tutorials or directions to forums that tell how do this would be appreciated.
@tryosaurus: Go
go to the forums here and look at either the tutorials, or search what you're looking for. chances are someone has asked this same question.
@eliek: Go
I have googled so many times and always got the capturing where it captures automatically. There have been maps out there that have that element but I can't access it cos I don't know how to use the maps you download when you play scii customs.
Use a buff (behavior) to run an effect on receiving lethal damage.
It should be always on the unit and contains a lethal damage response effect set.
It also should reduce the incoming damage to 0 (check the min value flag, else damage done is 0.5 by default which could kill the unit).
The effect set should contain 2 effects:
First the caster needs to be fully healed.
Second the CASTER unit is given to the TARGET's player. This will give the killer the building.
edit:
I've never implemented something like that, but that's how I think it should work.
A simple solution through triggers is to use the Unit Dies event. Use conditions to check the unit type of the triggering unit (if it's a building that can be captured.)
Under actions, use a Switch depending on Race of Player (owner of killing unit.)
Then for each race, create the respective unit that you want at the position of the triggering unit for the owner of the killing unit.
You might also want to check the option "Ignore Placement" to prevent placement failure.