[Solved] How do i recreate the this "Melee" trigger?
Topic Locked
Topic Locked|
An artist's depiction of an Extended Unit Death
|
Was this an actual 'fix' made by Blizzard or a side-effect of the patch?
If the latter, I'd just post on the Battle.net forums notifying them of this problem and it will be resolved in a new patch. ![]() ![]() ![]() ![]() ![]() ![]() Learn how to make EUDs: [EUD] A Mapmaker's Guide for Creating EPDs
Don't like learning? EUDGen2 Other stuff: Farlap Bound Maker [EUD] EUPCalc SC1 Maps: Dash: 1 2 3 4 5 6 7 8 9 X Jog: Original Warp Other: Super Mario SC Fireball Guard Your Civilian Strength Contest Interceptor Arena |
|
Nothing yet! Almost done. Very powerful, very strong.
|
You should definitely check all units flag for the "Prevents Defeat" and try to use the default trigger.
Anyway this trigger should work. My translations might be different from what the English editor writes. Press CTRL + D to change the view of the triggers (text & raw data). CodeCustomWinLossTrigger Events TriggerAddEventUnitDied(null) Local Variables unitgroup = (UnitGroupEmpty()) <unitgroup> i = 0 <int> Conditions Comparison((UnitFilterMatch((EventUnit()),(EventPlayer()),Requires: buildings; excluded: projectiles, hidden)),==,true) Actions SetVariable(unitgroup,(UnitGroupAlliance((EventPlayer()),c_unitAllianceAlly,(RegionEntireMap()),required: buildings; excluded: projectiles, Tot, hidden,1))) IfThenElse() if Comparison((UnitGroupCount(unitgroup,c_unitCountAlive)),==,0) then ------- 1 to teamcount (e.g. 2... 16 should cover everything) ForEachInteger(i,1,16,1) actions IfThenElse() if Comparison((PlayerGroupHasPlayer((GameAttributePlayersForTeam(i)),(EventPlayer()))),==,true) then PickEachPlayerInGroup((GameAttributePlayersForTeam(i))) actions GameOver((PlayerGroupLoopCurrent()),c_gameOverDefeat,true,true) else PickEachPlayerInGroup((GameAttributePlayersForTeam(i))) actions GameOver((PlayerGroupLoopCurrent()),c_gameOverVictory,true,true) else ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
An artist's depiction of an Extended Unit Death
|
I typed up a very similar way to do this.
DefeatTrigger Events Unit - Any Unit dies Local Variables Team1 = (Players on team 1) <Player Group> Team2 = (Players on team 2) <Player Group> Team1Group = (Empty unit group) <Unit Group> Team2Group = (Empty unit group) <Unit Group> Conditions ((Unit type of (Triggering unit)) has Structure attribute) == true Actions Player Group - Pick each player in Team1 and do (Actions) Actions Unit Group - Add all units in (Any units in (Entire map) owned by player (Picked player) matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount) to Team1Group Player Group - Pick each player in Team2 and do (Actions) Actions Unit Group - Add all units in (Any units in (Entire map) owned by player (Picked player) matching Required: Structure; Excluded: Missile, Dead, Hidden, with at most Any Amount) to Team2Group General - If (Conditions) then do multiple (Actions) If Then Else General - Else if (Conditions) then do (Actions) Else If (Number of Living units in Team1Group) <= 0 Then Player Group - Pick each player in Team1 and do (Actions) Actions Game - End game in Defeat for player (Picked player) (Show dialogs, Show score screen) Player Group - Pick each player in Team2 and do (Actions) Actions Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen) General - Else if (Conditions) then do (Actions) Else If (Number of Living units in Team2Group) <= 0 Then Player Group - Pick each player in Team1 and do (Actions) Actions Game - End game in Victory for player (Picked player) (Show dialogs, Show score screen) Player Group - Pick each player in Team2 and do (Actions) Actions Game - End game in Defeat for player (Picked player) (Show dialogs, Show score screen) ![]() ![]() ![]() ![]() ![]() ![]() Learn how to make EUDs: [EUD] A Mapmaker's Guide for Creating EPDs
Don't like learning? EUDGen2 Other stuff: Farlap Bound Maker [EUD] EUPCalc SC1 Maps: Dash: 1 2 3 4 5 6 7 8 9 X Jog: Original Warp Other: Super Mario SC Fireball Guard Your Civilian Strength Contest Interceptor Arena |