Hi I need help for my map. My map consist of two teams fighting each other and the last remaining team lives. I would want a simplier tut please. So its:
Team 1:
red,blue,teal,purp,yellow
Team2:
orange, Green, Pink, grey, Light blue
I tried using this trigger and it cause me to have the display of defeat when I try to test the map out.
Event:Time - Every 30.00 seconds of game time
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (If (((Triggering unit) is in (Units in (Playable map area))) Equal to True) then do (Do nothing) else do (Melee Game - Enforce victory/defeat conditions (for all players)))
But when my friend told me to use this:
Event:Time - Every 30.00 seconds of game time
Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (If (((Triggering unit) is in (Units in (Playable map area))) Equal to True) then do (Do nothing) else do (Game - Victory Player 1 (Red) (Show dialogs, Show scores)))
It worked, I mean like it won't show me the defeat sign. But in 30secs later it appeared a Victory sign for me. I would want the trigger for like when a team kills the other team and the team that is still living to have the victory sign. Sorry If it is a little confusing. You can reach me at layzab0ne on AIM. If you need the map or could help me out please tell me. Thanks~!
[Help Needed]Help with Victory Trigger.
Moderator: Cheaters
-
- Newcomer
- Posts: 15
- Joined: October 29th, 2007, 9:28 pm
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*
Re: [Help Needed]Help with Victory Trigger.
What kinda map is it, is it more like Dota map, or regular campain warcraft like nightelves vs undead kinda thing. If its nightelves vs undead thing, Set it so that when the players buildings are less than 1 = defeat...AIM me at Scatterdangel and we will talk more.
-
- Newcomer
- Posts: 15
- Joined: October 29th, 2007, 9:28 pm
Re: [Help Needed]Help with Victory Trigger.
errr sorry your not on much lol. Now I have an another question. This consist of the Victory trigger again, but this one is from another person and I want to try it out. It seems really hard to do so I need some assistances. I would love for someone to help me because I don't know anything about variables. Please help. This is the trigger:
[TRIGGER]Untitled Trigger 008
Events
Map initialization
Conditions
Actions
**Set Heros_Alive[1] = (Number of players in (All players matching ((((Matching player) is an ally of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))))
**Set Heros_Alive[2] = (Number of players in (All players matching ((((Matching player) is an enemy of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))))
[/TRIGGER]
[TRIGGER]Untitled Trigger 007
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
Then - Actions
**Set Heros_Alive[1] = (Heros_Alive[1] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
* *((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True
Then - Actions
Set Heros_Alive[2] = (Heros_Alive[2] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
**Heros_Alive[1] Equal to 0
Then - Actions
P**layer Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Heros_Alive[2] Equal to 0
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
[/TRIGGER]
I can't put this in the map. Well, This is the link to my map:
http://epicwar.com/maps/42823/ Please help me do it or teach me. My AIM is layzab0ne. If anything happens please contact me.
[TRIGGER]Untitled Trigger 008
Events
Map initialization
Conditions
Actions
**Set Heros_Alive[1] = (Number of players in (All players matching ((((Matching player) is an ally of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))))
**Set Heros_Alive[2] = (Number of players in (All players matching ((((Matching player) is an enemy of Player 1 (Red)) Equal to True) and (((Matching player) slot status) Equal to Is playing))))
[/TRIGGER]
[TRIGGER]Untitled Trigger 007
Events
Unit - A unit Dies
Conditions
((Triggering unit) is A Hero) Equal to True
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Triggering unit) belongs to an ally of Player 1 (Red)) Equal to True
Then - Actions
**Set Heros_Alive[1] = (Heros_Alive[1] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
* *((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True
Then - Actions
Set Heros_Alive[2] = (Heros_Alive[2] - 1)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
**Heros_Alive[1] Equal to 0
Then - Actions
P**layer Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Heros_Alive[2] Equal to 0
Then - Actions
Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Victory (Picked player) (Show dialogs, Show scores)
Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
Loop - Actions
Game - Defeat (Picked player) with the message: Defeat!
Else - Actions
[/TRIGGER]
I can't put this in the map. Well, This is the link to my map:
http://epicwar.com/maps/42823/ Please help me do it or teach me. My AIM is layzab0ne. If anything happens please contact me.
-
- Forum Staff
- Posts: 506
- Joined: August 5th, 2007, 1:38 pm
- Title: Gui Expert
- Location: *Unknown*