Staredit Network

Staredit Network -> UMS Assistance -> Burrow detection
Report, edit, etc...Posted by Noober on 2006-04-12 at 18:41:39
Ok, I have this hydra. When it burrows, I want any unit above it to be killed. When it's not burrowed, nothing should happen. I got part of this, but sometimes, when I unburrow it when the unit comes, it still dies. Help?

I also have another question, but I'll save that for later.
Report, edit, etc...Posted by Mp)MinigameEast on 2006-04-12 at 18:43:07
ive tried doing this once. it doesnt work that way. so its impossible
Report, edit, etc...Posted by Demaris on 2006-04-12 at 18:44:16

Make a VERY small location, Like 5 pixels by 5, and have it center constantly. A unit wont be able to touch it if the hydra isn't burrowed.
Report, edit, etc...Posted by Urmom(U) on 2006-04-12 at 19:17:19
You've read this tutorial right? If you followed that, then it is either your trigger order, the location isnt small enough, or Starcraft still detects the unit being burrowed until the last moment.
Report, edit, etc...Posted by Noober on 2006-04-12 at 20:06:28
Yes, I used that tutorial, but I also wanted so if it's not burrowed, check again. Here are my triggers:


Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Current Player", "Devouring One (Zergling)", "Anywhere", At least, 1);

Actions:
Move Location("Current Player", "Devouring One (Zergling)", "Anywhere", "`mine place");
Move Location("Current Player", "Devouring One (Zergling)", "Anywhere", "`mine kill");
Move Location("Current Player", "Devouring One (Zergling)", "Anywhere", "`mine detect range");
Preserve Trigger();
Comment("Mine");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Current Player", "Devouring One (Zergling)", "Anywhere", At least, 1);
Bring("Foes", "Men", "`mine detect range", At least, 1);
Switch("Switch20", not set);

Actions:
Create Unit("Player 7", "Terran Medic", 1, "`mine place");
Set Switch("Switch20", set);
Preserve Trigger();
Comment("Mine make detect & set switch");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Player 7", "Terran Medic", "`mine place", Exactly, 1);
Switch("Switch20", set);

Actions:
Remove Unit At Location("Player 7", "Terran Medic", All, "`mine place");
Set Switch("Switch21", set);
Preserve Trigger();
Comment("Mine yes");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Player 7", "Terran Medic", "`mine place", Exactly, 0);
Switch("Switch20", set);
Switch("Switch21", not set);

Actions:
Remove Unit At Location("Player 7", "Terran Medic", All, "`mine detect range");
Set Switch("Switch20", clear);
Preserve Trigger();
Comment("Mine no");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Foes", "Men", "`mine kill", At least, 1);
Bring("Current Player", "Devouring One (Zergling)", "`mine kill", At least, 1);
Switch("Switch21", set);

Actions:
Remove Unit At Location("Current Player", "Devouring One (Zergling)", All, "`mine kill");
Kill Unit At Location("Foes", "Men", 1, "`mine kill");
Set Switch("Switch21", clear);
Set Switch("Switch20", clear);
Preserve Trigger();
Comment("Mine kill");
}

//-----------------------------------------------------------------//

Trigger("Player 1","Player 2","Player 3","Player 4","Player 5","Player 6"){
Conditions:
Bring("Foes", "Men", "`mine detect range", Exactly, 0);
Bring("Current Player", "Devouring One (Zergling)", "`mine kill", At least, 1);
Switch("Switch21", set);

Actions:
Set Switch("Switch21", clear);
Set Switch("Switch20", clear);
Preserve Trigger();
Comment("Mine reset");
}

Mine detect range is 4x4, mine place is 1 pix x 1 pix, and mine kill is 1x1.
Next Page (1)