i just made a map where the archons chases the SCV over a map and the SCVs build a base and they build an armoy and tries to defet the archons..
but i dont have any proper Victory Screen when you win or lose.
i dont know much about triggers.
I want to see when all 8 SCVs die then the Archons win and when the 2 Archons die the SCVs should win. but i have no clue to get that to work.
ive tried somestuff that i though was going to work but everyone got defeat if 1 SCV died :>
I believe that there is an action that checks how many living units are in the game still. But, I don't know what it is called. I have done sort of the same thing with another game, i'll post a pic of it later.
[edit] got the pic, all you need to change is
Event
-Every 1 second of game time
Variables
Conditions
Actions
-If than else
-If number of living units(scv units in(entire map) owned by any player blah blah.... ) = 0
-Then End game for player (owner of scv) as a defeat, and end game as victory for archon ppl!
-Else
Then another one but vice versa
Living units (archons) = 0
End game for scv as victory and defeat for archons
Some one else may have a better way of doing it. I'm just typing off the top of my head :P Should work, if not. Pm someone or something.
Well That trigger up there I wrote you as well as those variables will come in handy to you as you make future changes to your map if you dont understand any part of it PM me I would be happy to help you understand it.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
Damn the above triggers are ineffeicient.
Here's a walkthrough for both victory and defeat triggers.
Defeat for scv's:
Make a new global variable called SCV_Group and make it a Unit Group type variable.
Make a trigger called Initializer. Make it like this:
Events -
Time Elapsed - 0.0 Game time.
Actions -
Pick every unit in Playable Map area of type: SCV (Whatever the escapist unit is) and do actions
Actions - Add Picked Unit to SCV_Group
Then make a new trigger called SCV Remover.
Events -
Any Unit Dies
OR -
Conditions - Dying unit is in SCV_Group
Conditions - Dying unit is unit type of Archon
Actions -
If -
SCV_Group = Empty Unit Group
Then - Show Defeat message to enemies of Archon player (You would have to customize this, since i don't know what team or player the archon is).
Else - If -
Unit type of dying unit is Archon
Then -
Defeat Player Owner of Dying Unit
Victory message to enemies of Player Owner of Dying Unit
Remove dying unit from SCV_Group
Ive tried for 3 days now straight to get this to work,
ive tried Oblivirons suggestion but i dont get it to work.
cant i just send the mapfile to someone and they can fix my triggers? with spawning Units and Victory stuff ? :(
im really bad at the triggering stuff but with the Terrain and Data im pretty god at.
Squide
Events
Unit - Any Unit dies
Local Variables
Conditions
Or
Conditions
(Unit type of (Triggering unit)) == SCV
(Unit type of (Triggering unit)) == Archon
Actions
General - If (Conditions) then do multiple (Actions)
If Then Else
General - Else if (Conditions) then do (Actions)
Else If
(Number of Living units in (SCV units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Then
Game - End game in Victory for player 2 (Show dialogs, Show score screen)
General - Else if (Conditions) then do (Actions)
Else If
(Number of Living units in (Archon units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Then
Game - End game in Victory for player 1 (Show dialogs, Show score screen)
Umm my trigger up there isnt in-effiecient.... It handles team loss... where as Oblivions doesnt.... Meaning the trigger i had up there has more flexability....
Its also intended to require the units to be spawned in the game and not created from the terrain screen.. This is so your map can handle a variable ammount of players. So say only 2 players join the game. Youd have 1 scv and 1 archon. and the Trigger would end the game properly.
If you have all the units created from the terrain editor. You would then need a trigger to delete the units for the players that dont exist in game already. Which IMO is more inefficiant then just creating the units with a trigger...
I spose maybe you couldnt figure it out... but whatever.
Actually, the trigger up there is a rough draft. The one i implemented in game checks for amount of players, and does victory for both scv/archons with one group and one trigger.
i just made a map where the archons chases the SCV over a map and the SCVs build a base and they build an armoy and tries to defet the archons.. but i dont have any proper Victory Screen when you win or lose.
i dont know much about triggers. I want to see when all 8 SCVs die then the Archons win and when the 2 Archons die the SCVs should win. but i have no clue to get that to work. ive tried somestuff that i though was going to work but everyone got defeat if 1 SCV died :>
I believe that there is an action that checks how many living units are in the game still. But, I don't know what it is called. I have done sort of the same thing with another game, i'll post a pic of it later.
[edit] got the pic, all you need to change is
Event
-Every 1 second of game time
Variables
Conditions
Actions
-If than else
-If number of living units(scv units in(entire map) owned by any player blah blah.... ) = 0
-Then End game for player (owner of scv) as a defeat, and end game as victory for archon ppl!
-Else
Then another one but vice versa
Living units (archons) = 0
End game for scv as victory and defeat for archons
Some one else may have a better way of doing it. I'm just typing off the top of my head :P Should work, if not. Pm someone or something.
How do i make that if part? :>
And i dont have any HQ. Its the SCV and the Archon who is the "Main" thing
Ahem, That was just for showing what was sort of needed.
Just try to use the trigger i typed for you mmmk?
:D
Ummm
try this
Global Variables
Check Game Over and remove dying units from Unit Groups
-When creating the scv and archon units you must add them to the specific Unit group variablesI was pretty close. But, you can EASILY see that I'm still learning...
i have no idea how to do that :>
@Squide: Go
Did you take a look at the trigger I posted?
ive just placed the SCVs and the Archons as a start unit :> no fancy stuff with triggers for spawning the units really :/
I just started to do this. im good at map making and balancing of the maps and stats, abillitys and stuff but not the trigger stuff :>
@Squide: Go
Then you need to go add the units by trigger
This will also help you not spawn units for players not in game
aww man...
i have no clue how to do that :> ill try i guess
Well That trigger up there I wrote you as well as those variables will come in handy to you as you make future changes to your map if you dont understand any part of it PM me I would be happy to help you understand it.
Events - Time Elapsed - 0.0 Game time. Actions - Pick every unit in Playable Map area of type: SCV (Whatever the escapist unit is) and do actions Actions - Add Picked Unit to SCV_Group
Then make a new trigger called SCV Remover.Events - Any Unit Dies OR - Conditions - Dying unit is in SCV_Group Conditions - Dying unit is unit type of Archon Actions - If - SCV_Group = Empty Unit Group Then - Show Defeat message to enemies of Archon player (You would have to customize this, since i don't know what team or player the archon is). Else - If - Unit type of dying unit is Archon Then - Defeat Player Owner of Dying Unit Victory message to enemies of Player Owner of Dying Unit Remove dying unit from SCV_Group
Ive tried for 3 days now straight to get this to work,
ive tried Oblivirons suggestion but i dont get it to work.
cant i just send the mapfile to someone and they can fix my triggers? with spawning Units and Victory stuff ? :( im really bad at the triggering stuff but with the Terrain and Data im pretty god at.
can someone help me?
How hard can it be?
Squide
Events
Unit - Any Unit dies
Local Variables
Conditions
Or
Conditions
(Unit type of (Triggering unit)) == SCV
(Unit type of (Triggering unit)) == Archon
Actions
General - If (Conditions) then do multiple (Actions)
If Then Else
General - Else if (Conditions) then do (Actions)
Else If
(Number of Living units in (SCV units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Then
Game - End game in Victory for player 2 (Show dialogs, Show score screen)
General - Else if (Conditions) then do (Actions)
Else If
(Number of Living units in (Archon units in (Entire map) owned by player Any Player matching Excluded: Missile, Dead, Hidden, with at most Any Amount)) == 0
Then
Game - End game in Victory for player 1 (Show dialogs, Show score screen)
Fixed
Speciall txh to Oblivrion
Umm my trigger up there isnt in-effiecient.... It handles team loss... where as Oblivions doesnt.... Meaning the trigger i had up there has more flexability....
Its also intended to require the units to be spawned in the game and not created from the terrain screen.. This is so your map can handle a variable ammount of players. So say only 2 players join the game. Youd have 1 scv and 1 archon. and the Trigger would end the game properly.
If you have all the units created from the terrain editor. You would then need a trigger to delete the units for the players that dont exist in game already. Which IMO is more inefficiant then just creating the units with a trigger...
I spose maybe you couldnt figure it out... but whatever.
Actually, the trigger up there is a rough draft. The one i implemented in game checks for amount of players, and does victory for both scv/archons with one group and one trigger.